Skip to main content
Glama

Confita

Accept, decline or cancel an order

decide_order
DestructiveIdempotent

For shop owners: accept, decline or cancel an order, or accept or reject a payment receipt the customer sent. One decision a call, at the revision last read. It never edits an order, marks it ready or complete, or records cash: update_order does. Returns done when nothing has to wait (accepting an order paid outside Confita, declining). Charging a card, cancelling and deciding a receipt return needs_confirmation, and nothing happens until she taps Confirm.

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": "<order>",
      "revision": "<revision>",
      "decision": "<decision>",
      "request_id": "<request_id>"
    },
    "name": "decide_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesThe order by its number ("1042" or "#1042") or id (ord_...).
amountNoaccept_receipt: how much the receipt shows was paid, required. For example {"amount": "24.00", "currency": "USD"} for a receipt of $24.
methodNoaccept_receipt: how it was paid, when not the method the customer chose.
reasonNodecline, cancel, reject_receipt: a short reason the customer may be told. Required for reject_receipt.
receiptNoaccept_receipt, reject_receipt: get_order `receipt.id`, required.
decisionYesaccept or decline a new order (accept also takes on an expired order whose payment came late), cancel a confirmed one (card payments are refunded), or decide the receipt get_order shows.
revisionYesThe order's `revision` as last read; if the order changed since, nothing happens.
request_idYesUnique per call; the same id again returns the first result.
payment_kindNoaccept_receipt: left out, a part payment before anything was paid is a deposit, a later one the balance.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
orderNo
outcomeNo
timezoneNo
untrustedNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructive=true, idempotent=true and readOnly=false, but the description adds real behavioral context: the two-phase flow ('Charging a card, cancelling and deciding a receipt return needs_confirmation, and nothing happens until she taps Confirm'), the refund side effect on card cancellations, and the stale-revision no-op. What it does not cover — permission levels beyond 'shop owners' or any rate limit — is minor for this operation.

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?

Front-loads audience and action, then boundaries, then the confirmation outcome — a sensible ordering with no filler. The telegraphic compression ('Returns done when nothing has to wait') costs a little readability but nothing is wasted.

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 9-parameter tool with nested objects, enums and an output schema, the description covers the decision semantics, staleness guard, confirmation branching and the update_order boundary. Idempotency (request_id) and the return shape are left to schema/output schema, which is acceptable given they are documented there.

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 explains order, amount, method, reason, receipt, decision, revision and request_id in detail. The description adds only a light constraint ('one decision a call, at the revision last read') beyond that, so baseline 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?

States a specific verb set and resource ('accept, decline or cancel an order, or accept or reject a payment receipt') and scopes it to shop owners. It also names the sibling boundary with update_order, so an agent can separate the two without opening either schema.

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

Usage Guidelines5/5

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

Explicitly says what this tool does NOT do ('never edits an order, marks it ready or complete, or records cash') and points to update_order for those cases, and it adds a cadence rule ('One `decision` a call, at the `revision` last read'). The conditions selecting each decision path are described in the schema enum, which the description cross-references coherently.

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.

Resources