Skip to main content
Glama

Execute API template

execute_api_template

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.5/5.0
Behavior4/5

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

The description explicitly states that this runs the real outbound request, which is a key behavioral detail given readOnlyHint=false. It also describes the return format (full trace). It does not mention potential side effects or rate limits, but the core side effect (executing a real request) is clearly disclosed.

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 concise (two sentences) and well-structured. It first states the action and output, then provides the use case and an important caveat (real request). No redundant or vague language.

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?

The description covers the essential aspects: what the tool does, its primary use case, and a key behavioral note (live execution). Since an output schema is present, it does not need to enumerate response fields. It could mention how to handle cases where both slug and template_id are provided, but that is a minor omission given the schema already explains the alternatives.

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?

Each parameter has a clear description in the schema, including the alternative relationship between 'slug' and 'template_id' ('provide this or template_id') and the optional nature of 'version'. The 'variables' parameter is explained as values bound to template variables. Schema coverage is 100%, so no ambiguity remains.

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?

The description clearly states the tool's function: execute an API template live and return the full trace of request and response. It also identifies the specific use case (debugging before wiring into a workflow) and differentiates from other tools by focusing on API templates and real execution.

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 description provides a clear 'when to use' scenario ('debug a template before wiring it into a workflow') and implies when not to use (after wiring, use a workflow). It could be more explicit about alternatives like preview_dynamic_endpoint, but the guidance is adequate for selecting this tool.

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