Skip to main content
Glama

Mango Inventory

Create order

create_order

Create an order: a request for items or material (any member can order; order managers fulfill). lines holds one entry per thing, each with an optional quantity: "5 Packungen Kopierpapier" is { description: "Packungen Kopierpapier", quantity: 5 }; a specific inventory item is { itemId, quantity } (ids from search_items); "any two of this drill model" is { modelId, quantity: 2 } (search_items rows carry the modelId); "any five from this category" is { categoryId, quantity: 5 } (category ids from get_item_requirements). For a model or category line the store picks the concrete items, and a line with nothing free is allowed. request is free text around it ("für das Schulzimmer 201"); at least one of request / lines / itemIds is required. neededBy is a calendar day ("2026-08-11"); the server has no timezone and does no conversion, so a full timestamp is accepted only WITH an explicit offset ("2026-08-11T00:00:00+02:00"). The legacy neededByAt epoch still works; exactly one of the two. The result echoes neededByAtIso, the day that landed, and webUrl, the new order's page in the web app; orderId is the handle for follow-up calls. deliverToResourceId is the person or location the items go to (ids from search_resources); absent = the connected user. With clientRequestId a repeated call returns the existing order instead of a duplicate; without it every call creates a new order.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoThe requested lines, one entry per thing: a specific inventory item, any instance of a model, any item of a category, or free text, each with an optional quantity
itemIdsNoShorthand for quantity-less inventory item lines; equivalent to lines: [{ itemId }]
requestNoFree-text description of what is needed (at least one of request/lines/itemIds is required)
neededByNoWhen the requester needs it, as a calendar day: "YYYY-MM-DD" (e.g. "2026-08-11"). This server has no timezone and does no conversion, so a relative date ("bis Dienstag") is resolved by the caller. A full timestamp is accepted only WITH an explicit offset ("2026-08-11T00:00:00+02:00"), and its calendar day is taken as seen in that offset; an offset-less timestamp is refused. Passing both neededByAt and neededBy is an error
neededByAtNoWhen the requester needs it, as epoch milliseconds at UTC midnight of that day (legacy form of `neededBy`; exactly one of the two)
clientRequestIdNoA unique id for this request (e.g. a UUID). A repeated call with the SAME id returns the existing order instead of creating a duplicate; a new id creates a new order.
deliverToResourceIdNoPerson or location resource id to deliver to; absent = the connected user

Output Schema

