Skip to main content
Glama

Get a payment

get_payment
Read-only

Check a payment's status, coin, amounts, and transaction by payment ID; status paid indicates confirmed or finished.

Instructions

Status, coin, amounts and transaction of a payment by its id. Paid means status confirmed or finished.

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_id": "<payment_id>"
    },
    "name": "get_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / payment_id / maxLength
      Added value: +256
  2. First observedv1.0.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine domain semantics beyond that: it discloses the return fields and defines 'Paid' as status confirmed or finished, which the agent cannot get from annotations or schema. It omits behavior when the id is unknown, but that is a modest gap given the annotation coverage.

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?

Two short, front-loaded sentences with no filler; the returned fields come first and the status clarification follows. The telegraphic noun-phrase style ('Status, coin, amounts and transaction') is slightly clipped but does not impede comprehension.

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?

For a single-parameter read-only lookup with no output schema, the description covers what is retrieved and clarifies the ambiguous status vocabulary. What remains unstated — behavior on a missing or malformed id — is minor at this complexity level.

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 description coverage is 0% for the single payment_id parameter, so the description must carry the meaning. 'By its id' does confirm that payment_id is a payment identifier rather than, say, an order id, but adds no format, source, or example detail beyond what the schema's string constraint implies.

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?

The description names a specific resource (a payment) and the retrieval key ('by its id'), and enumerates the data returned: status, coin, amounts, transaction. It is distinguishable from list/order siblings by the singular 'a payment by its id', though the verb is implied by the title rather than stated.

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 explicit guidance on when to use this versus get_payments_by_order or list_active_payments, and no preconditions or failure conditions are stated. The only implicit signal is that a payment id must be known, which an agent could infer from the schema alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.