Skip to main content
Glama

headroom_retrieve

Retrieve exact raw content from a ccr:// hash vault, using line ranges, record offsets, or JSONPath to restore only the needed slice losslessly.

Instructions

Losslessly retrieve raw data from a ccr:// vault entry: full restoration, line-range slice (start_line/end_line), JSON record slice (offset/limit), or json_path.

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": {
      "hash": "<hash>"
    },
    "name": "headroom_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesCCR hash ID or ccr://<hash> URI.
limitNoMax records to return in slice.
offsetNo0-based start index for JSON/JSONL record slices.
end_lineNo1-based inclusive end line.
json_pathNoJSON selector path such as 'items[137]' or '$.meta'.
start_lineNo1-based start line for log/text slices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; 'losslessly retrieve' usefully signals a read-only, non-mutating operation that preserves original data. It does not disclose failure behavior for an invalid or expired hash, any size/rate limits, or whether retrieval consumes or retains the vault entry.

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 the source and the four modes enumerated via a colon list. Every clause carries information and nothing is redundant.

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 six-parameter retrieval tool with full schema coverage and no output schema, the description adequately explains the hash source and the mode/parameter pairings. Minor gaps remain around output shape and behavior when a mode parameter combination is invalid, but the essentials for calling it correctly are present.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning by grouping parameters into mutually exclusive modes (line slice vs record slice vs json_path), which the schema lists only as a flat set of properties. It clarifies which parameters combine, though it does not state whether the modes can be mixed.

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?

States a specific verb ('losslessly retrieve') and resource ('raw data from a ccr://<hash> vault entry'), then enumerates the four retrieval modes. It does not explicitly contrast itself with siblings like headroom_grep or headroom_compress, so differentiation is left implicit in the word 'losslessly'.

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?

The description maps each retrieval mode to the parameters that trigger it (line-range via start_line/end_line, record slice via offset/limit, json_path), which is useful invocation guidance. However, it never says when to choose this tool over headroom_grep or headroom_compress, nor any preconditions such as requiring a valid hash.

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