Skip to main content
Glama

Execute API call

execute
Destructive

Call an enabled endpoint found via search_apis; charges credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoEndpoint args; call describe_api for schema.
slugYesprovider/endpoint slug.
loop_idNoAgent loop ID when policy requires one.
attributionNoSpend attribution: taskId + feature (+ optional appVersion).
approval_tokenNoestimate_cost quote; requires its idempotency_key.
idempotency_keyNoReuse on retry; charges once.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesRaw provider response.
usd_chargedNoUSD charged (secret-key auth only).
credits_balanceNo
credits_chargedNo
idempotent_replayNoStored replay; no new charge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Stable exactly-once retry key."New value: +"Reuse on retry; charges once."
    • removedOutput schema / properties / credits_balance / description
      Removed value: -"Remaining credit balance."
    • removedOutput schema / properties / credits_charged / description
      Removed value: -"Credits debited for this call."
    • changedOutput schema / properties / data / description
      Previous value: -"Raw upstream provider response body."New value: +"Raw provider response."
    • changedOutput schema / properties / idempotent_replay / description
      Previous value: -"True when a stored identical call was replayed; no new charge was made."New value: +"Stored replay; no new charge."
  2. Changed1 schema field changed
    • changedInput schema / properties / args / description
      Previous value: -"Endpoint args; schema and example via search_apis or describe_api."New value: +"Endpoint args; call describe_api for schema."
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds the single most important behavioral fact not in annotations: this call charges credits, plus that only 'enabled' endpoints may be invoked. It stops short of explaining failure/refund or approval behavior, but that is a meaningful add against an annotated baseline.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; the core action leads and the cost warning follows. It is efficient, though for a credit-charging, destructive tool it sits close to under-specified rather than optimally sized.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and the schema carries all six parameters. However, for a destructive, fund-consuming, open-world tool with nested objects, the description leaves the surrounding workflow (estimate_cost quote, approval_token/idempotency_key interaction, retry consequences) to be inferred from other tools.

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%, with slug, args, loop_id, attribution, approval_token, and idempotency_key all documented in-schema, including the retry/idempotency and cost-quote semantics. The description adds no parameter-level meaning 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (call/execute) and resource (an endpoint), and pins the discovery path by naming the sibling search_apis. It is clearly distinguishable from discovery siblings, though it does not differentiate itself from other execution-adjacent siblings such as describe_api, estimate_cost, or get_call_result.

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

Usage Guidelines3/5

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

The clause 'found via search_apis' implies the prerequisite discovery step and 'enabled' implies a gating condition, so usage is partially implied. There is no explicit routing advice (e.g., when to use estimate_cost first or how to handle the approval_token flow), so alternatives are not addressed.

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.