Skip to main content
Glama

List purchase orders

list_purchase_orders
Read-onlyIdempotent

Purchase orders to vendors with how much has arrived (received: none, partial or complete) and how much the vendor has billed. awaiting_approval is the ones waiting on a person with the authority to approve them; an order cannot be received against until it is open. Reads the entity the person is working in unless entity_id names another.

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
qNoPO number, vendor name or memo.
limitNoMaximum rows to return (1-200, default 50).
offsetNoRows to skip, for paging.
statusNoDefault: every status.
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
vendor_idNo

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
countYesHow many rows are in `results`.
resultsYesThe rows.
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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so safety and repeatability are covered. The description adds genuinely useful behavior beyond that: default entity scoping with an override path, the meaning of the `awaiting_approval` state, and the open-before-receive business rule. However, it says nothing about ordering, paging defaults beyond the schema, or result volume.

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?

Three dense sentences with no filler, front-loading the resource and its returned fields before the status semantics. The phrasing is telegraphic and mildly awkward ('`awaiting_approval` is the ones waiting on a person'), which costs it the top mark but not readability.

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?

With an output schema present, return shape need not be described, and annotations cover the safety profile; the description fills in entity scoping, status meaning and the approval/receipt rules. Only ordering and vendor_id semantics are left unaddressed, which is a minor gap for a 6-parameter read tool.

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 83%, so the baseline is 3 and the schema already documents q, limit, offset, status, entity_id and even the entity default. The description's real contribution is defining what `awaiting_approval` actually means, which the enum does not spell out; `vendor_id` remains undocumented in both places.

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 resource (purchase orders to vendors) and the distinguishing payload it returns — received quantities (none/partial/complete) and vendor-billed amounts. It never states the verb 'list' explicitly and does not name a sibling such as list_change_orders or get_purchase_order to differentiate, so it is clear but not fully self-locating.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: filtering on `awaiting_approval` is effectively the 'who needs approval' path, and the note that an order cannot be received against until it is open hints at a workflow boundary. There is no explicit when-to-use versus get_purchase_order (single order) or list_change_orders, and no exclusions.

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