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

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

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.2/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 non-idempotent, and the description reinforces this by warning 'This runs the real outbound request' and describing the full trace returned. It does not cover failure modes, auth requirements, or rate limits, so it adds meaningful but not exhaustive 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?

Three tight sentences: purpose and return value first, debugging guidance second, the live-request warning last. No filler.

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?

Output schema exists, so the description need not detail return values, and it still summarizes them usefully; annotations cover the safety profile. Minor gaps remain around error behavior or side effects on the target system, but nothing essential for correct invocation is missing.

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 of the four parameters (slug, template_id, version, variables) is documented in the schema, including the slug-or-id alternative and version defaulting. The description only alludes to 'given variables' and adds nothing beyond the schema, so baseline 3 applies.

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') and resource ('an api template') plus the scope of what is returned (rendered request and response). It is clearly distinguishable from siblings like get_api_template, create_api_template_version, or validate_workflow.

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?

Gives an explicit use case: 'Use this to debug a template before wiring it into a workflow.' It does not name a concrete alternative (e.g., preview_dynamic_endpoint or get_api_template) or state when not to use it, which keeps it below a 5.

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