Skip to main content
Glama

get_body

Retrieves a captured HTTP response body from a session directory by relative path, enabling AI coding agents to inspect exact server responses tied to recorded evidence.

Instructions

Captured HTTP response body. path relative to session dir, e.g. bodies/r3.json

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": {
      "path": "<path>"
    },
    "name": "get_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it only conveys that the body was previously captured and is addressed relative to the session directory. It says nothing about the return format (raw text vs parsed JSON), behavior on a missing or invalid path, size limits, or whether the body may be truncated.

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

Conciseness4/5

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

Two compact clauses, front-loaded with the resource identity followed by the parameter hint, with zero filler. The extreme terseness leaves obvious gaps (no return format), but nothing written is wasted.

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

Completeness3/5

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

For a single-parameter file getter with no output schema and no annotations, the description covers what the path means but omits what comes back and what happens on failure. It is minimally sufficient for invocation but incomplete for confident use.

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 description coverage is 0% for the single `path` parameter, but the description compensates well by stating the path is relative to the session dir and giving a concrete example ('bodies/r3.json'). It adds real meaning the schema does not, though it could say where such paths come from.

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 fragment 'Captured HTTP response body' identifies the resource precisely and the example path ('bodies/r3.json') makes clear it retrieves a stored response artifact, distinguishing it from siblings like get_shot or get_errors. It lacks an explicit verb, so the action (read/return) is implied rather than stated, keeping it below a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this tool versus get_transcript, get_dom_state, session_md, or other getters, and no stated preconditions such as needing a path obtained from another tool's output. The path example only hints at usage indirectly.

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