Skip to main content
Glama

run_api_endpoint

Destructive

Send an endpoint against an environment and return the real response (status, headers, body up to 20 KB). A local environment goes through the user's tunnel to their localhost (the CLI must be running); staging/prod are sent from Pipehero's cloud (Pro/Team) to public addresses only. Sending to a prod environment with a write method needs confirm_write_to_prod: true, which you should only pass after the user agrees. Use it to check that the code you wrote behaves as documented.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRoute path as written in the code, e.g. /v1/charges/:id or /v1/charges/{id}.
methodNoHTTP method of the route, e.g. POST. Use with path instead of endpoint_id.
variablesNoValues for {{variables}} the environment doesn't define, e.g. {"id": "ch_123"}.
endpoint_idNoId of the endpoint. Alternative to method + path.
environmentYesEnvironment name or id, e.g. local.
collection_idYesId from list_api_collections.
confirm_write_to_prodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

The description goes well beyond the annotations: it discloses the 20 KB response body limit, the local tunnel/CLI dependency, the cloud routing for staging/prod, and the requirement to confirm prod writes only after user agreement. These details align with destructiveHint=true and readOnlyHint=false but add valuable context.

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?

The description is compact: four sentences each carrying unique value, front-loaded with the core purpose, then environment behavior, safety confirmation, and use case. There is no filler or repeated schema content.

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

Completeness5/5

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

For a tool with 7 parameters, no output schema, and meaningful side effects, the description covers the operation, environment routing, response limits, approval requirements, and intended use case. The few remaining details (e.g., endpoint_id vs method+path alternatives) are already in the input schema.

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

Parameters5/5

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

Schema coverage is high (86%), but the description adds essential meaning for the undocumented confirm_write_to_prod parameter, explaining it must only be set after user agreement for prod writes. It also clarifies environment semantics (local vs staging/prod) beyond the schema's simple examples.

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 clearly states the tool's function: sending an endpoint against an environment and returning the real response (status, headers, body up to 20 KB). It also clarifies the use case ('check that the code you wrote behaves as documented'). However, it does not explicitly name or contrast sibling tools, so an agent must infer the distinction from the sibling names.

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?

It gives a concrete use case ('Use it to check that the code you wrote behaves as documented') and provides environment-specific constraints (local requires CLI, staging/prod go through cloud, prod write needs confirmation). It does not mention when to avoid this tool or point to alternatives like replay_request or send_test_webhook, so exclusions are missing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.