CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/mcp-schema-lint

Lint a saved MCP tools/list JSON file for invalid tool names, weak descriptions, untyped input schema parameters and token bloat. Use when reviewing, auditing or fixing MCP tool definitions before release or in CI.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

token-budget.mdreferences/

Token budget

Rule size-budget (warning).

The estimate

ceil(length of compact JSON / 4), where the length is that of JSON.stringify output without whitespace. This is a fast approximation, not the count of any specific tokenizer. Use it to compare before and after, not as an exact bill.

Budgets

OptionDefaultMeaning
maxToolTokens800One tool definition (name, description, inputSchema)
maxTotalTokens8000The whole tools array

Change them with a config file (--config FILE, keys maxToolTokens, maxTotalTokens) or --max-tool-tokens N.

Reducing size

  • Shorten descriptions to what a model needs to choose and call the tool.
  • Remove parameter descriptions that only repeat the parameter name; keep ones that add format or limits.
  • Replace long inline enums of rarely used values with a free string plus a short hint, only when the server validates the value.
  • Merge near-duplicate tools, or split one giant tool that has many unrelated modes.
  • Remove unused optional parameters and defaults the server already applies.
  • Do not shrink by deleting information the model needs to call the tool correctly.

Re-run the linter after each round and compare the estimatedTokens values (--format json).

SKILL.md

tile.json