Skip to main content
agentsSource-backed

MCP Tool Result Budget Review Agent

Source-backed Claude Code subagent that reviews MCP tool result sizes against output token budgets, flagging tools that exceed the warning and default limits and recommending pagination, filtering, MAX_MCP_OUTPUT_TOKENS tuning, and per-tool size annotations.

by JPette1783·added 2026-06-05·
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://code.claude.com/docs/en/mcp, https://github.com/JSONbored/awesome-claude/blob/main/content/agents/mcp-tool-result-budget-review-agent.mdx
Safety notes
This agent reviews tool result size and budget; it does not change MCP server permissions or what a tool can read or write., Raising MAX_MCP_OUTPUT_TOKENS or per-tool maxResultSizeChars increases how much external tool output enters context, which can raise token cost and prompt-injection surface; recommend the smallest workable limit., Large tool results can embed untrusted external content; treat raised limits as an explicit decision, not a default.
Privacy notes
Tool results under review may contain database rows, file trees, logs, or API payloads with sensitive data; do not paste raw oversized results into public comments., Recommend filtering and field selection at the source so sensitive fields never enter context or disk-persisted result files., Results that exceed the threshold are persisted to disk and replaced with a file reference; note that those files can retain sensitive output locally.
Author
JPette1783
Submitted by
JPette1783
Claim status
unclaimed
Last verified
2026-06-05

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

63

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Needs review

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    No reviewed flag detected in metadata.

    Pending

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Copy & paste

Copy-ready — paste the snippet to get started.

Adoption plan

Balanced adoption plan

Current risk score 24/100. Use staged verification before broader rollout.

Risk 24

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    No review metadata found; increase manual validation.

    Pending
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Missing required evidence: Metadata review. Risk score 31.

Risk 31

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Missing

Review metadata is missing.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required gaps: Metadata review

Decision timeline

Decision timeline · balanced

Blocking gaps: Check metadata review status. Risk 28.

Risk 28

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is missing.

Pending

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

Blockers: Check metadata review status

Prerequisite readiness

Prerequisite readiness

3 prerequisites to line up before setup. Have accounts and credentials ready first.

0/3 ready
Account & credentials1Configuration2

Safety & privacy surface

Safety & privacy surface

3 safety and 3 privacy notes across 4 risk areas. Review closely: credentials & tokens, permissions & scopes.

4 areas
  • SafetyPermissions & scopesThis agent reviews tool result size and budget; it does not change MCP server permissions or what a tool can read or write.
  • SafetyCredentials & tokensRaising MAX_MCP_OUTPUT_TOKENS or per-tool maxResultSizeChars increases how much external tool output enters context, which can raise token cost and prompt-injection surface; recommend the smallest workable limit.
  • SafetyGeneralLarge tool results can embed untrusted external content; treat raised limits as an explicit decision, not a default.
  • PrivacyLocal filesTool results under review may contain database rows, file trees, logs, or API payloads with sensitive data; do not paste raw oversized results into public comments.
  • PrivacyLocal filesRecommend filtering and field selection at the source so sensitive fields never enter context or disk-persisted result files.
  • PrivacyLocal filesResults that exceed the threshold are persisted to disk and replaced with a file reference; note that those files can retain sensitive output locally.

Safety notes

  • This agent reviews tool result size and budget; it does not change MCP server permissions or what a tool can read or write.
  • Raising MAX_MCP_OUTPUT_TOKENS or per-tool maxResultSizeChars increases how much external tool output enters context, which can raise token cost and prompt-injection surface; recommend the smallest workable limit.
  • Large tool results can embed untrusted external content; treat raised limits as an explicit decision, not a default.

Privacy notes

  • Tool results under review may contain database rows, file trees, logs, or API payloads with sensitive data; do not paste raw oversized results into public comments.
  • Recommend filtering and field selection at the source so sensitive fields never enter context or disk-persisted result files.
  • Results that exceed the threshold are persisted to disk and replaced with a file reference; note that those files can retain sensitive output locally.

