Skip to main content
Glama

Get payment status

get_payment_status
Read-onlyIdempotent

Reports the payment status and the next step. While waiting for approval it also returns approval_url: give it to the user again whenever they ask how or where to approve. call it again and again with wait_seconds 50: each call waits until the user decides, so do not end your turn or ask the user to check. When next_step is call_execute_payment, call execute_payment at once. After execute_payment, while payment_status is executing, keep calling it with wait_seconds 50: each call waits until the transfer succeeds or fails. Never tell the user a payment is stuck while it is executing.

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": {
      "proposal_id": "<proposal_id>"
    },
    "name": "get_payment_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
proposal_idYes
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault
checkoutNo
next_stepYes
approval_urlNo
instructionsNo
failure_reasonYes
payment_statusYes
proposal_statusYes
receipt_availableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing that each call long-polls and blocks until the user decides or the transfer settles (up to 50s), and warns against telling the user a payment is stuck while executing. That is the exact operational context an agent needs to avoid premature turn-ending.

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?

Front-loaded with purpose, then ordered operational steps that each earn their place. The 'call it again and again with wait_seconds 50' instruction is repeated near-verbatim in two places, which is mild redundancy worth trimming.

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?

An output schema exists, yet the description still adds value by naming next_step and approval_url and explaining the handoff states, so an agent can act on the response. The remaining gap is the unexplained origin of proposal_id, which matters for actually invoking the tool.

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 coverage is 0%, so the description must carry the burden; it fully explains wait_seconds (its 0-50 range purpose and long-poll semantics) but never says what proposal_id identifies or where to obtain it. Partial compensation only, since one of the two parameters is undocumented.

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 concrete verb+resource: 'Reports the payment status and the next step,' which is precise and distinguishable from read-only siblings like get_payment_methods or get_deposit_details. It never explicitly contrasts with a sibling, so it stops short of a 5.

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?

Gives explicit when/when-not behavior: poll repeatedly with wait_seconds 50, don't end the turn or ask the user to check, hand off to execute_payment the moment next_step says so, and keep polling while payment_status is executing. It also covers the user-facing case of re-supplying approval_url, leaving almost nothing to inference.

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