Agnost AI
← Leaderboard

Next.js (GitMCP)

https://gitmcp.io/vercel/next.js

Lets an agent fetch and search Next.js documentation and source code from the vercel/next.js GitHub repository.

Docs & knowledge4 toolsv1.1.0Streamable HTTP
C+

65.0/100

#31 of 33 · #27 in Docs & knowledge

Reviewed 23h ago·Scan took 33.3s·Descriptions graded by Claude
Fix it

Fix it with your coding agent

Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.

Fix prompt
Improve the MCP server at https://gitmcp.io/vercel/next.js so AI agents can use it better. It scored 65/100 (C+) on the Agnost MCP Leaderboard. Top fixes: 1. Responses reach ~163,205 tokens (95th percentile). Add limits, pagination or summaries. 2. 1 call(s) timed out. Long work should start a job the agent can check back on. 3. Clarify which file fetch_next_js_documentation returns (llms.txt, README, docs index?) and its size, and revise 'Always call this tool first' so agents can go straight to search_next_js_documentation for specific queries. Per-tool fixes: - fetch_next_js_documentation: Fetches the full primary documentation file (e.g., llms.txt/README) of vercel/next.js and returns it as text; may be large. Call once at the start of a Next.js question to get an overview; use search_next_js_documentation for targeted lookups afterward. Takes no parameters. Doesn't say which file is fetched (e.g., llms.txt or README) or how large the output may be 'Always call this tool first' conflicts with search tool guidance; no criteria for choosing fetch vs search 'Useful for general questions' is vague No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title - search_next_js_documentation: Semantically searches the vercel/next.js documentation and returns the most relevant passages with their source paths. Use for specific questions (e.g., 'how to configure rewrites in next.config.js') instead of fetching the whole doc. Query: natural-language question or topic. Return format (snippets, sections, URLs) not described 'within the fetched documentation' implies dependency on the fetch tool but doesn't state it explicitly No guidance on query style (natural language vs keywords) No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title - fetch_generic_url_content: Fetches an absolute URL (must include https://) and returns its content as text, respecting robots.txt (returns an error if disallowed). Use to follow links found in Next.js docs or code search results. Doesn't state output format (raw HTML, markdown, text) No note on size limits or failure behavior when blocked by robots.txt No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title - search_next_js_code: Searches source code in vercel/next.js via GitHub code search (exact keyword match, supports qualifiers like path: or extension:). Returns up to 30 matching file paths/URLs per page; fetch a file with fetch_generic_url_content. Use for implementation details, not conceptual questions. Doesn't explain GitHub code search query syntax or that exact-match means semantic phrasing fails Return fields (paths, URLs) not specified No mention of rate limits or when to prefer over documentation search No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones No human-readable title Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.

Get the full detailed report

Every tool's score, what broke, and a suggested fix for each one, sent to your inbox.

Score breakdown

Weighted by what breaks agents in 100M+ real MCP calls.

Error quality

7 bad-input tests · 6 clear errors

72/100 · 20 pts

↳ Clear errors that name the fix get ~3× more successful retries

Task success across agents

opus-5-5: 2/3 · haiku-5-5: 2/3 · gpt-5.5: 2/3 · first-call success 67% · 0.7 calls/task

75/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 · ~941 tokens · 2 overlapping pairs

88/100 · 15 pts

↳ The top 3 tools usually get >99% of calls; the rest just cost context

Schema & docs accuracy

Descriptions 66/100 · 0/4 declare outputSchema

67/100 · 15 pts

↳ Declared output schemas that don't match real output break calls

Response size

median ~163,205 tokens · p95 ~163,205 · has limit params

22/100 · 10 pts

↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens

Latency & long calls

median 1519ms · p95 15001ms · 1 timeouts

43/100 · 10 pts

↳ After a client cancels a long call, ~39% of sessions end

Connection & login

handshake 1362ms · Streamable HTTP

84/100 · 10 pts

↳ After a login or permission error, ~1 in 5 sessions end

Metadata & discoverability

metadata 20/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✕ · Setup page in the browser ✓

27/100 · 5 pts

↳ The basics. Necessary, but not what makes agents succeed

Error quality

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.

75

Left out a required field · search_next_js_documentation.query

Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_next_js_documentation: [ { "code": "invalid_type", "expected": "string", "received": "undefine"

75

Sent the wrong type · search_next_js_documentation.query

Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_next_js_documentation: [ { "code": "invalid_type", "expected": "string", "received": "number","

75

Left out a required field · search_next_js_code.query

Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_next_js_code: [ { "code": "invalid_type", "expected": "string", "received": "undefined", ""

75

Sent the wrong type · search_next_js_code.query

Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool search_next_js_code: [ { "code": "invalid_type", "expected": "string", "received": "number", "pat"

75

Left out a required field · fetch_generic_url_content.url

Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool fetch_generic_url_content: [ { "code": "invalid_type", "expected": "string", "received": "undefined","

75

Sent the wrong type · fetch_generic_url_content.url

Protocol error (often hidden from the model) · "MCP error -32602: Invalid arguments for tool fetch_generic_url_content: [ { "code": "invalid_type", "expected": "string", "received": "number", "

55

Called a tool that doesn't exist · —

Protocol error (often hidden from the model) · "MCP error -32602: Tool __agnost_nonexistent_tool__ not found"

AI agent test

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 ~2,521 tokens per task on average.

✓

opus-5-5Give me an overview of what the Next.js repository documentation covers.

Right tool first try · 8.3s · fetch_next_js_documentation

✕

opus-5-5How do I configure incremental static regeneration with revalidate in the Next.js App Router?

Timed out after 25s · 25.0s

✓

opus-5-5Find where the useRouter hook is implemented in the vercel/next.js source code.

Right tool first try · 8.6s · search_next_js_code

✓

haiku-5-5Give me an overview of what the Next.js repository documentation covers.

Right tool first try · 5.8s · fetch_next_js_documentation

✕

haiku-5-5How do I configure incremental static regeneration with revalidate in the Next.js App Router?

Timed out after 25s · 25.0s

✓

haiku-5-5Find where the useRouter hook is implemented in the vercel/next.js source code.

Right tool first try · 5.9s · search_next_js_code

✓

gpt-5.5Give me an overview of what the Next.js repository documentation covers.

Right tool first try · 9.1s · fetch_next_js_documentation

✕

gpt-5.5How do I configure incremental static regeneration with revalidate in the Next.js App Router?

Timed out after 25s · 25.0s

✓

gpt-5.5Find where the useRouter hook is implemented in the vercel/next.js source code.

Right tool first try · 6.1s · search_next_js_code

Top 3 fixes

  1. 1

    Responses reach ~163,205 tokens (95th percentile). Add limits, pagination or summaries.

  2. 2

    1 call(s) timed out. Long work should start a job the agent can check back on.

  3. 3

    Clarify which file fetch_next_js_documentation returns (llms.txt, README, docs index?) and its size, and revise 'Always call this tool first' so agents can go straight to search_next_js_documentation for specific queries.

Tool-by-tool report

description · schema, weakest first

Get the full detailed report

Enter your email and we'll send you the full report: every tool's score, what broke, and a suggested fix for each one. It also unlocks here.