Skip to main content
Glama

test_request

Run a configured builder request with a real credential to inspect the exact URL, headers, body, mapped response, unmapped fields, pagination, errors, and async behavior before publishing.

Instructions

Run a configured builder request with a real credential and return what was sent and what came back: the final URL, request headers and body, the raw response body and the parsed data after mapping and scripts. Plus responseAudit: which fields of the live response remained unmapped, showing whether the whole entity is parsed; errorHandling with a ready error handler if the version doesn't have one yet; and pagination, for a list request: the run doesn't stop at the first page but goes through all of them, like a bundle, and shows the last one; wizard: which wizard step was sent under which number and which {{credentialWizard.…}} were left without a value; parent, for a child-list request: the parent substitution is empty in a test run, and how to check otherwise; rowSections, for a request that builds an array from a row section: how to pass its fields and why there is only one row in a test run; systemVars, for a request with {{systemVar.…}}: what was substituted, from where, and what was sent empty; async, for a request with an async handler and for a polling request (asyncRequests): whether the step would wait on this response, with what data, and whether the polling response means "done" or "not done yet"; migration, for a data migration request: how a test run differs from the export. The main debugging tool: run after every request change. The request goes to the partner's real API on behalf of a real connection and can create or delete data there, so it requires the user's confirmation.

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>",
      "requestId": "<requestId>",
      "credentialId": "<credentialId>",
      "confirmed": "<confirmed>"
    },
    "name": "test_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoEntity field values: {"<field code>": "<value>"}. Row section fields are passed flat too, by their own codes, whatever they are, not as an array under the section code: {"<section field code>": "…"}, not {"<section code>": [{…}]}. A section of exactly one row is built from them
appIdYesApp ID. Not needed only for resource: "apps"
confirmedYesThe user confirmed the test run in chat
requestIdYesRequest ID
versionIdYesVersion ID. Not needed for resource: "apps" and "versions". Only a private version is writable; ensure_editable_version tells you which one
credentialIdYesID of the credential to run the request on behalf of
credentialWizardDataNoEntity wizard step values: {"<step code>": "<key>"} or {"<step number from 1>": "<key>"}. The backend reads them only by number (step 0 is the connection, set by credentialId); the tool maps codes itself. The key is what goes into {{credentialWizard.<code>}}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so well: it discloses that the call hits the partner's real API on behalf of a real connection, that it can create or delete data there, and that user confirmation is required. It also discloses non-obvious runtime behavior — pagination traverses every page rather than stopping at the first, and parent substitution is empty in a test run.

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

Conciseness3/5

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

The purpose is correctly front-loaded, but the body is one long semicolon-chained paragraph enumerating a dozen optional result sections (responseAudit, errorHandling, pagination, wizard, parent, rowSections, systemVars, async, migration) with no breaks or ordering logic. Much of that content is load-bearing only when the request happens to use that feature, so it is denser than it needs to be for the average call.

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 7-parameter, nested-object tool with no output schema, the description does the heavy lifting on return values and side effects, including what each diagnostic section reports. It stops short of stating error behavior or how failures surface, and never clarifies the relationship to test_credential, which is the main remaining ambiguity.

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 already 100%, so the baseline is 3, but the description adds real meaning on top: row-section fields are passed flat by their own codes rather than as an array under the section code, and wizard values are read by step number while the tool maps codes itself. Those are non-obvious invocation rules not derivable from the schema alone.

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 opening clause gives a concrete verb and resource: run a configured builder request with a real credential and return both the outbound request and the inbound response. It is far more specific than a name restatement, but it never names or contrasts with the obvious sibling test_credential, so an agent must infer the boundary between the two.

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

Usage Guidelines4/5

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

"The main debugging tool: run after every request change" is explicit timing guidance, and the closing sentence states the prerequisite of user confirmation. What is missing is any when-not guidance or named alternative (e.g. test_credential) for cases where only the connection itself needs verifying.

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