GitBook Docs
https://gitbook.com/docs/~gitbook/mcp
Search, read, and ask questions about GitBook's official documentation, and report documentation issues.
74.0/100
#28 of 33 · #25 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://gitbook.com/docs/~gitbook/mcp so AI agents can use it better. It scored 74/100 (B-) on the Agnost MCP Leaderboard.
Top fixes:
1. Responses reach ~69,535 tokens (95th percentile). Add limits, pagination or summaries.
2. 3 call(s) timed out. Long work should start a job the agent can check back on.
3. Document the undescribed searchDocumentation parameter (e.g. result limit or filter) with its format, default, and allowed range.
Per-tool fixes:
- searchDocumentation: Add a query description, e.g. 'Keywords or a short phrase to search for, e.g. "custom domain setup"', and note: 'Use askQuestion instead when you want a synthesized answer.' query parameter has no description (format, keyword vs natural language) No mention of result count or how it differs from askQuestion 1 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns
- sendFeedback: Add: 'Submits a report to the GitBook docs team; returns a confirmation.' and condense the sanity-check guidance to one sentence. Encourages proactive sending without asking the user first Somewhat long; could be tightened No outputSchema — agents can't tell what the tool returns
- getPage: Clarify the url param: 'Full URL of a GitBook Documentation page (must be under https://gitbook.com/docs/), typically taken from searchDocumentation results.' Doesn't state whether URLs outside gitbook.com/docs or relative paths are accepted No outputSchema — agents can't tell what the tool returns
- askQuestion: Doesn't mention answer may be non-deterministic or latency/cost relative to search 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
7 bad-input tests · 7 clear errors
85/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 67% · 1.7 calls/task
88/100 · 15 pts
↳ The same tool can fail 0% of the time in one client and 13% in another
Tool count & token cost
4 tools · ~1,712 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 88/100 · 0/4 declare outputSchema
82/100 · 15 pts
↳ Declared output schemas that don't match real output break calls
Response size
median ~4,091 tokens · p95 ~69,535 · no limit params
36/100 · 10 pts
↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens
Latency & long calls
median 886ms · p95 11946ms · 3 timeouts
37/100 · 10 pts
↳ After a client cancels a long call, ~39% of sessions end
Connection & login
handshake 1168ms · Streamable HTTP
94/100 · 10 pts
↳ After a login or permission error, ~1 in 5 sessions end
Metadata & discoverability
metadata 30/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✕ · Setup page in the browser ✕
15/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 · searchDocumentation.query
Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool searchDocumentation: [ { "code": "invalid_type", "expected": "string", "recei"
Sent an option that doesn't exist · searchDocumentation.language
Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool searchDocumentation: [ { "code": "invalid_type", "expected": "string", "recei"
Left out a required field · getPage.url
Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool getPage: [ { "code": "invalid_type", "expected": "string", "received": "undef"
Sent the wrong type · getPage.url
Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool getPage: [ { "code": "invalid_type", "expected": "string", "received": "numbe"
Left out a required field · askQuestion.question
Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool askQuestion: [ { "code": "invalid_type", "expected": "string", "received": "u"
Sent the wrong type · askQuestion.question
Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool askQuestion: [ { "code": "invalid_type", "expected": "string", "received": "n"
Called a tool that doesn't exist · —
Model sees it · "MCP error -32602: 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,839 tokens per task on average.
opus-5-5How do I set up a custom domain for my GitBook site?
Right tool first try · 20.0s · askQuestion → searchDocumentation → getPage
opus-5-5Find GitBook docs pages about Git Sync with GitHub.
Right tool first try · 6.2s · searchDocumentation
opus-5-5Read the full content of the GitBook docs page at https://gitbook.com/docs/getting-started/quickstart
Right tool first try · 9.7s · getPage
haiku-5-5How do I set up a custom domain for my GitBook site?
Right tool first try · 17.9s · askQuestion → searchDocumentation → searchDocumentation
haiku-5-5Find GitBook docs pages about Git Sync with GitHub.
Right tool first try · 3.5s · searchDocumentation
haiku-5-5Read the full content of the GitBook docs page at https://gitbook.com/docs/getting-started/quickstart
Right tool first try · 5.1s · getPage
gpt-5.5How do I set up a custom domain for my GitBook site?
Right tool first try · 21.9s · askQuestion → searchDocumentation → getPage
gpt-5.5Find GitBook docs pages about Git Sync with GitHub.
Right tool first try · 5.1s · searchDocumentation
gpt-5.5Read the full content of the GitBook docs page at https://gitbook.com/docs/getting-started/quickstart
Right tool first try · 3.5s · getPage
Top 3 fixes
- 1
Responses reach ~69,535 tokens (95th percentile). Add limits, pagination or summaries.
- 2
3 call(s) timed out. Long work should start a job the agent can check back on.
- 3
Document the undescribed searchDocumentation parameter (e.g. result limit or filter) with its format, default, and allowed range.