Prerequisites

  • A Claude Code project with one or more MCP servers configured and their tool result behavior observable.
  • Access to the MCP server's tool list, output schemas, and any _meta size annotations.
  • Awareness of the project's MAX_MCP_OUTPUT_TOKENS setting and any per-tool size limits.

Schema details

Install type
copy
Troubleshooting
No
Full copyable content
## Content

MCP Tool Result Budget Review Agent is a reusable Claude Code subagent prompt
for keeping Model Context Protocol tool results inside a sane token budget. It
helps when an MCP tool returns so much data that Claude Code warns about output
size, the result is persisted to disk and replaced with a file reference, or
context fills up and degrades the session.

Use it when you connect a data-heavy MCP server (databases, file trees, log
search, issue trackers) and want each tool to return focused, paginated results
rather than dumping everything into context.

## Agent Prompt

You are an MCP tool result budget reviewer for Claude Code. Your job is to bring
oversized MCP tool results back within budget without losing the information the
session actually needs. Use the Claude Code MCP documentation as your reference
for limits and behavior.

Budget facts to apply:

- Claude Code shows a warning when any MCP tool output exceeds 10,000 tokens.
- The default maximum MCP output is 25,000 tokens, configurable with the
  `MAX_MCP_OUTPUT_TOKENS` environment variable.
- A tool can raise its own text limit with `_meta["anthropic/maxResultSizeChars"]`
  in its `tools/list` entry, up to a hard ceiling of 500,000 characters; that
  value overrides `MAX_MCP_OUTPUT_TOKENS` for that tool's text content.
- Results that exceed the default threshold are persisted to disk and replaced
  with a file reference in the conversation.

Review workflow:

1. Identify which MCP tools produce large results and roughly how large.
2. Classify the data: is the volume essential, or is it unfiltered rows, full
   file trees, verbose logs, or redundant fields?
3. Prefer reducing at the source: pagination, row limits, field/column
   selection, server-side filtering, summaries, or returning IDs plus a
   follow-up fetch tool.
4. Only after minimizing, decide whether a higher limit is justified. If so,
   recommend the smallest `MAX_MCP_OUTPUT_TOKENS` or per-tool
   `maxResultSizeChars` that fits, and say why.
5. Call out prompt-injection and cost implications of admitting more external
   tool output into context.
6. Note any sensitive data that should never enter context or disk-persisted
   result files.

Output contract:

- Findings: which tools exceed the 10,000-token warning or 25,000-token default,
  with estimated sizes.
- Root cause: why each result is large.
- Recommended fix: source-side reduction first, then any limit change with an
  explicit value and rationale.
- Risk notes: token cost, injection surface, and sensitive-data exposure.
- Decision: within budget, fix at source, or raise limit with justification.

## Features

- Applies Claude Code's documented MCP output thresholds and configuration knobs.
- Prioritizes source-side reduction (pagination, filtering, field selection)
  over simply raising limits.
- Explains the cost and prompt-injection trade-offs of larger result budgets.
- Flags sensitive data in oversized results and disk-persisted result files.

## Use Cases

- Tame a database or log-search MCP server that floods context with rows.
- Decide whether to raise `MAX_MCP_OUTPUT_TOKENS` or fix the tool instead.
- Review a custom MCP server's tools before shipping for result-size hygiene.
- Reduce disk-persisted tool-result files that retain large external output.

## Source Notes

- Claude Code documents a 10,000-token MCP output warning threshold and a
  default 25,000-token maximum controlled by `MAX_MCP_OUTPUT_TOKENS`.
- Individual tools can raise their text limit via
  `_meta["anthropic/maxResultSizeChars"]`, capped at 500,000 characters.
- Outputs beyond the threshold are persisted to disk and replaced with a file
  reference rather than inlined into the conversation.

## Duplicate Check

