MCP-006: Unknown Tool Annotation Key - MCP
Summary
- Rule ID:
MCP-006 - Severity:
LOW - Category:
MCP - Normative Level:
SHOULD - Auto-Fix:
No - Verified On:
2026-10-17
Applicability
- Tool:
all - Version Range:
unspecified - Spec Revision:
2025-11-25, 2026-07-28
Evidence Sources
- https://modelcontextprotocol.io/specification/2026-07-28/server/tools
- https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/2026-07-28/schema.ts
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{
"name": "read-file",
"description": "Reads a file and returns its contents as text",
"inputSchema": { "type": "object" },
"annotations": { "unsafeHint": true },
"requiresApproval": true
}
Valid
{
"name": "read-file",
"description": "Reads a file and returns its contents as text",
"inputSchema": { "type": "object" },
"annotations": { "readOnlyHint": true, "title": "File Reader" },
"requiresApproval": true
}