Skip to main content
Glama

get_invoice_status

Read-onlyIdempotent

Check if a created invoice has been paid. Use the payment_hash from create_invoice.

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": {
      "payment_hash": "<payment_hash>"
    },
    "name": "get_invoice_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_hashYesPayment hash of the invoice to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description only adds that the target is a previously created invoice. It does not disclose what the check returns for unpaid, expired, or partially paid invoices, which matters since there is no output schema.

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, purpose front-loaded, with the prerequisite immediately after. No filler or restated title.

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?

For a single-parameter read tool this is close to sufficient, but with no output schema the description should clarify the shape of the answer (paid/unpaid/expired or pending). As written, an agent knows why to call it but not exactly what it learns.

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 is 3, and the description goes beyond the schema by stating the hash must come from create_invoice. That provenance link tells an agent where to obtain the value, not just its type.

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-plus-resource: check whether a created invoice has been paid. This clearly separates it from create_invoice and pay_invoice in the sibling set. It stops short of naming alternatives or enumerating the other statuses it might return.

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 line 'Use the payment_hash from create_invoice' establishes the prerequisite and upstream tool, which is genuine usage guidance. There is no guidance on when not to call it (e.g., after pay_invoice, or for expired invoices) or how it relates to get_transactions.

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.