Skip to main content
Glama

Purchase Order Receiving

get_purchase_order_receiving
Read-only

What is still open to receive on a purchase order? Returns the order's status, vendor and destination warehouse, whether it can be received now (and why not), and every receivable line with ordered, received, missing and remaining quantities, tracking type and the default put-away location. Call this before receive_purchase_order to get lineIds.

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": {
      "purchaseOrder": "<purchaseOrder>"
    },
    "name": "get_purchase_order_receiving"
  }
}

Input Schema

NameRequiredDescriptionDefault
purchaseOrderYesPurchase order id (GUID), document number (e.g. PO-2026-10-000118), or the short form people use for an open order: its last digits ("118", "PO 118").

Output Schema

NameRequiredDescriptionDefault
linesNo
statusNo
canReceiveNo
vendorNameNo
warehouseIdNo
blockedReasonNo
warehouseNameNo
purchaseOrderIdNo
allowOverReceivingNo
hasDeliveryReceiptNo
purchaseOrderNumberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, and the description adds decision-relevant behavior: it reports whether the order can be received now and why not, plus the destination warehouse and default put-away location. It does not discuss permissions or rate limits, and much of the remaining text restates return shape already covered by the output schema.

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 lead question front-loads the purpose and the closing sentence front-loads the action. The middle sentence is a long enumeration of return fields that duplicates the output schema, making it denser than necessary.

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 single-parameter read tool with full schema coverage, annotations, and an output schema, an agent has everything needed: what it returns, why to call it, and the follow-up tool. Nothing material is missing.

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 coverage is 100% and the single purchaseOrder parameter is documented in the schema with GUID, document-number, and short-form variants. The description adds nothing about identifier formats or interpretation, so the schema does all the work and baseline 3 applies.

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?

Opens with a concrete question that defines the resource and the exact scope ('what is still open to receive on a purchase order?'), then names the specific fields returned. It is clearly distinguishable from siblings such as get_receiving_exceptions or receive_purchase_order, which the description explicitly points to.

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?

'Call this before receive_purchase_order to get lineIds' gives an explicit prerequisite and sequencing rule plus the reason for calling it. It does not enumerate when-not cases, but the read-before-write condition is unambiguous.

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