Skip to main content
Glama

Confita

Update an order

update_order
DestructiveIdempotent

For shop owners: change an order already in the book: edit its lines, time or delivery, mark it ready (or undo that) or complete, record money paid outside Confita, or set her private note. One action a call, at the revision last read. It never accepts, declines or cancels an order or decides a receipt: decide_order does. Nothing waits for her tap, and the customer is not emailed.

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>",
      "action": "<action>",
      "request_id": "<request_id>"
    },
    "name": "update_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueNoedit: the new pickup or delivery day or time on the shop's clock. For example "2026-12-04T15:00".
noteNoset_note: the seller's note; an empty string clears it.
itemsNoedit: the order's whole new list of lines, where one left out is removed and `keep` holds a line by its id; without `items` the lines stay.
orderYesThe order by its number ("1042" or "#1042") or id (ord_...).
actionYesThe one change to make; each field below names the action it belongs to.
amountNomark_paid: how much was paid, required. For example {"amount": "33.00", "currency": "USD"}; the order's `due_amount` is what is owed.
methodNomark_paid: how it was paid, required.
addressNoedit: where a delivery goes.
dry_runNoedit: price and check the edit without saving it.
revisionYesThe order's `revision` as last read; if the order changed since, nothing happens.
adjustmentNoThe seller's own discount and deposit on this order; a field left out keeps its value.
fulfilmentNoedit: switch between pickup and delivery.
request_idYesUnique per call; the same id again returns the first result.
payment_kindNomark_paid: left out, a part payment before anything was paid is a deposit, a later one the balance.
override_capacityNoedit: true when the seller already agreed, past a full day or slot.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
orderNo
choicesNo
outcomeNo
previewNo
timezoneNo
untrustedNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true and non-read-only, so the safety profile is covered; the description adds genuinely non-obvious behavior: no confirmation step ("Nothing waits for her tap") and no customer notification ("the customer is not emailed"). It stops short of warning that omitted lines are removed (that detail lives only in the schema), which is the one behavior a destructive tool should surface in prose.

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-loaded with the capability list, then the exclusions, then the side-effect facts — a sensible ordering with almost no filler. A few human-flavored phrases ("For shop owners", "her private note", "her tap") cost a little precision for an agent reader but do not obscure meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter destructive mutation tool with nested objects, the description covers scope, per-call action limit, concurrency expectation, sibling boundary, and user-visible side effects; return values are handled by the output schema and field semantics by the fully described schema. Nothing an agent needs in order to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all 15 fields with per-action tagging, making 3 the baseline. The description still adds real meaning: it tells the agent that exactly one action's fields may be used per call, and that the call must be pinned to the `revision` last read, both of which are invocation constraints rather than field descriptions.

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 and resource ("change an order already in the book") and then enumerates the concrete mutations: edit lines, time, delivery, mark ready/undo, complete, record money paid, set note. It explicitly names the boundary against the sibling decide_order, so an agent can route correctly 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?

Gives an explicit when-not: "It never accepts, declines or cancels an order or decides a receipt: decide_order does." It also states the calling discipline ("One `action` a call, at the `revision` last read"), which tells the agent how to invoke it, not just when.

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