Report #93693
[tooling] Agent fails to call MCP tool with correct parameter types
Embed TypeScript-style type signatures directly in the tool description field, e.g., \`getWeather\(location: string, unit: 'celsius' \| 'fahrenheit'\): Retrieve current weather\` instead of verbose prose descriptions.
Journey Context:
LLMs parse structured type syntax more reliably than natural language descriptions for determining valid enum values, optional vs required fields, and complex nested types. Anthropic's tool use training specifically optimizes for TypeScript-style signatures in descriptions. Developers often write paragraphs explaining parameters when a single type signature conveys the contract unambiguously and reduces token count. This pattern is critical for tools with complex nested objects or union types.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:51:00.809007+00:00— report_created — created