audit_mcp_schema_tokens
Breaks down MCP tools[] or .mcp.json JSON Schema token weight per server and tool, computes multi-turn prefix cost, and flags open schemas, verbose descriptions, and wildcard mounts.
Instructions
Break down MCP tools[] or .mcp.json configuration JSON Schema token weight per server and per tool, compute multi-turn cumulative prefix cost, and flag additionalProperties: true schemas, verbose tool descriptions, and wildcard eager mounts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mcpJson": "<mcpJson>"
},
"name": "audit_mcp_schema_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turns | No | Session turn count used to compute cumulative prefix token spend (default: 30). | |
| mcpJson | Yes | JSON string containing an MCP tools[] array, { tools: [...] } payload, or .mcp.json / claude_desktop_config.json { mcpServers: { ... } } configuration. | |
| modelId | No | Reference LLM pricing tier ID used to calculate uncached, 5m TTL miss, and warm-cache USD cost. | claude_sonnet_4_5 |
| verboseDescriptionChars | No | Character length threshold above which a tool description is flagged as VERBOSE_TOOL_DESCRIPTION. |