Skip to main content
Glama

Get a list of sales orders

list_sales_orders
Read-onlyIdempotent

Retrieve a paginated list of sales orders including line items. Filter by status, date, relation, or sort to manage and review order data.

Instructions

Get a list of sales orders.

Get a paginated list of all sales orders with their line items. Requires the trade module to be active.

[Sales Orders] GET /orders/sales

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default = 1).
sortNoSort order. Format: field.direction (e.g. date.desc). Available fields: created, number, name, date, amount.
filterNoFilter orders by status.
recordsNoNumber of records per page.
last_editNoOnly return orders edited after this date (format: YYYY-mm-dd).
relation_idNoOnly return orders for the relation with this ID.
administrationNoThe client administration to act on. Only one is configured: default.
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds meaningful context beyond annotations by clarifying pagination, inclusion of line items, and the trade module requirement, which are not obvious from the annotations alone.

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?

The description is concise and front-loads the core purpose in the first sentence. It includes a necessary prerequisite and an endpoint hint, but it slightly repeats the tool title in the first sentence, which is a minor redundancy.

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?

Given the tool's simplicity, the description adequately covers output context (list with line items) and the module requirement. The lack of an output schema is partly mitigated by the description's mention of return contents, though field-level detail is not provided.

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 100%, so the schema already documents all seven parameters thoroughly. The description adds no extra parameter-level detail, which is acceptable since the baseline for full coverage is 3.

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 uses the specific verb 'Get' with resource 'sales orders' and clearly states the scope: a paginated list including line items. This distinguishes it from sibling tools like get_sales_order (single order) and create_sales_order.

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?

The description explicitly states a prerequisite ('Requires the trade module to be active') and clearly frames the tool as a list operation. It does not name alternatives, but the context of 'list all sales orders' is unambiguous enough for an agent to know when to invoke it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vladxyz/informer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server