Skip to main content
Glama

List purchase orders

list_purchase_orders
Read-onlyIdempotent

The organization's purchase orders from its last ERP export, with their lines grouped by order number. Orders with an open line by default, each with all its lines: use it for "what is still to come from Supplier X" and "has PO 4512 shipped". Each line has the quantities ordered, received (the ERP's figure), remaining, invoiced and packed (matched so far to supplier invoices and packing lists on shipments), the unit price, the date it is expected, and the product. Each order has shipment_ids (shp_...): the shipments carrying its goods, if any; an order with none has not been seen on a shipment yet. To see one supplier's orders, find its id with list_companies and pass it as supplier_id (an order whose supplier Trackberry does not know yet has no id and is not matched by it). query matches order number, article, supplier or description. Returns orders, newest first, with has_more and the id (por_...) of the last one to pass as starting_after.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many results to return, 1 to 100.
queryNoMatches an order number such as "4512" or "AA/35.264", an article code, a supplier or a description.
statusNoOrders with an open line (default), with a closed line, or all.open
supplier_idNoOnly this supplier's lines. A company id such as "cmp_123", from list_companies.
starting_afterNoPaging cursor: the id of the last result of the previous page. Only when has_more was true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds substantial behavior beyond them: data provenance (last ERP export), newest-first ordering, has_more plus the last id for paging, the meaning of absent shipment_ids, and the caveat that orders from unknown suppliers carry no id and are not matched by supplier_id.

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?

Front-loaded with what the tool returns, then usage, then return shape — a sensible order with no filler sentences. The prose is dense and parenthetical-heavy in places (the invoiced/packed clause, the supplier-matching caveat), which costs a little readability.

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?

There is no output schema, and the description compensates fully: it defines the returned order and line fields, the shipment_ids convention, ordering, and the pagination envelope with has_more and a cursor id. An agent can call this correctly and interpret the response without further documentation.

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 earns more by explaining what query matches (order number, article, supplier, description), how supplier_id behaves for unmatched suppliers, and how starting_after pairs with has_more. The received/invoiced/packed line fields are also explained, though these are return values rather than parameters, so it is not quite a full 5 on parameter meaning alone.

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?

States a specific verb (list) and resource (purchase orders) and pins the scope: this organization's POs from the last ERP export, lines grouped by order number. It also discloses the default filter (orders with an open line), which an agent needs to interpret results, and is clearly distinguishable from siblings like list_companies or search_shipments.

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 concrete use cases ('what is still to come from Supplier X', 'has PO 4512 shipped') and routes supplier filtering through list_companies to obtain a supplier_id. It does not name an alternative tool for the same job or state when not to use it, so it stops short of explicit exclusions, but the when-to-use context is clear.

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