Skip to main content
Glama

Confita

Log orders

log_order
Idempotent

For shop owners: record orders the seller took outside Confita (a DM, a call, a market), up to 10 a call. Use it for orders she already agreed to, not to change one already in the book (update_order). Listings, options and customers are matched by name; a custom line is a one-off item with its own price. Each order comes back logged, priced (dry_run: nothing saved) or failed with a try; notice holds what the seller should hear. A likely duplicate is needs_choice and logs nothing. The customer is not messaged.

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": {
      "orders": "<orders>",
      "request_id": "<request_id>"
    },
    "name": "log_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
ordersYesOne entry per customer order, up to 10.
dry_runNoTrue to price and check the orders without saving anything.
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
choicesNo
outcomeNo
resultsNo
preparedNo
timezoneNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / orders / items / properties / customer / description
      Previous value: -"By name or id: a name that matches one existing customer is them, and similar names return needs_choice."New value: +"By name or id; similar names return needs_choice."
    • changedInput schema / properties / orders / items / properties / override_capacity / description
      Previous value: -"True when the seller already said yes: logs the order even past a full day or time slot."New value: +"True when she already said yes past a full day or time slot."
    • changedInput schema / properties / orders / items / properties / payment / description
      Previous value: -"Money the customer already paid outside Confita."New value: +"Money paid outside Confita, as the seller says or her pasted messages say: a customer's \"sent you $42 on Zelle\" is paid by zelle. Her own record; Confita checks no account."
    • changedInput schema / properties / orders / items / properties / source_text / description
      Previous value: -"The customer's own words the order came from (the DM, the transcript), kept on the order for the seller to check."New value: +"The customer's own words (the DM, the transcript), kept on the order."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (non-read-only, non-destructive, idempotent), and the description adds real behavior beyond them: dry_run saves nothing, needs_choice logs nothing, the customer is not messaged, name-based matching for listings/options/customers, and per-order logged/priced/failed outcomes with a `try`. That is meaningful context an agent cannot derive from the annotations alone.

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?

Five dense sentences with the scope and the exclusion front-loaded, and nothing obviously redundant. It leans on internal vocabulary (`try`, `notice`, needs_choice) that is compact but assumes familiarity, slightly reducing immediate clarity.

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 batch mutation tool with 3 top-level parameters and deep nested items, the description covers the invocation constraints, the dry-run preview path, duplicate handling, and the reply shape (logged/priced/failed with `try` and `notice`). An output schema exists, and the description does not waste space duplicating full return values, yet still signals the outcome vocabulary.

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 carries parameter meaning and 3 is the baseline. The description only adds light framing ('a `custom` line is a one-off item with its own price', name-based matching, the 10-order cap) rather than explaining parameters the schema leaves opaque.

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 specific verb and resource ('record orders the seller took outside Confita') plus concrete examples of the channel (DM, call, market), and names the sibling it is not (update_order). An agent can distinguish this from place_order or update_order without inspecting the 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?

It states the when ('orders she already agreed to'), the when-not with a named alternative ('not to change one already in the book (update_order)'), and the batching limit ('up to 10 a call'). The duplicate path is also called out as returning needs_choice and logging nothing.

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