Skip to main content
Glama

Confirm order

o2c_confirm_order
Destructive

Accept the order into the books. Runs the credit check. This is the credit gate, and it is the only one. Exposure counts open AR plus the uninvoiced value of everything already confirmed — a limit that only looks at issued invoices lets a slow biller be robbed politely.

If the check fails, that is the answer. Do not confirm around it by splitting the order, raising the limit, or invoicing early. Report the shortfall and let a human decide; a refusal recorded in the log is worth more than an order. Effects: order.status -> confirmed; value counts against the credit limit.

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": "o2c_confirm_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order to confirm. An existing order id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true and idempotentHint=false; the description goes well beyond that by disclosing the credit exposure formula (open AR plus uninvoiced confirmed value), the state transition (order.status -> confirmed), and that the confirmed value consumes credit limit. It also prescribes failure behavior, telling the agent to report the shortfall rather than work around the gate — context annotations cannot supply.

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?

Purpose is front-loaded in the first sentence, and effects are cleanly summarized in a trailing 'Effects:' line. Some aphoristic phrasing ('a slow biller be robbed politely') is colorful but does carry policy meaning, so it mostly earns its place; the text is still longer than strictly necessary.

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 one-parameter mutation governed by a non-obvious credit rule, the description covers the gate semantics, failure handling, and resulting state change. The only real gap is that with no output schema, it doesn't indicate what a successful call returns (e.g., confirmation id or credit-check result), leaving the agent to discover the response shape empirically.

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?

With a single required parameter at 100% schema coverage, the schema already defines order_id as an existing order id. The description adds only the framing 'the order to confirm,' which adds little beyond the structured field, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource ('Accept the order into the books') and immediately names the mechanism ('Runs the credit check'), which separates it from siblings like o2c_amend_order, o2c_apply_credit, or o2c_invoice_shipped. It also claims exclusive scope ('This is the credit gate, and it is the only one'), so an agent can tell it apart without inspecting other schemas.

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?

It gives explicit when-not guidance: if the credit check fails, do not split the order, raise the limit, or invoice early — phrasing that implicitly routes to amend/credit/invoice siblings. It stops short of naming those sibling tools or stating prerequisites such as the order needing to exist in a pre-confirm state, so it is strong but not fully exhaustive.

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.