Skip to main content
Glama
themiguelamador

toconline-mcp

list_sales_documents

Retrieve commercial sales documents with pagination and filtering by type, customer, or date. Use the fields parameter to limit response columns for faster results.

Instructions

List commercial sales documents, newest first by default.

Use page_number + page_size to paginate, and fields to limit the response to just the columns you need.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoExact date match (YYYY-MM-DD). TOCOnline does not support ranges.
sortNoJSON:API sort expression. Prefix with `-` for descending. Defaults to `-date`. Examples: `-date`, `date,document_no`, `-id`, `-gross_total`.-date,-id
fieldsNoComma-separated subset of fields to return. Hugely reduces response size — sales docs have 117 fields. Common subset: `document_no,date,gross_total,status,customer_id`.
page_sizeNoItems per page (1-500).
customer_idNoFilter by customer id (exact match).
page_numberNo1-based page number for paging past the first page.
document_typeNoExact document type code, e.g. FT (invoice), FR (receipt), NC (credit note).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Without annotations, the description must convey behavioral traits. It discloses pagination and field selection behavior, implying a read-only list operation. However, it does not explicitly state that the tool has no side effects, rate limits, or authentication requirements, leaving some ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the primary purpose, and zero waste. Every sentence adds value: the first defines the action and default sort, the second instructs on pagination and field filtering.

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 7 parameters, 100% schema coverage, and an output schema, the description is adequate but not exhaustive. It covers the main usage pattern (pagination and field selection) but omits mentioning key filters like document_type or customer_id, which are documented in the 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 description coverage is 100%, so baseline is 3. The description adds no additional meaning beyond what the schema already provides (e.g., pagination hints are already in parameter descriptions). It does not compensate for any schema gaps.

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 clearly states the tool lists commercial sales documents with default newest-first ordering. It uses specific verb 'list' and resource 'sales documents', distinguishing it from sibling list tools for other entities like customers, products, or purchase documents.

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?

The description lacks explicit guidance on when to use this tool versus alternatives like list_sales_receipts or get_sales_document. It does not mention prerequisites or exclusion scenarios, leaving the agent to infer usage context from the function name alone.

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

Install Server

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/themiguelamador/toconline-mcp'

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