Skip to main content
Glama

inspect_response

Send a request and analyze the response by auto-detecting binary vs text. Show size, content type, and a preview without dumping raw bytes.

Instructions

Send a request and intelligently inspect the response — auto-detects binary vs text, shows size, content-type, and a preview without dumping raw bytes.

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": {
      "request_id": "<request_id>"
    },
    "name": "inspect_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedNoSet to true to confirm sending to an external URL after reviewing it
request_idYes
environment_idNo
max_preview_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does describe the return shape (size, content-type, preview) and implies truncation, but it never states that sending a live request can have side effects on the target server, nor does it mention the confirmation gate for external URLs that the schema hints at. For a tool that performs a real network call, that is a meaningful omission.

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?

A single front-loaded sentence with the purpose stated first and the differentiating output details after. Slightly clause-heavy with comma-chained attributes, but nothing 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?

With no output schema, the description does explain what comes back, which is the most important part. But for a 4-parameter, network-touching tool with no annotations and low schema coverage, it leaves the confirmation workflow, request_id semantics, and side-effect risk unaddressed.

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

Parameters2/5

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

Schema description coverage is only 25%: request_id (required) and environment_id are bare, and the description never mentions any parameter name or what request_id refers to (a saved request identifier presumably) or how environment_id selects a target. Only the 'confirmed' semantics and the default preview length are inferable, and those come from the schema rather than the description.

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?

Names a concrete verb (send a request) and a concrete resource/outcome (inspect the response with size, content-type, and preview). The added detail about binary-vs-text detection distinguishes it from a plain fetch. It does not explicitly name a sibling like assert_response or save_response_to_file, so it stops short of 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 Guidelines3/5

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

Implied guidance exists: 'without dumping raw bytes' signals this is the tool to use when you want a summary rather than full content. However, there is no explicit when-to-use versus alternatives such as assert_response, diff_responses, or save_response_to_file, and no stated preconditions.

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