Skip to main content
Glama

Find the payments of an order

get_payments_by_order
Read-only

Retrieve every payment created for a specific order reference, using the order_id from checkout creation to check all related crypto payment records.

Instructions

Every payment created for one of your order references (the order_id of create_checkout).

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": {
      "order_id": "<order_id>"
    },
    "name": "get_payments_by_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_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 / order_id / maxLength
      Added value: +100
  2. First observedv1.0.1

TDQS

C2.6/5.0
Behavior2/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 externally. The description adds nothing beyond that: it does not say whether all payments are returned or only successful ones, whether results are paginated, or what happens for an order with zero payments.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short line with no wasted words, but the brevity crosses into under-specification: it is a sentence fragment that never states the operation being performed, so the reader must infer the verb.

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 one-parameter read tool with annotations covering safety and no output schema, the core need is knowing what is returned; the description never says it returns a collection of payment records, nor how empty results behave. It is minimally adequate but leaves the main behavioral question unanswered.

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%, so the description must carry the parameter burden, and it does add real meaning by identifying order_id as 'the order_id of create_checkout'. However, it omits expected format, length constraints, and whether the order reference must still be active.

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?

The fragment 'Every payment created for one of your order references' identifies the resource (payments belonging to an order) but is a noun phrase with no verb, so the action (fetch/list) is only implied. The parenthetical tying order_id to create_checkout helps distinguish it from the singular 'get_payment', but the boundary between this and 'list_active_payments' is not 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 when-to-use or when-not-to-use guidance, and no mention of alternatives such as get_payment or list_active_payments. The only usable hint is that order_id originates from create_checkout, which is useful provenance but not usage guidance.

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