Skip to main content
Glama

Confita

Start or change an order

start_order
Idempotent

For customers: build a priced draft order at one shop, or price a draft again with changes. A draft is private and reserves nothing: it reaches the seller only through place_order. Send the whole list of items each time; order names the draft to change. It checks stock, the day and the time as the storefront does, and returns the draft with its total. A name that matches several things, or a day with several times, is needs_choice.

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": {
      "shop": "<shop>",
      "items": "<items>",
      "request_id": "<request_id>"
    },
    "name": "start_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueNoWhen it is picked up or delivered, on the shop's clock: a time get_product lists, or a day. For example "2026-12-05T10:00" or "2026-12-05"; the reply echoes the weekday.
dropNoFor products sold in drops: the drop by name or id, when more than one is open.
nameNoThe buyer's name for the seller, required when their Confita account has none.
noteNoA note for the seller from the buyer.
shopYesThe shop by slug, id (shp_...) or name.
itemsYesEverything in the order: the whole list each time.
orderNoA draft's id (ord_...) to change instead of starting a new one.
phoneNoA phone number for the seller, kept only when `name` is sent too.
couponNoA coupon code the buyer has.
answersNoAnswers to get_shop `questions`.
getting_itNoLeft out, pickup.
request_idYesUnique per call; the same id again returns the first result.
pickup_placeNoThe pickup place by name or id, when the shop has several and the time does not set it.
delivery_zoneNoThe delivery zone by name or id, when the shop has several; the street address is never sent here.

Output Schema

NameRequiredDescriptionDefault
idNo
dueNo
nextNo
sentNo
shopNo
errorNo
itemsNo
quoteNo
totalNo
numberNo
pickupNo
statusNo
windowNo
choicesNo
depositNo
missingNo
outcomeNo
discountNo
orderingNo
subtotalNo
timezoneNo
untrustedNo
getting_itNo
confirmationNo
delivery_feeNo
payment_statusNo
seller_discountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, idempotent behavior, but the description adds substantive context: the draft is private, reserves no stock, and validates stock/day/time the way the storefront does. It stops short of clarifying ownership or permission requirements when changing an existing draft via `order`, which is the one remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the audience and the core action, then the draft's privacy model, then the update rule, then the returned ambiguity state. No sentence repeats the schema or the annotations, and each one carries a decision-relevant fact.

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 14-parameter tool with an output schema and full schema descriptions, the description covers the three things structured fields cannot: the draft's non-binding nature, the full-list update convention, and the needs_choice disambiguation. Nothing an agent needs before calling 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?

With 100% schema coverage the baseline is 3, and the description adds real meaning on top: "Send the whole list of items each time" establishes full-replacement semantics for `items` (not additive), and "`order` names the draft to change" clarifies that `order` switches the call from create to update. Other parameters are left to the already-rich schema.

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?

"Build a priced draft order at one shop, or price a draft again with changes" gives a specific verb (build/price) and resource (draft order) plus both modes (create vs. re-price). It explicitly routes the seller-facing step to place_order, so the agent can separate this from the sibling without opening a 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 when to use this tool (pricing a draft) and names the alternative that actually sends the order: "it reaches the seller only through place_order." It also tells the agent what to do on ambiguity (the needs_choice outcome), which is a usage rule rather than just a return value.

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