Skip to main content
Glama

ordercloud.payments.listForOrder

Retrieve all payments associated with a specific order, filtered by direction, to review transaction history and reconcile order billing.

Instructions

List all payments for a specific order

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": {
      "orderId": "<orderId>",
      "direction": "<direction>"
    },
    "name": "ordercloud.payments.listForOrder"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based)
orderIdYesThe order ID
pageSizeNoItems per page (max 100)
directionYesOrder direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'List' implies a safe read operation, but the description does not state permissions required, whether results are paginated by default, how sorting works, or what the response contains, leaving significant behavioral gaps for a data-returning tool.

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?

A single front-loaded sentence with no redundant wording. Every word contributes to identifying the operation and its scope.

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?

With four parameters including pagination and an Incoming/Outgoing enum, no annotations, and no output schema, the description is too thin. It does not explain result ordering, pagination behavior, or the shape of returned payments, so an agent must infer too much from the schema alone.

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 100%, so the schema already documents orderId, direction, page, and pageSize. The description only reinforces that an order identifier is needed; it adds no meaning beyond the schema about direction semantics, pagination defaults, or page-size limits.

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 gives a specific verb and resource ('List all payments') and scopes it to 'a specific order', which distinguishes it from generic payment listing or payment mutation tools such as ordercloud.payments.create or ordercloud.payments.get. It does not explicitly contrast with the ambiguous sibling ordercloud.payments.transactions.list, so it falls just short of a 5.

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?

Usage is implied by the 'for a specific order' phrasing: the agent can infer this is the tool for retrieving payments tied to one order. However, there is no explicit when-to-use guidance, no mention of when to prefer ordercloud.payments.transactions.list or ordercloud.payments.get, and no stated prerequisites.

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

Deploy Server

Other Tools