DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to shrink first tool responses for Claude Code with MCP Slim Guard

Use Extreme mode so large results arrive as a smaller first delivery that stays recoverable.

Short answer: Run mcp-slim-guard plan --host claude-code --mode extreme to review the planned host entry without changing files; then run mcp-slim-guard install --host claude-code --mode extreme after reviewing the plan; start a session that makes a tool call with a large result and check that the first response includes a result_ref. All steps.

Who it is forA Claude Code user working in a context-sensitive session where big MCP results crowd out the rest of the conversation.

The problemFull-size tool results fill the context quickly, leaving little room for the actual task.

The outcomeLarge results come back as a shorter first delivery with a result_ref, and the exact response can still be read back.

What you need first

  • A reviewed checkout of the lennney/mcp-slim-guard repository (0.1.1-alpha.2 is not yet published to npm)
  • npm to run ci, build, and link the package
  • A project directory that already has an MCP configuration
  • An upstream MCP server definition you are authorized to use

Steps

  1. Run mcp-slim-guard plan --host claude-code --mode extreme to review the planned host entry without changing files.
  2. Run mcp-slim-guard install --host claude-code --mode extreme after reviewing the plan. (inferred, check the README)
  3. Start a session that makes a tool call with a large result and check that the first response includes a result_ref.
  4. Use read_result to fetch the rest of the exact response when the task needs it.

Prompt for your agent

For the lennney/mcp-slim-guard project at <project-path>, produce the Claude Code Extreme mode plan and show the host entry it would write. Then run one large tool call and confirm the first response is shorter than the exact response and includes a result_ref.

Caveat. The README says Extreme only shortens a response when the first delivery is at least half the size of the exact response, so small results pass through unchanged.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for lennney/mcp-slim-guard and "Shrink first tool responses for Claude Code"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer