Skip to main content
Glama

ordercloud.payments.create

Create a payment for an order by specifying the order ID, payment direction, and payment details such as amount and type.

Instructions

Create a new payment for an 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>",
      "payment": "<payment>"
    },
    "name": "ordercloud.payments.create"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYesThe order ID
paymentYesPayment object to create
directionYesOrder direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It says nothing about permissions required, whether the call is idempotent given the caller-supplied payment ID, whether it mutates order totals or triggers transactions, or what happens on duplicate IDs — all material for a write operation with a nested payment object.

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?

A single front-loaded sentence with zero filler, which is structurally clean. The brevity is the tool's weakness rather than its strength, but as a conciseness measure the text is efficient and unambiguous.

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?

This is a mutation tool with a nested object parameter, no annotations, and no output schema to explain the response. The description should therefore cover side effects, required state, and error/duplicate handling, and it covers none of them — the agent has only the schema to work from.

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%, with every field including the nested payment properties documented inline. The description adds only the loose implication that orderId refers to the order being paid; it contributes no format, constraint, or interaction detail beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource: 'Create a new payment for an order'. That distinguishes it from the read-side siblings (ordercloud.payments.get, listForOrder) and from patch. It does not, however, explicitly differentiate itself from the other create tools or state scope, so it stays below 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 Guidelines2/5

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

There is no guidance on when to call this versus ordercloud.payments.patch or the transactions sub-resource, no prerequisites such as an existing order in a payable state, and no exclusions. The only implied usage is the generic 'create a payment', which the agent must infer from the name alone.

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