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

input-schema.mdreferences/

Input schema structure

Rules schema-root, required-undefined, param-type-missing and param-description-missing.

schema-root (error)

inputSchema must exist, be a JSON object and have "type": "object". A tool without parameters still needs { "type": "object" }, optionally with "properties": {}.

required-undefined (error)

Each required entry must be a string naming a property declared in properties of the same schema. Properties declared inside allOf, anyOf or oneOf branches of that schema count as declared. Fix by adding the property or removing it from required.

param-type-missing (warning)

Every parameter schema needs at least one of type, enum, const, $ref, anyOf, oneOf or allOf. A bare {} or true accepts any value, so the model has to guess the shape. The rule checks properties, items, prefixItems; it does not resolve $ref targets.

param-description-missing (warning)

Every parameter needs a non-blank description that says what to pass: unit, format, allowed values, example. Good: "Order id, for example ORD-1042". Weak: "id".

Pattern

{
  "type": "object",
  "properties": {
    "query": { "type": "string", "description": "Keywords to search for, 1 to 100 characters." },
    "limit": { "type": "integer", "description": "Maximum results, 1 to 50. Default 10." }
  },
  "required": ["query"]
}

Paths in findings use RFC 6901 escaping: / in a property name becomes ~1 and ~ becomes ~0.

SKILL.md

tile.json