Skip to main content
Glama

list_documents

Read-onlyIdempotent

Retrieve and filter Paperless documents by title, correspondent, document type, tag, storage path, date, archive serial number, or custom fields, with pagination support.

Instructions

List and filter documents with pagination and common Paperless filters such as title search, correspondent, document type, tag, storage path, creation date, archive serial number, and simple custom field filters. Use 'query_documents' for full-text query, structured custom field conditions, or advanced documented /api/documents/ query parameters. IMPORTANT: For queries like 'the last 3 contributions' or when searching by tag, correspondent, document type, or storage path, first use the relevant lookup tool to find the correct ID. Note: Document content is excluded from results by default. Use 'get_document_content' when you need the document text.

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
tagNo
pageNo
searchNo
orderingNo
page_sizeNo
storage_pathNo
correspondentNo
document_typeNo
created__date__gteNo
created__date__lteNo
custom_field_queryNo
archive_serial_numberNo
custom_fields__icontainsNo
archive_serial_number__isnullNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / archive_serial_number
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / archive_serial_number__isnull
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / created__date__gte
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / created__date__lte
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / created__gte
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / created__lte
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / custom_field_query
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / custom_fields__icontains
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: document content is excluded from results by default, and numeric IDs must be resolved via lookup tools first. It does not disclose pagination defaults or ordering behavior, which keeps it from a 5.

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 purpose and filter scope, followed by the alternative-tool routing and the ID-resolution warning. Four sentences, all doing work, though the ALL-CAPS IMPORTANT sentence is dense and could be split for scanability.

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?

For a 14-parameter, zero-annotation-coverage-of-params list tool with no output schema, the description covers routing, ID prerequisites, and the key content-exclusion caveat. Remaining gaps are pagination/ordering defaults and the exact role of the custom_field_query parameter, which is a modest but real omission.

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 0%, so the description must carry the parameter burden. It maps most filter families to intent (title search, correspondent, document type, tag, storage path, creation/latest date bounds, archive serial number, simple custom-field icontains), but leaves 'ordering', 'page', 'page_size', 'archive_serial_number__isnull', and 'custom_field_query' unaddressed — and even suggests custom_field_query use belongs to 'query_documents', leaving that parameter's role ambiguous.

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 ("List and filter documents") and enumerates the supported filter families (title search, correspondent, document type, tag, storage path, creation date, archive serial number, custom fields). It also explicitly distinguishes itself from 'query_documents', so an agent can pick between the two 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 explicit routing: use 'query_documents' for full-text query, structured custom field conditions, or advanced /api/documents/ parameters; use lookup tools first to resolve tag/correspondent/document type/storage path IDs; use 'get_document_content' for the text. That covers when-to-use, when-not-to-use, and prerequisites.

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