NameRequiredDescriptionDefault
statusNoOrder status
webUrlNoLink to the new order in the web app, for a person to open; `orderId` is the handle for tool calls
orderIdNoThe new order's id
neededByAtNoThe needed-by date that actually landed, epoch milliseconds. Absent when none was passed
targetNameNoWho/where it delivers to
neededByAtIsoNoThe same date as a plain calendar day, "YYYY-MM-DD": the day that landed. A DAY, not a moment: the server does no timezone conversion

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / clientRequestId / description
      Previous value: -"Optional but recommended: a unique id you generate for this request (e.g. a UUID). If the call times out or you retry, pass the SAME id — you'll get the existing order back instead of creating a duplicate. Use a fresh id for each new order."New value: +"A unique id for this request (e.g. a UUID). A repeated call with the SAME id returns the existing order instead of creating a duplicate; a new id creates a new order."
    • changedInput schema / properties / deliverToResourceId / description
      Previous value: -"Person or location resource id to deliver to; defaults to you"New value: +"Person or location resource id to deliver to; absent = the connected user"
    • changedInput schema / properties / itemIds / description
      Previous value: -"Shorthand for quantity-less inventory item lines; equivalent to lines: [{ itemId }]. Prefer `lines` when a quantity matters"New value: +"Shorthand for quantity-less inventory item lines; equivalent to lines: [{ itemId }]"
    • changedInput schema / properties / lines / description
      Previous value: -"The requested lines, one entry per thing you need — each a specific inventory item, any instance of a model, any item of a category, or free text, each with an optional quantity"New value: +"The requested lines, one entry per thing: a specific inventory item, any instance of a model, any item of a category, or free text, each with an optional quantity"
    • changedInput schema / properties / lines / items / properties / quantity / description
      Previous value: -"How many (a whole number ≥ 1). Meaningful for material and stock, not for one serialized machine — leave it off there"New value: +"How many (a whole number ≥ 1). Meaningful for material and stock, not for one serialized machine"
    • changedInput schema / properties / neededBy / description
      Previous value: -"When the requester needs it, as a calendar day: \"YYYY-MM-DD\" (e.g. \"2026-08-11\"). THIS is the form to use — a bare day has no timezone to get wrong. Your user says \"bis Dienstag\"; only YOU know which calendar day that is and which timezone they are in, because this server has no timezone and does no conversion. A full timestamp is accepted only WITH an explicit offset (\"2026-08-11T00:00:00+02:00\"), whose calendar day is then taken as seen in that offset; an offset-less timestamp is refused rather than guessed. Passing both neededByAt and neededBy is an error"New value: +"When the requester needs it, as a calendar day: \"YYYY-MM-DD\" (e.g. \"2026-08-11\"). This server has no timezone and does no conversion, so a relative date (\"bis Dienstag\") is resolved by the caller. A full timestamp is accepted only WITH an explicit offset (\"2026-08-11T00:00:00+02:00\"), and its calendar day is taken as seen in that offset; an offset-less timestamp is refused. Passing both neededByAt and neededBy is an error"
    • changedInput schema / properties / neededByAt / description
      Previous value: -"When the requester needs it, as epoch milliseconds at UTC midnight of that day. Prefer `neededBy` — pass exactly one of the two"New value: +"When the requester needs it, as epoch milliseconds at UTC midnight of that day (legacy form of `neededBy`; exactly one of the two)"
    • changedInput schema / properties / request / description
      Previous value: -"Free-text description of what you need (at least one of request/lines/itemIds is required)"New value: +"Free-text description of what is needed (at least one of request/lines/itemIds is required)"
    • changedOutput schema / properties / neededByAtIso / description
      Previous value: -"The same date as a plain calendar day, \"YYYY-MM-DD\" — read THIS back to your user, the date was YOUR arithmetic. A DAY, not a moment: the server does no timezone conversion"New value: +"The same date as a plain calendar day, \"YYYY-MM-DD\": the day that landed. A DAY, not a moment: the server does no timezone conversion"
    • changedOutput schema / properties / webUrl / description
      Previous value: -"Link to the new order in the web app — give your user THIS, never the raw `orderId` (that is a machine handle for your next call)"New value: +"Link to the new order in the web app, for a person to open; `orderId` is the handle for tool calls"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Rich beyond-annotation detail: the timezone/date parsing rule failure mode, the fact that a line with nothing in stock is still allowed, the deliverTo default, and that duplicate avoidance only happens with clientRequestId. The annotations already declare the write/idempotency profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=false), and the description is consistent with them ("without it every call creates a new order"), but it does not restate or clarify the non-destructive/open-world aspects, so it is good rather than exemplary.

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 purpose and organized by parameter in a single readable block, with no filler. It is long and duplicates a fair amount of schema text, which keeps it short of a 5.

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 7-parameter mutation with zero required fields, everything an agent needs is present: the three acceptable input shapes, mutual exclusivity of neededBy/neededByAt, duplicate-suppression semantics, delivery default, and where to obtain ids. Return fields are covered by the output schema, and the description's mention of orderId/webUrl is extra, not a gap.

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% and the description largely restates the schema's line-form semantics, so credit is limited. It still adds concrete worked mappings ("5 Packungen Kopierpapier" → {description, quantity}; "any two of this drill model" → {modelId, quantity}) and the neededBy timestamp rule, which help an agent pick a line shape and format rather than just parse the field.

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 ("Create an order") and immediately defines what an order is and who participates ("any member can order; order managers fulfill"), which separates it from the read/inventory siblings like search_items or get_item_requirements.

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?

Gives clear operational context and prerequisites by naming where ids must come from (search_items for items/models, get_item_requirements for categories, search_resources for delivery targets). It does not explicitly exclude near-alternatives such as create_ticket, but the prerequisites effectively route the agent to the right upstream calls.

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