Skip to main content
Glama

Receive goods

p2p_receive_goods
Destructive

Record what arrived against an order, as counted. Stock goes up; the goods are owed for until their bill is approved. Record what was counted at the door, against the order it came on, with the packing slip number when there is one. Never receive what was not counted, and never more than is still open on a line: that is refused with the numbers, and the answer is a conversation with the vendor, not a second order. Services are not received; their bill is matched against the order. A receipt cannot be changed afterwards. Effects: goods receipt recorded; stock increased through core; order received when every stocked line has arrived.

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": {
      "po_id": "<po_id>",
      "lines": "<lines>"
    },
    "name": "p2p_receive_goods"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoAnything about the delivery (one box damaged).
linesYesWhat arrived.
po_idYesThe order the goods came on. An existing p2p_po id.
referenceNoThe packing slip or delivery note number.
received_atNoThe day it arrived. Defaults to today. ISO date, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description adds materially beyond them: 'A receipt cannot be changed afterwards' makes irreversibility concrete, and the Effects line enumerates downstream consequences (goods receipt recorded, stock increased through core, order marked received when every stocked line has arrived). It also discloses the rejection behavior — excess is refused with the numbers — which is exactly the failure mode an agent needs before calling a destructive write.

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?

Front-loaded with the core action, then constraints, then a compact Effects summary. The opening pair of sentences is slightly repetitive ('Record what arrived... as counted' / 'Record what was counted at the door'), but each sentence carries a distinct rule or effect and there is no filler.

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 destructive, non-idempotent mutation with no output schema, the description supplies what matters: irreversibility, downstream stock and order-state effects, and what happens on an invalid over-receipt. Nothing an agent needs in order to call it safely 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 is 3. The description still adds meaning to the key parameters: qty is what was counted, not what was ordered or expected; po_id is the order the goods came on; reference is the packing slip 'when there is one' (i.e. optional in practice). These reinforce the counting semantics that the schema alone states only tersely.

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 description states a specific verb and resource — recording what physically arrived against a purchase order, as counted — and scopes it (stock up, liability to vendor until bill approval). It carves out boundaries by declaring that services are not received and that a refused over-receipt is 'a conversation with the vendor, not a second order.' It stops short of naming the sibling it replaces (e.g. p2p_goods_received or core_receive_stock), so differentiation is by behavior rather than by explicit routing.

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?

Clear when-to-use context is given: at the door, against the order it came on, only what was counted, never more than the open quantity on a line. It also provides a when-not path (services → bill matched against the order). No alternatives are named, so an agent must not infer sibling routing from this text alone.

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.