Skip to main content
Glama

List documents

list_documents
Read-onlyIdempotent

List documents (invoices, receipts, bills, offers/Angebote, orders & delivery notes) for the current tenant.

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
limitNoMax rows (default 20, max 200)
offsetNoPagination offset (default 0)
searchNoFree-text search over supplier/customer name, file name, invoice number, offer number and the document's header line
date_toNoOnly rows with issue_date <= this (YYYY-MM-DD)
date_fromNoOnly rows with issue_date >= this (YYYY-MM-DD)
directionNoexpense | income — the booking direction as sevDesk reported it (raw.creditDebit: C=expense, D=income). total_amount is UNSIGNED on vouchers, so a sum over it is blind to refunds; use signed_amount instead. Empty on sevDesk orders, because an order is not a booking. NOT the same as invoice_direction: that one steers which side a PUSH writes, this one records what the booking actually is.
contact_idNoFilter by contact_id
cost_centreNoKostenstelle / cost bearer, e.g. "1583" for Innov-AI-tive. LOCAL ONLY — the sevDesk v1 API has no such field on Voucher, Invoice, CreditNote or Order (checked against 657 real API responses), so this never reaches sevDesk. cost_centre_source says whether it was set by hand, prescribed by the accountant, or derived from a rule.
legal_entityNotoasternet | innov-ai-tive — which legal entity this document belongs to. ToasterNET and Innov-AI-tive are two separate legal entities sharing one bookkeeping until the split is done. Determined at the INVOICE RECIPIENT, never at the paying account. Empty means unresolved, which is the correct value while it is unresolved — ask, do not guess.
document_typeNoinvoice | receipt | contract | offer | order | other. 'offer' is a sevDesk Angebot (orderType AN); 'order' is an Auftragsbestätigung or Lieferschein (AB/LI) — order_type on the row says which.
account_sourceNosevdesk_accounting_type | vendor_history | rule | manual — where skr_account_number came from. account_source_detail says which accountingType, which rule, or which supplier.
document_sourceNomail | portal | manual | sevdesk — where the document itself came from.
has_skr_accountNotrue = only documents booked to a chart account, false = only those still missing one. Combine with the `total` in the result to count them without paging.
processing_statusNoFilter by processing_status
account_confidenceNoVERIFIZIERT | ABGELEITET | UNSICHER — the tax office's 'Sicherheit' column, computed from account_source. VERIFIZIERT = taken from the actual sevDesk booking or set by a person; ABGELEITET = inferred from a rule or from the supplier's history; UNSICHER = no account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered and the description only needs to add context. It contributes the tenant-scoping fact, which is genuinely useful, but says nothing about ordering, whether the result includes a total count, or result caps beyond what the schema states.

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?

A single front-loaded sentence with an embedded parenthetical enumeration of the covered document types and the tenant scope; there is no filler, hedging, or repetition.

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

Completeness3/5

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

With 15 optional parameters, no output schema, and a domain full of traps (unsigned total_amount, unresolved legal_entity, local-only cost_centre), the description does very little to orient an agent, relying entirely on the rich schema and annotations. It should at least hint that results are pageable, that a total is returned, and how this differs from the incoming-documents listing.

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 baseline is 3 and the schema carries nearly all semantic weight, including the subtle direction vs invoice_direction distinction and the local-only cost_centre note. The description adds no parameter meaning of its own and does not surface the high-value filters (search, date range, has_skr_account) that an agent should consider first.

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?

States a specific verb (List) and resource (documents) and enumerates the concrete document types it covers — invoices, receipts, bills, offers/Angebote, orders and delivery notes — scoped to the current tenant. It is clear what the tool returns, but it never distinguishes itself from close siblings like list_incoming_documents or list_document_sources, leaving overlap ambiguous.

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 is only implied: an agent can infer this is the general-purpose document listing endpoint and that the extensive filter set narrows results. There is no explicit when-to-use guidance, no statement of when to prefer a sibling tool, and no prerequisites or caveats about the tenant scope being fixed.

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