MCP Shipyard
← Rules catalog

MCP tool responses over 100 KB burn the model's context

Fixture responses over 100 KB warn and over 500 KB fail. Paginate or summarise instead of returning a full dump. Minor, for Claude and ChatGPT.

minoroutput.response-sizeClaude, ChatGPT

Paginate or summarise large results instead of returning everything. The rule output.response-size is a minor finding for Claude and ChatGPT: a response over about 100 KB warns and one over 500 KB fails.

What you see

  • A scan reports output.response-size per fixture call: 312 KB response.
  • It only checks tools you have fixture calls for. A server with no fixtures never triggers it; see errors.no-fixtures.

Why it happens

A list tool returns every row, or a detail tool embeds raw upstream payloads. The rule's fix text quotes Claude review: do not return a full database dump when a summary was requested.

Check it yourself

Call the tool with its fixture arguments and count the bytes:

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_orders","arguments":{}}}' | wc -c

Fix

  • Add limit (with a maximum) and a cursor to list tools; see schema.limit-unbounded.
  • Return the fields the model needs: id, status, total, not the full upstream record.
  • Say in the description how to page: "Returns up to 25 orders. Pass next_cursor for more."

Verify

The byte count is well under 100,000 for fixture calls, then re-scan.

Which clients care

Claude and ChatGPT, per the rule.

Source

Claude review criteria: https://claude.com/docs/connectors/building/review-criteria

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server