Skip to main content
Glama

Execute API template

execute_api_template
Destructive

Execute an api template live against the given variables and return the full trace: the rendered request (method, url, headers, body) and the response (status, headers, body, duration). Use this to debug a template before wiring it into a workflow. This runs the real outbound request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNothe template slug to execute (provide this or template_id)
versionNospecific version to execute; omit for the published version
variablesNovalues bound to the template's variables for this execution
template_idNothe template id to execute (provide this or slug)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
duration_msYes
request_urlYes
status_codeYes
request_bodyYes
response_bodyYes
request_methodYes
request_headersYes
response_headersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds genuine value by warning 'This runs the real outbound request,' confirming side effects are external and irreversible, plus what the trace contains. It omits auth/credential requirements and rate limits, so it does not reach 5.

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 sentences, front-loaded with the action and return payload, then the use case and the live-execution caveat. No filler and nothing redundant with the schema.

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 destructive, open-world execution tool with a full output schema, the description supplies what the structured fields cannot: that it fires a real outbound request and returns a full request/response trace. An agent has everything needed to decide and invoke correctly.

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 description coverage is 100% and each parameter (slug, version, variables, template_id) is documented in the schema, so the schema carries the load. The description only adds the loose notion of 'given variables' and does not explain slug-vs-template_id precedence or version resolution beyond what the schema states. Baseline 3.

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 specific verb ('execute ... live') and resource (api template), and immediately defines the output ('the full trace: the rendered request ... and the response'). This is clearly separable from get_api_template, create_api_template, and update_api_template without opening any schema.

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?

'Use this to debug a template before wiring it into a workflow' gives a concrete use context. It stops short of naming an alternative or stating when NOT to use it (e.g., against production templates), so it is clear context but not a full when/when-not rule.

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.

Resources