Skip to main content
Glama

read_cached_output

Inspect a trimmed upstream payload from the spillover cache by JSON path or character slice, so you can read oversized response details without reloading the full result.

Instructions

Inspect a trimmed upstream payload stored in the spillover cache by JSON dot/bracket path or character slice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cacheId": "<cacheId>"
    },
    "name": "read_cached_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOptional JSON path (e.g. 'items[12].body').
limitNoMax characters to return (default 4000, max 16000).
offsetNoCharacter offset for plain text or stringified slices (default 0).
cacheIdYesThe cacheId returned inside a trimmed call_tool response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does disclose the key behavioral fact that the cached payload is trimmed and can be paged by character slice, but it omits whether the read is side-effect free, whether cache entries expire, and what happens with a stale or invalid cacheId.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the resource and both access modes come before any qualifier. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter read tool with no output schema and no annotations, the definition covers what the tool reads and how to address it, leaving only cache lifetime and failure behavior unstated. Those gaps are modest relative to the schema's complete parameter documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all four parameters including defaults and limits. The description only reinforces the two access modes (path vs offset/limit slice) without adding syntax or interaction detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (inspect) and resource (a trimmed upstream payload held in the spillover cache), and names the two retrieval modes (JSON path or character slice). This clearly separates it from call_tool, describe_tool and search_tools, though the framing 'inspect' slightly underplays that it returns content.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'trimmed upstream payload' hints that this is the follow-up when a tool response was truncated, but the description never says 'use this when a call_tool response is trimmed' or when to prefer path over offset/limit. The only explicit trigger lives in the cacheId schema description, not the tool description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.