Skip to main content
Glama

diff_responses

Compare JSON responses from the same or two different requests across two environments to identify structural differences, such as staging versus production.

Instructions

Send the same request (or two different requests) against two environments and show a structural diff of the JSON responses. Great for comparing staging vs production.

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_a": "<request_id_a>"
    },
    "name": "diff_responses"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedNoSet to true to confirm sending to an external URL after reviewing it
request_id_aYesFirst request to send
request_id_bNoSecond request (defaults to same as A)
environment_id_aNoEnvironment for request A
environment_id_bNoEnvironment for request B

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.5/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 load; it does disclose the important fact that real requests are sent to two environments, which implies network side effects. It says nothing about authentication needs, whether requests can mutate state in production, rate limits, or how non-JSON responses are handled, and the 'confirmed' gate is left unexplained.

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 sentences, front-loaded with the action and result, with the staging-vs-production line as a quick motivating example. The parenthetical is slightly clunky but nothing is wasted.

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 five-parameter tool with no output schema, the description covers what it does and roughly what it returns (a structural JSON diff). Missing is any warning that this fires live traffic at two environments, which matters given the 'confirmed' safety flag in the schema.

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 coverage is 100%, so every parameter is already documented, including that request_id_b defaults to A. The description reinforces the 'same request vs two different requests' semantics but adds no new meaning about the optional environments or the confirmation flag.

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 uses a specific verb and resource: it sends requests to two environments and returns a structural diff of the JSON responses. That is meaningfully distinct from config-comparison siblings like compare_environments, though the description never names an alternative to sharpen the boundary.

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 implied by the example 'comparing staging vs production', which gives an agent a concrete scenario. There is no explicit when-not guidance, no statement about when to use compare_environments instead, and no explanation of when the 'confirmed' flag is expected.

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