A quality gate for MCP server tool definitions — lint and behavioral tests for tool-calling behavior
Three tools with clear verb-noun naming (search_products, get_order_status, cancel_order) and complete input schemas using Zod. All tools have descriptions (10-60 chars) and parameters are typed with descriptions. Tool annotations present for destructive hint on cancel_order. However, descriptions are brief (below rubric baseline of 194 chars), lack WHEN/WHY context, and output schemas are not documented. No error handling guidance or recovery paths. Missing parameter constraints (e.g., order_id format validation). Composition is sound, each tool has one responsibility.
Permanently cancel an order. This cannot be undone.
Look up the current status of an existing order by its ID.
Search the product catalog by free-text query.
Descriptions are too brief (10-60 chars vs. baseline 194 chars). Lack WHEN/WHY context and prerequisites. 'Search the product catalog by free-text query' does not explain when to use this vs. other discovery tools or what the response structure contains.
Output schemas are not documented. LLMs cannot plan downstream calls or extract fields without knowing response structure. Tools return text content but no schema definition is visible.
No error handling guidance. If cancel_order fails (e.g., order already cancelled, permission denied), the tool provides no recovery path or actionable error message for the LLM.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | 2026-07-28+ | v2 |
Parameter constraints missing. order_id accepts any string but should validate format (e.g., 'ORD-\d+' pattern). query parameter has no length limits. Unbounded inputs invite hallucinated values.
cancel_order lacks confirmation or dry-run pattern. Irreversible operations should support a confirmation step to prevent accidental destruction.