Skip to main content
Glama

Close short

o2c_close_short
Destructive

Cancel the open remainder of a partially fulfilled order. This is how backorders die honestly: the customer is no longer owed the difference, committed credit exposure is released, and the reason is kept. Pass line ids to close only some lines; omit to close every open remainder. The fulfilled part stays exactly as it is. Effects: open quantities reduced to shipped; committed exposure released; order may derive closed.

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>",
      "reason": "<reason>"
    },
    "name": "o2c_close_short"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoOnly these lines. Omit to close all open remainders.
reasonYesWhy the remainder is being abandoned.
order_idYesThe order. An existing order id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds genuine value on top: open quantities drop to shipped, committed credit exposure is released, the reason is persisted, and the fulfilled portion is untouched. It stops short of saying whether the close is reversible or what permissions are required, but the impact surface is well disclosed.

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?

The core action and its scoping are front-loaded, and the effects sentence earns its place. The "backorders die honestly" flourish is colorful rather than load-bearing, a small amount of editorializing in an otherwise tight definition.

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 destructive mutation with no output schema, the description covers the important ground: what changes, what is preserved, and what is recorded. It leaves the caller without any sense of the response shape or failure conditions, which is the only real gap.

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 both required parameters and the lines array are already documented. The description's "pass line ids to close only some lines; omit to close all" essentially restates the schema's own wording, adding only the minor detail that the reason is retained. This is baseline-correct but not compensating beyond the schema.

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 opening sentence pairs a specific verb ("Cancel") with a precisely scoped resource ("the open remainder of a partially fulfilled order"), which is far more informative than a name echo. It does not explicitly contrast itself with near siblings such as o2c_cancel_order or p2p_close_po_short, so the agent must infer the distinction, but the purpose itself is unambiguous.

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

Usage Guidelines4/5

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

"Pass line ids to close only some lines; omit to close every open remainder" gives explicit branching guidance on the primary behavioral choice. It offers no exclusions against alternatives (when to cancel the whole order instead, or how this relates to o2c_backorders), which keeps it short of a 5.

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.