Retell Docs
https://docs.retellai.com/mcp
Search and browse Retell AI's voice-agent documentation and OpenAPI spec, and report documentation problems.
81.0/100
#15 of 33 · #14 in Docs & knowledge
Fix it with your coding agent
Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.
Improve the MCP server at https://docs.retellai.com/mcp so AI agents can use it better. It scored 81/100 (B+) on the Agnost MCP Leaderboard.
Top fixes:
1. Responses reach ~25,739 tokens (95th percentile). Add limits, pagination or summaries.
2. Trim query_docs_filesystem_retell_ai's description under 2 KB: move the shell command reference into a resource and keep only the supported commands, path layout, and when to prefer it over search.
3. Add outputSchemas: search results as title/URL/snippet entries, filesystem query output as text plus exit status, and a submit_feedback confirmation with an ID.
Per-tool fixes:
- query_docs_filesystem_retell_ai: Trim the repeated path-guessing warnings into one line. Replace the jq example with a real spec filename pattern, e.g. `find /openapi -name '*.json'`, then jq on the file it returns. Very long; some sentences repeat the same guidance (path discovery, the .mdx conversion) The jq example uses /openapi/package-lock.json, which is confusing as an OpenAPI spec path Description is over 2 KB — Claude Code truncates tool metadata at 2 KB No outputSchema — agents can't tell what the tool returns
- search_retell_ai: Expand the query param description: 'Natural-language or keyword query about Retell AI features/APIs, e.g. "configure webhook for call ended"'. Note how many results are returned. Query param description 'Search query' gives no guidance on phrasing (keywords vs natural language) Doesn't state result count or ranking behavior No outputSchema — agents can't tell what the tool returns
- submit_feedback: Add: 'Only submit when the user agrees or a clear doc error is confirmed. Returns a confirmation message.' Doesn't say whether the agent should get user consent before sending feedback Doesn't say what the tool returns No outputSchema — agents can't tell what the tool returns
Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.Score breakdown
Weighted by what breaks agents in 100M+ real MCP calls.
Error quality
5 bad-input tests · 4 clear errors
83/100 · 20 pts
↳ Clear errors that name the fix get ~3× more successful retries
Task success across agents
opus-5-5: 3/3 · haiku-5-5: 3/3 · gpt-5.5: 3/3 · first-call success 100% · 1.4 calls/task
97/100 · 15 pts
↳ The same tool can fail 0% of the time in one client and 13% in another
Tool count & token cost
3 tools · ~2,176 tokens · 1 overlapping pairs
94/100 · 15 pts
↳ The top 3 tools usually get >99% of calls; the rest just cost context
Schema & docs accuracy
Descriptions 85/100 · 0/3 declare outputSchema
81/100 · 15 pts
↳ Declared output schemas that don't match real output break calls
Response size
median ~7,782 tokens · p95 ~25,739 · no limit params
26/100 · 10 pts
↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens
Latency & long calls
median 751ms · p95 1077ms · 0 timeouts
96/100 · 10 pts
↳ After a client cancels a long call, ~39% of sessions end
Connection & login
handshake 1116ms · Streamable HTTP
94/100 · 10 pts
↳ After a login or permission error, ~1 in 5 sessions end
Metadata & discoverability
metadata 45/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✓ · Setup page in the browser ✕
39/100 · 5 pts
↳ The basics. Necessary, but not what makes agents succeed
What your errors look like to an agent
We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.
Left out a required field · search_retell_ai.query
Model sees it · "Input validation error: Invalid arguments for tool search_retell_ai: query: Required"
Sent the wrong type · search_retell_ai.query
Model sees it · "Input validation error: Invalid arguments for tool search_retell_ai: query: Expected string, received number"
Left out a required field · query_docs_filesystem_retell_ai.command
Model sees it · "Input validation error: Invalid arguments for tool query_docs_filesystem_retell_ai: command: Required"
Sent the wrong type · query_docs_filesystem_retell_ai.command
Model sees it · "Input validation error: Invalid arguments for tool query_docs_filesystem_retell_ai: command: Expected string, received number"
Called a tool that doesn't exist · —
Protocol error (often hidden from the model) · "Tool __agnost_nonexistent_tool__ not found"
We let a real AI agent use it
3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~6,629 tokens per task on average.
opus-5-5How do I create a phone call with a Retell AI agent via the API?
Right tool first try · 8.9s · search_retell_ai
opus-5-5Find Retell AI docs on configuring webhooks for call events.
Right tool first try · 7.0s · search_retell_ai
opus-5-5List the documentation files available for the Retell AI API reference.
Right tool first try · 8.9s · query_docs_filesystem_retell_ai
haiku-5-5How do I create a phone call with a Retell AI agent via the API?
Right tool first try · 6.9s · search_retell_ai → search_retell_ai
haiku-5-5Find Retell AI docs on configuring webhooks for call events.
Right tool first try · 3.4s · search_retell_ai
haiku-5-5List the documentation files available for the Retell AI API reference.
Right tool first try · 4.9s · query_docs_filesystem_retell_ai → query_docs_filesystem_retell_ai
gpt-5.5How do I create a phone call with a Retell AI agent via the API?
Right tool first try · 8.6s · search_retell_ai → search_retell_ai
gpt-5.5Find Retell AI docs on configuring webhooks for call events.
Right tool first try · 6.2s · search_retell_ai
gpt-5.5List the documentation files available for the Retell AI API reference.
Right tool first try · 13.2s · query_docs_filesystem_retell_ai → query_docs_filesystem_retell_ai
Top 3 fixes
- 1
Responses reach ~25,739 tokens (95th percentile). Add limits, pagination or summaries.
- 2
Trim query_docs_filesystem_retell_ai's description under 2 KB: move the shell command reference into a resource and keep only the supported commands, path layout, and when to prefer it over search.
- 3
Add outputSchemas: search results as title/URL/snippet entries, filesystem query output as text plus exit status, and a submit_feedback confirmation with an ID.