Skip to main content
Glama

peppol.sh

List document events

list_events
Read-onlyIdempotent

Lists the status events of the documents of the workspace, newest first (the same events as the webhooks). To wait for a send, poll it with document_id and type delivered or failed, or poll get_document. Filter by company_id, document_id, type and since (an RFC 3339 time). Pages: pass next_cursor as cursor. Set response_format to detailed for the company, the receiver and the message.

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

Input Schema

NameRequiredDescriptionDefault
typeNoThe status the document moved to.
limitNo
sinceNoOnly events at or after this time, for example 2026-10-22T09:00:00Z.
cursorNonext_cursor of the previous page.
company_idNo
document_idNo
response_formatNoconcise (default) or detailed.concise

Output Schema

NameRequiredDescriptionDefault
eventsYes
has_moreYes
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: reverse-chronological ordering, cursor-based paging via next_cursor, and the fact that response_format changes which related entities (company, receiver, message) are returned. It stops short of stating event retention or rate limits, which would be the remaining useful facts.

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?

Front-loads the core purpose, then filter, paging and format details in a tight sequence with no filler. It is slightly dense and parenthetical-heavy, but every clause carries information an agent needs to call the tool correctly.

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?

An output schema exists, so return values need not be described, and the description still explains the concise/detailed return distinction and the pagination contract. For a seven-parameter, fully optional-filter list tool this is close to complete; only the event retention window and the meaning of the 'queued'/'sending'/'retry' states are left implicit.

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 57%, and the description compensates for the gaps rather than repeating the schema: it names the filterable fields (company_id, document_id, type, since), identifies 'since' as an RFC 3339 time, explains that 'cursor' is the previous page's next_cursor, and spells out what 'detailed' adds. Only 'limit' is left unaddressed, which is a minor omission for an obvious parameter.

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?

States a specific verb and resource ('Lists the status events of the documents of the workspace'), adds ordering ('newest first') and a disambiguating equivalence ('the same events as the webhooks'). It also names a sibling (get_document) as an alternate route, so an agent can tell it apart from list_documents or get_document without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit usage recipe: to wait for a send, poll with document_id plus type delivered or failed, or poll get_document instead. That is a concrete when-to-use plus a named alternative, and it goes beyond a generic 'use this to list events'.

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