Skip to main content
Glama

Mango Inventory

Fulfill order

fulfill_order
Destructive

Mark an order as fulfilled (delivered); order managers only. Fulfilling transfers reserved stock to the order's target. Three checks answer { requiresAcknowledgment: true, ... } and write nothing; the same call with the named acknowledgment performs it: requested lines that are short (an item line never picked, or a model or category line with fewer picked items than its quantity) come back as uncovered (acknowledgeIncomplete: true); picked items that are meanwhile lost/retired come back as unusableItems (acknowledgeUnusableItemIds takes their ids); picked items with open issues (status defect or in_repair, an open ticket, or an overdue maintenance check) come back as itemsWithIssues, each with its status, the first issue's title and the count (acknowledgeSafetyItemIds). Fails on already-closed orders. Irreversible: a closed order cannot be reopened.

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": {
      "orderId": "<orderId>"
    },
    "name": "fulfill_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYesOrder id (from list_orders)
acknowledgeIncompleteNotrue closes the order despite the uncovered lines a previous requiresAcknowledgment result named
acknowledgeSafetyItemIdsNoThe ids from a previous result's itemsWithIssues; the items are handed out despite their issues
acknowledgeUnusableItemIdsNoThe unusable item ids a previous requiresAcknowledgment result named; the order closes despite them

Output Schema

NameRequiredDescriptionDefault
statusNoopen | in_fulfillment | fulfilled | rejected | cancelled
webUrlNoLink to this order in the web app, for a person to open; `orderId` is the handle for tool calls. Absent when the deployment has no public address
orderIdNoOrder id
closedAtNoClose time, epoch milliseconds
uncoveredNoRequested lines that are short: item lines never picked; model and category lines with `filled` of `required` picked
targetNameNoWho/where the order delivers to
closedAtIsoNoThe same moment as an ISO-8601 UTC timestamp — read THIS one; the server does no timezone conversion
instructionNoWhich acknowledge flag performs the call
unusableItemsNoPicked items that are meanwhile lost or retired
itemsWithIssuesNoPicked items with open issues: status defect or in_repair, an open ticket, or an overdue maintenance check
requiresAcknowledgmentNoPresent and true when nothing was written because of what this result names; the SAME call with the acknowledge flag named in `instruction` performs it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / acknowledgeIncomplete / description
      Previous value: -"Pass true ONLY after your user explicitly confirmed closing over the uncovered lines from a previous requiresAcknowledgment result"New value: +"true closes the order despite the uncovered lines a previous requiresAcknowledgment result named"
    • changedInput schema / properties / acknowledgeSafetyItemIds / description
      Previous value: -"Pass the ids from itemsWithIssues ONLY after your user explicitly confirmed handing those items out from a previous requiresAcknowledgment result"New value: +"The ids from a previous result's itemsWithIssues; the items are handed out despite their issues"
    • changedInput schema / properties / acknowledgeUnusableItemIds / description
      Previous value: -"Pass the unusable item ids ONLY after your user explicitly confirmed them from a previous requiresAcknowledgment result"New value: +"The unusable item ids a previous requiresAcknowledgment result named; the order closes despite them"
    • changedInput schema / properties / orderId / description
      Previous value: -"Order id (find with list_orders)"New value: +"Order id (from list_orders)"
    • changedOutput schema / properties / instruction / description
      Previous value: -"What to confirm with your user and how to retry"New value: +"Which acknowledge flag performs the call"
    • changedOutput schema / properties / requiresAcknowledgment / description
      Previous value: -"Present and true when nothing was written and a human confirmation is required — retry the SAME call with the acknowledge flag named in `instruction`"New value: +"Present and true when nothing was written because of what this result names; the SAME call with the acknowledge flag named in `instruction` performs it"
    • changedOutput schema / properties / webUrl / description
      Previous value: -"Link to this order in the web app — give your user THIS, never the raw `orderId` (that is a machine handle for your next call). Absent when the deployment has no public address"New value: +"Link to this order in the web app, for a person to open; `orderId` is the handle for tool calls. Absent when the deployment has no public address"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive=true and non-idempotent, but the description adds crucial behavioral context: reserved stock transfer, a three-check acknowledgment flow that writes nothing unless acknowledged, specific failure modes for short lines, lost items, and items with open issues, and the irreversibility of closing an order. This goes well beyond the annotations and fully informs the agent of the operation's consequences.

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?

The description is front-loaded with the core purpose and packed with necessary detail. It is a single dense paragraph with semicolons, which is slightly hard to parse, but every sentence contributes information about the workflow, failure modes, or irreversibility. It could be structured with bullets for readability but is not wasteful.

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?

Given the tool's complexity—destructive, irreversible, multi-step, with four parameters and an output schema—the description covers the essential behavior, the check-then-acknowledge pattern, failure conditions, and the irreversibility warning. An agent has enough information to invoke it correctly without needing to consult additional documentation.

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 baseline is 3. The description adds meaning by mapping each acknowledgment parameter to its corresponding check result (uncovered lines, unusable items, items with issues) and explaining the two-phase interaction. This slightly exceeds what the schema alone conveys, though some overlap exists with the already-detailed parameter 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?

The description states a specific verb and resource: 'Mark an order as fulfilled (delivered)'. It distinguishes this from other order actions by naming the target state (fulfilled) and the stock-transfer effect, which differentiates it from cancel_order or reject_order without needing to name them explicitly.

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?

It gives clear context for when to use the tool: order managers only, and fails on already-closed orders. The two-step check/acknowledge workflow is described in detail. However, it does not explicitly name alternative tools like cancel_order or reject_order as exclusions, leaving the agent to infer that those are for different order outcomes.

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