Skip to main content
Glama

check_response_mapping

Compares response parsing against a sample body to identify unmapped sample fields and mapping keys absent from the sample; use it without a network or connection when a request can't be run.

Instructions

Compare an entity's response parsing with a sample body: which sample fields remained unmapped and which mapping keys don't appear in the sample. The sample comes from the partner's documentation (the response example section) or from curl; the tool needs no network or connection. This is a way to check parsing coverage where the request can't be run: a webhook trigger has no request at all, a production account has no right to an extra write. Where a test run is possible, test_request shows the same in its responseAudit field.

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": {
      "appId": "<appId>",
      "versionId": "<versionId>",
      "resource": "<resource>",
      "id": "<id>",
      "sample": "<sample>"
    },
    "name": "check_response_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAction or trigger ID
appIdYesApp ID. Not needed only for resource: "apps"
sampleYesResponse body sample: an object or a JSON string. The whole response works, with wrapper and pagination; the tool finds the item itself via pathToArray
resourceYesBuilder resource the operation is performed on
requestIdNoCheck only this request's parsing. Without it, all
versionIdYesVersion ID. Not needed for resource: "apps" and "versions". Only a private version is writable; ensure_editable_version tells you which one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that no network or connection is required and that the sample must be sourced externally (partner docs or curl), but it does not state whether the check is purely read-only, whether results are persisted, or how the results are shaped.

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?

Three tight sentences, front-loaded with the core comparison and followed by scope and the alternative. The 'This is a way to check parsing coverage' phrasing is slightly roundabout but carries the usage constraint, so it earns its place.

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?

Given six parameters with enums and no output schema, the description covers what the tool reports, why it exists, its offline nature, and the sibling alternative. It could say more about how requestId filtering affects the result, but an agent has enough to call it correctly.

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 parameter meaning is largely handled structurally, but the description adds genuine semantics for the sample parameter by stating its provenance (documentation response example section or curl) rather than just its type. The requestId and versionId scoping nuances are left to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb and resource: comparing an entity's response parsing against a sample body, and names both output sets (unmapped sample fields, mapping keys absent from the sample). It is immediately distinguishable from test_request, which it explicitly contrasts.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition (request can't be run: webhook trigger has no request, production account has no right to an extra write) and names the alternative for the opposite case (test_request and its responseAudit field). Nothing is left to inference.

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