Skip to main content
Glama

Intents Checkout

Payment status

payment_status
Read-onlyIdempotent

Check whether an invoice is paid, with amounts received and what to do next. invoice.paid webhooks fire only on paid; processing means a payment is on its way, so do not fulfil yet.

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "payment_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYes

Output Schema

NameRequiredDescriptionDefault
modeYes
nextYes
paidYes
amountYes
paidAtYes
statusYes
currencyYes
invoiceIdYes
latestAttemptYes
amountExpectedNo
amountReceivedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond that: the state vocabulary (paid vs processing), the webhook-firing rule, and the operational consequence of not fulfilling during processing. It does not cover rate limits or freshness of the status.

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?

Two short sentences, front-loaded with the primary purpose and followed by the status semantics that change how the agent must behave. No filler or repetition of the title.

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, so return shape need not be spelled out, and the annotations cover safety. The main missing piece is how the agent obtains a valid invoiceId and how this tool relates to the invoice-listing/fetching siblings.

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?

There is one parameter and schema description coverage is 0%, so the description carries the burden — it frames the call around an invoice, which makes invoiceId's meaning self-evident by implication. It says nothing about the ID's format or where to obtain it (from create_invoice or list_invoices), which is the gap this coverage would normally require closing.

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 and resource (check whether an invoice is paid) and adds what comes back (amounts received). It does not name a sibling such as get_invoice or list_invoices to contrast against, so sibling differentiation is only implicit.

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?

Gives real conditional guidance on the status values — 'processing' means a payment is on its way, so do not fulfil yet — which tells the agent how to act on the result. It gives no guidance on when to reach for this tool versus get_invoice or list_invoices, so tool-selection guidance is absent.

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.