Skip to main content
Glama

Record goods received

receive_purchase_order

Record goods arriving against an open purchase order — per line with lines (ids from get_purchase_order), or everything still outstanding with all: true. Stocked items go into inventory at the order's cost. Usually queued for the account holder to approve (read staged). It records a receipt; it does not create or pay the vendor's bill.

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": {
      "purchase_order_id": "<purchase_order_id>"
    },
    "name": "receive_purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReceive everything still outstanding instead of naming lines.
noteNo
linesNo
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
referenceNoPacking slip or delivery reference.
received_onNoISO date it arrived. Default today.
purchase_order_idYes

Output Schema

NameRequiredDescriptionDefault
idNoThe created or updated record's id, when the write was applied rather than staged.
noteNoWhy the result was truncated, when it was.
stagedNoTRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done.
draft_idNoThe staged proposal's id, when it was queued rather than performed.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

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 declare this is a non-read-only, non-destructive, non-idempotent mutation, and the description adds real context beyond that: a receipt writes stocked items into inventory valued at the order's cost, and the operation typically lands in an approval queue rather than committing immediately. What it omits is any warning against double-receiving the same lines, which matters given idempotentHint=false.

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?

Three compact sentences: capability and modes first, side effects and approval workflow second, boundary third. Every clause carries information and nothing is repeated from the schema or title.

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 7-parameter mutation with an output schema, this covers the essentials: the two invocation strategies, inventory valuation effect, approval gating, and the fact that it does not touch the vendor bill. The only meaningful gap for safe invocation is the absence of guidance on repeat/partial receipts given the non-idempotent hint.

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 57%, and the description explicates the two parameters that drive behavior (`lines` sourced from `get_purchase_order`, `all: true` for outstanding quantities), though the schema already documents both. The remaining parameters (entity_id, received_on, reference, note) get no added meaning in the description, so it neither compensates for nor worsens the partial coverage gap.

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 opens with a specific verb and resource ('Record goods arriving against an open purchase order') and immediately scopes it with a negative boundary ('it does not create or pay the vendor's bill'), which separates it from create_purchase_order. An agent can distinguish this from get_purchase_order or create_purchase_order without opening any schema.

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?

It gives the two mutually exclusive invocation modes with their conditions: per-line via `lines` or everything outstanding via `all: true`, and points at `get_purchase_order` as the source of line ids. It also states the downstream consequence ('usually queued for the account holder to approve') so the agent knows to read `staged` afterward.

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