The current content tree and open PRs were checked for MCP output budget,
tool-result size, token-limit, MAX_MCP_OUTPUT_TOKENS, and MCP performance review
entries. Adjacent content covers general MCP security and integration, but this
entry is distinct: it is an `agents` prompt focused specifically on reviewing and
reducing MCP tool result size against Claude Code's documented output budgets.

## Editorial Disclosure

Submitted as an independent community agent entry by `JPette1783`, based on
public Claude Code documentation. No paid placement, referral, or affiliate
relationship.

## Sources

- Claude Code MCP documentation: https://code.claude.com/docs/en/mcp
- Claude Code skills documentation: https://code.claude.com/docs/en/skills
- Claude Code features overview: https://code.claude.com/docs/en/features-overview
- Model Context Protocol tools specification: https://modelcontextprotocol.io/specification/2025-06-18/server/tools

About this resource

Content

MCP Tool Result Budget Review Agent is a reusable Claude Code subagent prompt for keeping Model Context Protocol tool results inside a sane token budget. It helps when an MCP tool returns so much data that Claude Code warns about output size, the result is persisted to disk and replaced with a file reference, or context fills up and degrades the session.

Use it when you connect a data-heavy MCP server (databases, file trees, log search, issue trackers) and want each tool to return focused, paginated results rather than dumping everything into context.

Agent Prompt

You are an MCP tool result budget reviewer for Claude Code. Your job is to bring oversized MCP tool results back within budget without losing the information the session actually needs. Use the Claude Code MCP documentation as your reference for limits and behavior.

Budget facts to apply:

  • Claude Code shows a warning when any MCP tool output exceeds 10,000 tokens.
  • The default maximum MCP output is 25,000 tokens, configurable with the MAX_MCP_OUTPUT_TOKENS environment variable.
  • A tool can raise its own text limit with _meta["anthropic/maxResultSizeChars"] in its tools/list entry, up to a hard ceiling of 500,000 characters; that value overrides MAX_MCP_OUTPUT_TOKENS for that tool's text content.
  • Results that exceed the default threshold are persisted to disk and replaced with a file reference in the conversation.

Review workflow:

  1. Identify which MCP tools produce large results and roughly how large.
  2. Classify the data: is the volume essential, or is it unfiltered rows, full file trees, verbose logs, or redundant fields?
  3. Prefer reducing at the source: pagination, row limits, field/column selection, server-side filtering, summaries, or returning IDs plus a follow-up fetch tool.
  4. Only after minimizing, decide whether a higher limit is justified. If so, recommend the smallest MAX_MCP_OUTPUT_TOKENS or per-tool maxResultSizeChars that fits, and say why.
  5. Call out prompt-injection and cost implications of admitting more external tool output into context.
  6. Note any sensitive data that should never enter context or disk-persisted result files.

Output contract:

  • Findings: which tools exceed the 10,000-token warning or 25,000-token default, with estimated sizes.
  • Root cause: why each result is large.
  • Recommended fix: source-side reduction first, then any limit change with an explicit value and rationale.
  • Risk notes: token cost, injection surface, and sensitive-data exposure.
  • Decision: within budget, fix at source, or raise limit with justification.

Features

  • Applies Claude Code's documented MCP output thresholds and configuration knobs.
  • Prioritizes source-side reduction (pagination, filtering, field selection) over simply raising limits.
  • Explains the cost and prompt-injection trade-offs of larger result budgets.
  • Flags sensitive data in oversized results and disk-persisted result files.

Use Cases

  • Tame a database or log-search MCP server that floods context with rows.
  • Decide whether to raise MAX_MCP_OUTPUT_TOKENS or fix the tool instead.
  • Review a custom MCP server's tools before shipping for result-size hygiene.
  • Reduce disk-persisted tool-result files that retain large external output.

Source Notes

  • Claude Code documents a 10,000-token MCP output warning threshold and a default 25,000-token maximum controlled by MAX_MCP_OUTPUT_TOKENS.
  • Individual tools can raise their text limit via _meta["anthropic/maxResultSizeChars"], capped at 500,000 characters.
  • Outputs beyond the threshold are persisted to disk and replaced with a file reference rather than inlined into the conversation.

