Turso Docs
https://docs.turso.tech/mcp
Search and browse Turso documentation and OpenAPI specs, and report documentation problems to the docs team.
83.0/100
#8 of 33 · #7 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.turso.tech/mcp so AI agents can use it better. It scored 83/100 (B+) on the Agnost MCP Leaderboard.
Top fixes:
1. Agents got stuck retrying in 22% of tasks.
2. Trim query_docs_filesystem_turso's description below 2 KB: move command examples into a resource and keep only supported commands, path layout, and output limits so Claude Code doesn't truncate it.
3. Clarify when to use search_turso versus query_docs_filesystem_turso: search for conceptual questions, the filesystem for exact page reads, grepping code, or OpenAPI paths. Describe the result shape (titles, URLs, snippets) for each.
Per-tool fixes:
- query_docs_filesystem_turso: Trim the examples to 4 key ones and merge the workflow and path-discovery sections into one short paragraph to cut tokens without losing guidance. Very long; some guidance (path conversion, statelessness) could be condensed Placeholder examples repeated in multiple places Description is over 2 KB — Claude Code truncates tool metadata at 2 KB No outputSchema — agents can't tell what the tool returns
- search_turso: Expand the query param description: 'Natural-language or keyword query, e.g. "embedded replicas sync"; returns top matching doc chunks with title, snippet and URL path.' Query parameter description is just 'Search query' with no guidance on phrasing or length No mention of result count or ranking No outputSchema — agents can't tell what the tool returns
- submit_feedback: Add: 'Sends the feedback to the Turso docs team and returns a confirmation; only submit when the user agrees or an error is clearly verified.' Doesn't say what is returned or confirmation behavior Doesn't note the agent should confirm with the user before sending feedback externally 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: 2/3 · gpt-5.5: 2/3 · first-call success 89% · 2.2 calls/task
72/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,168 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 86/100 · 0/3 declare outputSchema
82/100 · 15 pts
↳ Declared output schemas that don't match real output break calls
Response size
median ~1,502 tokens · p95 ~6,728 · no limit params
69/100 · 10 pts
↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens
Latency & long calls
median 587ms · p95 838ms · 0 timeouts
100/100 · 10 pts
↳ After a client cancels a long call, ~39% of sessions end
Connection & login
handshake 995ms · Streamable HTTP
100/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_turso.query
Model sees it · "Input validation error: Invalid arguments for tool search_turso: query: Required"
Sent the wrong type · search_turso.query
Model sees it · "Input validation error: Invalid arguments for tool search_turso: query: Expected string, received number"
Left out a required field · query_docs_filesystem_turso.command
Model sees it · "Input validation error: Invalid arguments for tool query_docs_filesystem_turso: command: Required"
Sent the wrong type · query_docs_filesystem_turso.command
Model sees it · "Input validation error: Invalid arguments for tool query_docs_filesystem_turso: 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 ~9,635 tokens per task on average.
opus-5-5How do I connect to a Turso database from a TypeScript app using the libSQL client?
Right tool first try · 7.1s · search_turso
opus-5-5What are embedded replicas in Turso and how do they sync?
Right tool first try · 11.4s · search_turso → query_docs_filesystem_turso
opus-5-5List the endpoints in the Turso Platform API OpenAPI spec for managing databases.
Right tool first try · 8.2s · query_docs_filesystem_turso
haiku-5-5How do I connect to a Turso database from a TypeScript app using the libSQL client?
Didn't finish in 4 turns · 5.8s · search_turso → query_docs_filesystem_turso → query_docs_filesystem_turso → query_docs_filesystem_turso
haiku-5-5What are embedded replicas in Turso and how do they sync?
Right tool first try · 5.5s · search_turso → query_docs_filesystem_turso
haiku-5-5List the endpoints in the Turso Platform API OpenAPI spec for managing databases.
Right tool first try · 5.6s · query_docs_filesystem_turso → query_docs_filesystem_turso
gpt-5.5How do I connect to a Turso database from a TypeScript app using the libSQL client?
Right tool first try · 7.9s · search_turso → query_docs_filesystem_turso
gpt-5.5What are embedded replicas in Turso and how do they sync?
Right tool first try · 9.6s · search_turso → query_docs_filesystem_turso
gpt-5.5List the endpoints in the Turso Platform API OpenAPI spec for managing databases.
Didn't finish in 4 turns · 9.5s · search_turso → query_docs_filesystem_turso → query_docs_filesystem_turso → query_docs_filesystem_turso
Top 3 fixes
- 1
Agents got stuck retrying in 22% of tasks.
- 2
Trim query_docs_filesystem_turso's description below 2 KB: move command examples into a resource and keep only supported commands, path layout, and output limits so Claude Code doesn't truncate it.
- 3
Clarify when to use search_turso versus query_docs_filesystem_turso: search for conceptual questions, the filesystem for exact page reads, grepping code, or OpenAPI paths. Describe the result shape (titles, URLs, snippets) for each.