Skip to main content
Glama

peppol.sh

List documents

list_documents
Read-onlyIdempotent

Lists the documents (invoices and credit notes) that a company sent, newest first, with their status (queued, sending, delivered, failed). Filter by status. Concise by default; set response_format to detailed for parties and dates. Pages: pass next_cursor as cursor. company_id is optional when the key has one company. Use get_document for the events and the failure reason of one document.

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_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNonext_cursor of the previous page.
statusNo
company_idNoThe company ID, for example com_9fJ2kQ7bTx0Lm4Ne1Ry8.
response_formatNoconcise (default) for the key fields; detailed for all fields.concise

Output Schema

NameRequiredDescriptionDefault
has_moreYes
documentsYes
company_idYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real behavior beyond that: result ordering (newest first), pagination mechanics ('pass next_cursor as cursor'), default concise verbosity, and the optional company scoping tied to the API key. It does not discuss permissions, rate limits, or result size limits beyond the schema's maximum.

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?

Five short sentences, front-loaded with what the tool returns and how it is ordered, followed by filtering, verbosity, pagination, and the sibling redirect. No filler and no repetition of the title or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value detail is unnecessary, and the description instead covers ordering, pagination, filtering, verbosity, and company scoping. Nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60%, and the description compensates for most of the gap: it explains what status filtering does, that response_format=detailed unlocks parties and dates, and that company_id is optional when the key is bound to one company — a rule not present in the schema. Only limit is left entirely to the schema, which is reasonable given its default and bounds.

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 names a specific verb and resource ('Lists the documents (invoices and credit notes)'), states the scope ('that a company sent'), the ordering ('newest first'), and what each item carries ('their status (queued, sending, delivered, failed)'). It is clearly distinguishable from the single-document sibling it names, get_document.

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?

It gives concrete when-to-use guidance (filter by status, page with cursor, use detailed format for parties and dates) and an explicit redirect: 'Use get_document for the events and the failure reason of one document.' It also explains when company_id may be omitted. No exclusion is stated against other list/search siblings, so it stops short of a full 5.

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