Skip to main content
Glama

Receiving Exceptions

get_receiving_exceptions
Read-only

List inbound purchase orders that are receiving exceptions — POs sent to the supplier (issued, receiving, partiallyFulfilled, pendingReceiptResolution, pendingReconciliation) that are stuck. Each row carries every bucket it matches (buckets OVERLAP): overdue (past its due date), partial (some but not all ordered quantity received), blocked (a human decision is required before receiving can proceed). Optional bucket filter (overdue/partial/blocked; omit for any bucket) narrows to one; unknown values are rejected. Optional warehouseId / supplierId filters (AND-combined). Rows also carry diagnostic exceptionReasons (supplier_overdue, awaiting_remainder, receipt_pending_resolution, receipt_pending_reconciliation, cost_variance_unresolved, quantity_variance_unresolved). Ordered by due date ascending (nulls last). Paged: returns Total (pre-paging) plus the page; default 100, max 500. A client-pinned token sees only its own client's POs; an operator token sees the whole tenant's.

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": "get_receiving_exceptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (default 100, max 500).
bucketNoRestrict to a single bucket: overdue, partial, or blocked. Omit for any bucket.
offsetNoZero-based offset for paging (default 0).
supplierIdNoOnly POs from this supplier.
warehouseIdNoOnly POs whose destination warehouse is this id.

Output Schema

NameRequiredDescriptionDefault
okNo
limitNo
totalNo
offsetNo
ordersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare read-only/non-destructive/closed-world; the description adds order-by-due-date (nulls last), paging with a pre-paging Total, default 100 / max 500, bucket overlap semantics, rejection of unknown bucket values, and token scoping (client-pinned vs tenant-wide). These are substantial behavioral facts an agent cannot get from the annotations.

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?

Dense but front-loaded: the core scope comes first, then bucket semantics, filters, ordering, paging, and auth scoping. Nearly every clause carries information, though the enumerated status and reason lists make it longer than strictly necessary for tool selection.

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 paged, multi-filter read tool with an output schema, the description covers scoping, filtering, ordering, pagination limits, and token visibility. Nothing an agent needs to invoke it correctly 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?

Schema coverage is 100%, so the baseline would be 3; the description goes beyond it by explaining that each row carries every matching bucket (buckets overlap), that the bucket filter narrows to exactly one bucket, and that warehouseId/supplierId are AND-combined. It does not restate limit/offset paging semantics beyond the Total detail, which is already in the schema.

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?

States a specific verb and resource ('List inbound purchase orders that are receiving exceptions') and enumerates the exact PO statuses that qualify, so an agent knows precisely what population is returned. It does not explicitly contrast itself with siblings such as get_purchase_order_receiving, so the scope is clear but not sibling-differentiated.

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 operating context: omit bucket for any bucket, unknown bucket values are rejected, and warehouseId/supplierId are AND-combined. It lacks explicit when-to-use-this-vs-another-tool guidance or exclusions, which keeps it short of a 5.

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