Skip to main content
Glama

get_purchase_order

Read-only

Retrieve a purchase order with its rows and matched goods receipts and supplier invoices to verify ordered, received, and remaining quantities.

Instructions

One purchase order with rows (ordered / received / remaining) and its matched goods receipts / supplier invoices.

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

Input Schema

NameRequiredDescriptionDefault
include_matchesNo
purchase_order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so safety is covered. The description does add value by disclosing the return shape (per-row ordered/received/remaining quantities and matched receipts/invoices), which no output schema provides. However, it says nothing about behavior when the ID is unknown, empty match sets, or volume of matched documents.

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?

A single dense sentence with no filler, and the key content (the record plus its row-level breakdown) is front-loaded. It is a sentence fragment without an explicit verb like 'Retrieve', but nothing is wasted.

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

Completeness3/5

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

For a simple two-parameter read tool with no output schema, the description covers the essential return content but leaves gaps: no confirmation that results are single-record and ID-scoped, no mention of error/not-found behavior, and no clarification of the include_matches default already present in the schema.

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 carry both parameters. It indirectly explains include_matches by noting the response contains 'matched goods receipts / supplier invoices', but it never states that this flag controls those sections or what happens when it is false. purchase_order_id is obvious from the name but never explicitly defined as the target selector.

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 names the specific resource ('One purchase order') and enumerates its payload: ordered/received/remaining rows plus matched goods receipts and supplier invoices. That is clear enough to distinguish it from write-oriented siblings such as create_purchase_order or void_purchase_order, but it never contrasts with read alternatives like list_purchase_orders or get_order, so sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit statement of when to call this versus list_purchase_orders (single vs. many) or get_goods_receipt / get_supplier_invoice (which also surface matched documents here). Usage is only inferable from the name and the 'one purchase order' phrasing, so an agent gets no routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.