inspector.restDocs

Output budgets and limits

How MCP tool output stays small - max_output_bytes defaults and maximum, truncation and paging with next_cursor, hints, the rate limit per connection, and the format of tool errors.

Output budget

Every tool takes max_output_bytes. The budget is the UTF-8 size of the compact JSON text the model receives.

ToolsDefault
list_environments, summarize_requests, top_values, list_requests, describe_body, search_bodies4096 bytes
get_request, compare_requests6144 bytes
read_body8192 bytes

The minimum is 512 bytes and the server maximum is 32768 bytes.

When a result does not fit:

  • It is cut at a row, header or part boundary. A value is never cut in the middle unless it is marked, for example a long string that ends with the number of omitted characters.
  • The result has truncated: true and a hint that says which sections were cut and what to do.
  • Lists and searches return next_cursor. Pass it as cursor to get the next rows, starting exactly after the last returned row.

The data is already reduced on the data server (summaries, body selection, search and masking run there), so a big environment costs the agent nothing extra.

Format

  • Lists and summaries are { columns, rows }. There is no indentation and empty fields are omitted.
  • Times are ISO 8601 with milliseconds in UTC. Durations are whole milliseconds. Sizes are bytes.
  • Long values (url, error_message, label values) are shortened to max_value_chars (default 120).
  • Results that contain headers, bodies, URLs, labels or error messages have untrusted_content: true.
  • Every query result has applied_filters: the filters as they were applied, with relative times resolved to absolute ones.

Paging

list_requests and search_bodies page with an opaque cursor made of the start time and an internal id, so rows with the same millisecond are never skipped. list_requests returns 20 rows by default and at most 200. Sort with order: started_at_desc (default), started_at_asc, duration_ms_desc or duration_ms_asc.

Rate limit

Each connection may make 120 tool calls per minute. Listing tools and initializing a session are not counted. When the limit is exceeded, the tool returns a rate_limited error whose hint says how many seconds to wait.

Errors

Tool errors are results with isError: true and the content { code, message, hint }. The hint tells the agent what to do next.

JSON
{
  "code": "unknown_filter",
  "message": "Unknown filter: statuscode.",
  "hint": "Valid filters: since, until, outcome, status, status_class, error_name, retried, method, host, path, path_prefix, path_template, labels, service, duration_ms_min, duration_ms_max, size_min, size_max, text, regex, in."
}
CodeWhen
unknown_filterAn unknown parameter was sent. The hint lists the valid names.
validation_failedA wrong type, a value out of range, or filters that conflict (for example text together with regex).
tool_disabledThe tool’s group is turned off for this connection.
not_foundThe tool, environment or request does not exist, or the environment is out of scope. For environments, the hint lists up to 20 accessible ones.
environment_ambiguousSeveral environments are in scope and environment was not given.
organization_suspendedThe organization is suspended.
rate_limitedThe per-minute limit was exceeded.
upstream_unavailable, bad_gatewayThe data server could not be reached. Try again.
binary_body, body_not_captured, invalid_cursor, invalid_regexProblems with the requested body, cursor or expression.

Authentication problems are returned before the MCP protocol with HTTP 401 and a WWW-Authenticate header that points to the OAuth metadata. See Error codes for the full list.