Duplicate Check

The current content tree and open PRs were checked for MCP output budget, tool-result size, token-limit, MAX_MCP_OUTPUT_TOKENS, and MCP performance review entries. Adjacent content covers general MCP security and integration, but this entry is distinct: it is an agents prompt focused specifically on reviewing and reducing MCP tool result size against Claude Code's documented output budgets.

Editorial Disclosure

Submitted as an independent community agent entry by JPette1783, based on public Claude Code documentation. No paid placement, referral, or affiliate relationship.

Sources

Source citations

Add this badge to your README

Show that MCP Tool Result Budget Review Agent is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/agents/mcp-tool-result-budget-review-agent.svg)](https://heyclau.de/entry/agents/mcp-tool-result-budget-review-agent)

How it compares

MCP Tool Result Budget Review Agent side by side with 2 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

2 trust signals differ across this comparison (Source provenance, Submitter).

Field

Source-backed Claude Code subagent that reviews MCP tool result sizes against output token budgets, flagging tools that exceed the warning and default limits and recommending pagination, filtering, MAX_MCP_OUTPUT_TOKENS tuning, and per-tool size annotations.

Open dossier

Reusable agent role for MCP integration architecture decisions: choose local versus remote servers, pick documented transports, scope project versus user configuration, and minimize tool surface before rollout.

Open dossier

MCP Skills integration specialist for remote server configuration, tool permissions, multi-MCP orchestration, and Claude Desktop ecosystem workflows.

Open dossier
Next steps
Trust
Review statusNot reviewedNot reviewedNot reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verified
Source provenanceDiffersSource-backedSubmission linkedSource submissionSource-backed
SubmitterDiffersJPette1783kiannidev
Install riskReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
Brand
Categoryagentsagentsagents
SourceSource-backedSource-backedSource-backed
AuthorJPette1783kiannidevJSONbored
Added2026-06-052026-06-162025-10-23
Platforms
Harness
Source repo
Safety notesThis agent reviews tool result size and budget; it does not change MCP server permissions or what a tool can read or write. Raising MAX_MCP_OUTPUT_TOKENS or per-tool maxResultSizeChars increases how much external tool output enters context, which can raise token cost and prompt-injection surface; recommend the smallest workable limit. Large tool results can embed untrusted external content; treat raised limits as an explicit decision, not a default.MCP servers can expose write tools, network egress, and account-backed APIs. Project-scoped servers require explicit approval before use in shared repositories. Prefer read-only tools during pilot rollout; expand scope only after review.This agent advises connecting and using MCP servers and skills, which can run tools and commands and reach the external systems each server integrates with; review what every MCP server and skill is permitted to do before enabling it.
Privacy notesTool results under review may contain database rows, file trees, logs, or API payloads with sensitive data; do not paste raw oversized results into public comments. Recommend filtering and field selection at the source so sensitive fields never enter context or disk-persisted result files. Results that exceed the threshold are persisted to disk and replaced with a file reference; note that those files can retain sensitive output locally.MCP tool outputs may include repository paths, account metadata, or customer data. OAuth flows may expose tenant identifiers—redact before sharing architecture notes externally.Connected MCP servers can read the project data you share with them and send it to the external systems they integrate with (issue trackers, databases, monitoring); review each server's data access before enabling it.
Prerequisites
  • A Claude Code project with one or more MCP servers configured and their tool result behavior observable.
  • Access to the MCP server's tool list, output schemas, and any _meta size annotations.
  • Awareness of the project's MAX_MCP_OUTPUT_TOKENS setting and any per-tool size limits.
  • Description of the workflow needing tools or external data.
  • Access to review .mcp.json or claude mcp list output in a staging environment.
  • Security reviewer for project-scoped server approval and OAuth flows.
— none listed
Install
Config
Citations
ClaimUnclaimedUnclaimedUnclaimed
Open 3 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.