Skip to main content
Glama

Get a purchase order

get_purchase_order
Read-onlyIdempotent

One purchase order in full: every line with the quantity ordered, received and billed (qty_to_receive is what is still expected), the receipts recorded, the vendor bills raised from it, and actions. The line ids here are what receive_purchase_order takes.

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
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
purchase_order_idYes

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
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.2/5.0
Behavior4/5

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

Annotations already establish this as a read-only, idempotent, non-destructive, closed-world operation. The description usefully adds return semantics beyond the annotations, notably that qty_to_receive means remaining expected quantity and that line ids are reusable by receive_purchase_order; it does not cover permissions or response size, but those gaps are minor for a simple getter with an 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences with zero waste, front-loaded by the core purpose. The parenthetical explanation of qty_to_receive and the closing cross-reference to receive_purchase_order both earn their place.

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 simple single-record read with an output schema and read-only annotations, the description supplies enough detail to call it correctly and understand the returned fields. The main missing piece is where to obtain purchase_order_id, which would complete the workflow context.

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 only 50%: entity_id is documented in the schema, but purchase_order_id has no schema description. The description adds useful meaning about line IDs and quantity fields, but it does not state where purchase_order_id should come from, so it only partially compensates for the schema 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 gives a specific verb and resource ('One purchase order in full') and enumerates exactly what the result contains: lines, receipts, vendor bills, and actions. It also distinguishes this from the sibling receive_purchase_order by explaining that the line ids returned here are what that tool consumes.

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?

Usage context is clear: this is the full-detail read for a single purchase order, and the line ids feed receive_purchase_order. However, it does not explicitly say to use list_purchase_orders to find an id or state when not to use this tool, so the guidance stops short of explicit alternatives.

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