Skip to main content
Glama

Receive purchase order

receive_purchase_order
Destructive

Receive quantities on a purchase order into stock. Two-step confirm_token: the first call without confirm_token only returns confirmation_required, a summary, and confirm_token. That call does not write, delete, cancel, or send. The second call must repeat the same arguments plus that confirm_token; that is the write. A confirm boolean is ignored. The token expires in 5 minutes and works once.

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_id": "<order_id>",
      "lines": "<lines>"
    },
    "name": "receive_purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
order_idYes
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With annotations already flagging destructiveHint=true and idempotentHint=false, the description still adds substantial context the agent could not otherwise know: the first call performs no write/delete/cancel/send, only the token-bearing repeat call mutates, and the token is single-use with a 5-minute expiry. It also preempts a wrong invocation by noting a confirm boolean is ignored. This does not contradict the annotations; it reinforces them.

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?

The two-step mechanics are front-loaded in the first sentence, then the no-op vs. write distinction, then the token's expiry contract. Every clause carries operative information; nothing is redundant.

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

Completeness4/5

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

For a destructive, non-idempotent mutation with no output schema and no schema descriptions, the description covers the safety-critical behavior (what the first call does and does not do, single-use expiring token). Remaining gaps are the per-line receiving semantics and whether a receive can be reversed, which an agent would need for edge cases.

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 0%, so the description must compensate, and it fully documents confirm_token's lifecycle and the existence of a non-functional confirm boolean. However, it says nothing about lines/line_id/quantity/location_id semantics — partial receiving, the quantity>=0 bound, or the 1-100 line cap - leaving the two required parameters undescribed in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ('Receive quantities on a purchase order into stock'), which clearly separates it from list_/get_/create_purchase_order. It doesn't name a sibling to contrast with (e.g., receive_return or submit_purchase_order), so it stops short of a 5.

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?

The two-step confirm_token procedure is spelled out precisely: which call is a dry run, what it returns, and what the second call must repeat. It gives no guidance on when to prefer this over adjacent operations like submit_purchase_order or cancel_purchase_order, so it is clear context without exclusions.

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