Skip to main content
Glama

Did I get paid? Check an invoice

check_payment
Read-only

Check whether an invoice (from create_payment_link) has been paid. Returns unpaid / processing / paid, every payment attempt with its status and blockchain transaction, and how to get a signed receipt. Use it to deliver your service only after you've been paid.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "check_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_idYesThe invoice_id returned by create_payment_link (starts with 'inv_').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds useful behavioral detail: it returns unpaid/processing/paid statuses and every payment attempt with its blockchain transaction. It stops short of explaining polling expectations or eventual-consistency behavior.

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 definition is two tight sentences, front-loads the core check operation, and then lists return behavior. Every sentence contributes either invocation guidance or result semantics.

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?

With one required parameter and no output schema, the description does a good job naming the returned statuses and payment attempt details. It could be slightly more complete by clarifying whether 'processing' requires polling or when to use get_receipt instead.

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?

The only parameter, invoice_id, is fully documented in the schema, including its 'inv_' prefix. The description reinforces its origin from create_payment_link but adds little beyond the schema baseline.

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 states a specific verb and resource: checking whether an invoice from create_payment_link has been paid. It also names the possible status outcomes, so an agent can clearly distinguish this from creation and receipt-retrieval siblings.

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?

It gives clear usage context: use this to verify payment before delivering a service. It does not explicitly compare against alternatives such as get_receipt, but the core when-to-use guidance is present.

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.