Skip to main content
Glama

check_invoice

Refresh an invoice against the public permanode API and return confirmation status.

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_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and 'Refresh' leaves the critical question unanswered: does this mutate the stored invoice record or only perform a read against the external API, and is it idempotent? It also omits what happens on network failure, timeout, or an unknown invoice_id, and whether the permanode API imposes rate limits or requires authentication.

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?

One sentence, front-loaded with the action and containing no filler. It is efficient, though the brevity is partly the cause of the missing semantics rather than a sign of completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 no annotations, so the description must explain what 'confirmation status' actually returns (a boolean, an enum of states, raw API payload) and it does not. For a tool that reaches an external network service, the description is too thin to call correctly without experimentation.

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

Parameters2/5

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

Schema description coverage is 0%, so the single required parameter invoice_id is undocumented in both the schema and the description. The description does not say whether the id is a numeric identifier, a hash/permanode address, or an internal reference, which materially affects whether a caller can construct a valid invocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a verb ('Refresh') and a resource ('invoice') plus the backend it talks to ('public permanode API'), so the general action is inferable. However, 'refresh ... and return confirmation status' is ambiguous about whether this re-reads remote state, re-submits the invoice, or verifies payment, and it draws no line against siblings such as verify_receipt, get_payment_info, or list_invoices.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus list_invoices, verify_receipt, or get_payment_info, and no prerequisites such as whether the invoice must already exist or be in a particular state. The agent must guess the routing decision entirely from the name.

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