Skip to main content
Glama

List sales orders

list_sales_orders
Read-onlyIdempotent

Sales orders — what a customer has agreed to buy — with how much has been delivered (delivered: none, partial or complete), how much invoiced, and the value still to invoice (remaining). An order is not an invoice: nobody owes anything on it until it is invoiced. 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_sales_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOrder number, customer name, customer PO 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.
customer_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.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower, yet the description still adds real context: the default entity scoping ('reads the entity the person is working in unless entity_id names another') and the meaning of the delivered/invoiced/remaining lifecycle fields. It does not mention paging behavior or result ordering.

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 tight sentences with the resource definition front-loaded, followed by lifecycle fields and the invoice distinction. The invoice contrast slightly drifts from the tool itself but earns its place by preventing misuse.

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 six-parameter, zero-required list tool with an output schema and strong annotations, the description covers scope, default entity behavior, and the conceptual domain model. Remaining gaps (paging, ordering, empty-result behavior) are largely covered by the schema or output 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 coverage is 83%, so the schema already documents q, limit, offset, status, entity_id and the status enum. The description reinforces the entity_id default behavior and adds domain meaning for value fields, but contributes little parameter-level detail beyond what the schema supplies.

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?

It clearly names the resource and defines it functionally ('what a customer has agreed to buy'), plus the fields it surfaces (delivered, invoiced, remaining). It implicitly separates itself from purchase/change orders via 'customer' but never names a sibling, so the differentiation is not explicit for this large list-tool family.

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 context is implied rather than stated: it explains that an order is not an invoice and that nothing is owed until invoiced, which helps an agent pick order-vs-invoice tools. There is no explicit guidance on when to use this versus get_sales_order or the other list_*_orders variants.

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