Skip to main content
Glama

infer_response_schema

Sends an API request and infers the JSON schema of its response body, so you can understand what an endpoint returns without reading documentation.

Instructions

Send a request and infer the JSON schema of the response body. Useful for understanding what an API returns without reading docs.

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": "infer_response_schema"
  }
}

Input Schema

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

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?

With no annotations, the description carries the full burden of behavioral disclosure. It says a request is sent, but never states that this is an outbound network call against a possibly external URL, that a `confirmed` flag gates that, whether the request mutates server state, or what auth prerequisites exist. The confirmation workflow is only discoverable from the schema property text, not the description.

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?

Two short sentences, front-loaded with the action and followed by the motivation. No filler and nothing redundant.

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

Completeness2/5

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

No annotations, no output schema, and only one of three parameters documented. For a tool that performs an outbound request with a confirmation gate, the description leaves too much of the operational picture to inference.

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 33% (request_id and environment_id are undocumented), and the description adds nothing about any parameter. It does not say that request_id names a saved request, what environment_id scopes, or that `confirmed` is a two-step safety gate, so the coverage gap is not compensated.

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+object pair: send a request and infer the JSON schema of the response body. That is meaningfully distinct from siblings like assert_response or inspect_response, though it never explicitly contrasts itself with them.

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?

"Useful for understanding what an API returns without reading docs" implies the intended situation, but there is no explicit when-not guidance, no mention of prerequisites (an existing request/request_id), and no named alternative such as inspect_response.

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