Skip to main content
Glama

list_documents

Read-only

List documents. Documents are typed info (doc_type: email|offer|invoice|order|note|file|other) with a title + description the AI can analyze — e.g. sevDesk offers/invoices imported per lead. Scope with entity ('lead'|'contact'|'account'|'campaign') + entity_id. Pass unfiled:true instead to list the documents that belong to NO record (files stored for another system, screenshots for a ticket) — they appear in no other listing, so this is how you find and clean them up. Optional doc_type filter. Newest (occurred_at) first.

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
limitNoMaximum number of entries to return
entityNolead|contact|account|campaign|user|asbest_project|raumbuchung_booking
unfiledNoOnly documents with no entity at all. Use to find files stored without a CRM record.
doc_typeNoFilter by type (email|offer|invoice|order|note|file|other)
entity_idNoRecord id the documents are attached to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real context beyond that — result ordering by occurred_at (newest first) and the important fact that unfiled documents "appear in no other listing" — but says nothing about pagination behavior or what the default limit is, which matters for a list tool.

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-loaded with the verb+resource, then resource definition, then scoping modes, then sort order — a logical progression with no filler sentences. The unfiled explanation is slightly long-winded but each clause carries information an agent would otherwise have to guess.

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?

With no output schema, the description compensates by sketching the returned shape (typed document with title and description) and the ordering. All five optional parameters are accounted for. What is missing is only the practical envelope — pagination and default page size — which is minor for a read-only listing tool.

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 100%, so the baseline is 3; the description goes further by explaining that entity and entity_id are used together for scoping, that unfiled is an alternative mode rather than a filter to combine, and by restating the doc_type value set in context. It does not explain limit semantics, leaving that to the schema.

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?

Opens with a specific verb+resource ("List documents") and immediately defines what a document is: typed info with doc_type, a title and description. It does not explicitly differentiate itself from lookalike siblings such as list_sap_billing_documents, but the definition of the resource plus the entity/unfiled scoping makes the tool's domain clear enough to select it.

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?

Gives concrete usage modes: scope with entity + entity_id, or "Pass unfiled:true instead" for documents belonging to no record, with a stated purpose (find and clean up orphans) and an optional doc_type filter. The "instead" phrasing conveys mutual exclusivity. It stops short of naming when to prefer a sibling tool, so it is strong but not a 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.