Skip to main content
Glama

Check a parked payment

approval_status
Read-onlyIdempotent

After ESCALATION_REQUIRED: whether the person approved the parked payment. Pass wait=50 and the call holds until the person decides (or 50 seconds pass), so you learn of the approval yourself instead of asking them to tell you. 'approved' → repeat the same tool call with the same idempotency_key to execute it; 'denied' → tell the person and stop; 'pending' → call again with wait=50, do not repeat the purchase.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ref": "<ref>"
    },
    "name": "approval_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesThe escalation ref from the refusal (esc_…).
waitNoSeconds to hold the call for the person's decision (0 = answer now, max 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / wait
      Added value: +{
      +  "description": "Seconds to hold the call for the person's decision (0 = answer now, max 50).",
      +  "maximum": 50,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, but the description adds the non-obvious blocking behavior — wait=50 holds the call up to 50 seconds — plus the idempotency_key replay contract needed to convert an approval into an executed payment. The only thing left unsaid is what a timeout or malformed ref produces.

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?

Front-loads the trigger condition, then the outcome branches as compact arrow-delimited clauses. No filler sentences; every clause carries a decision rule or a behavioral fact an agent needs.

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?

There is no output schema, and the description compensates fully by enumerating the status values and the correct action for each. Combined with the blocking-wait explanation and the idempotency replay rule, nothing required to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes beyond the schema's terse 'seconds to hold' by explaining what holding accomplishes (learning the decision without asking the person) and by tying wait=50 to the pending retry loop. It gives operational meaning to the wait value that the schema alone does not.

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 check (whether the person approved the parked payment) against a specific resource, and anchors it to the ESCALATION_REQUIRED trigger that precedes it. An agent can immediately tell this is the status-polling step of the escalation flow rather than a payment-executing tool.

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

Usage Guidelines5/5

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

Explicit routing for all three outcomes: 'approved' → repeat the call with the same idempotency_key to execute; 'denied' → tell the person and stop; 'pending' → call again with wait=50 and do not repeat the purchase. It also explains why to poll rather than ask the person, which is a genuine when-to-use rationale.

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