Skip to main content
Glama

AssetLab

List purchase order lines

list_purchase_order_lines
Read-onlyIdempotent

List purchase order line items: description, optional part, quantity, unit_cost and quantity_received. Filter by purchase_order_id or part_id. A PO with lines takes its amount from them. unit_cost is a bare number with no currency: call get_organization_settings for currency_code before stating one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default: all pages fetched automatically)
part_idNoFilter by part ID
per_pageNoItems per page (default: 1000, max: 1000). All pages are fetched automatically.
purchase_order_idNoFilter by purchase order ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds genuine business context beyond that: the relationship 'a PO with lines takes its amount from them' and the warning that unit_cost carries no currency, directing the agent to get_organization_settings for currency_code.

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?

Four tight sentences, front-loaded with the purpose and followed by the fields, filters, and the currency caveat. Each sentence carries distinct information, though the currency instruction is slightly dense compared to the rest.

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 no output schema, the description usefully enumerates the returned fields and discloses the currency-format caveat and the PO-amount rule. Pagination behavior is left to the schema, which documents auto-fetching, so the definition is essentially complete for an agent to call it correctly.

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 100%, so page, per_page, part_id and purchase_order_id are already fully documented. The description reiterates the filter parameters but adds no format or semantics beyond the schema (the unit_cost note concerns returned data, not inputs), so the baseline 3 holds.

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 order line items'), then enumerates the returned fields (description, optional part, quantity, unit_cost, quantity_received). This distinguishes it from the sibling list_purchase_orders and get_purchase_order_line without opening a schema.

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?

'Filter by purchase_order_id or part_id' implies the two usage contexts (lines for a PO, or lines for a part), and the currency note gives downstream guidance. However, it never explicitly states when to use this versus get_purchase_order_line or list_purchase_orders, and gives no exclusions, so usage is only implied.

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