Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Run saved view

run_saved_view
Read-onlyIdempotent

Retrieve documents from a Paperless saved view, applying its filter rules and sort order with paged results for browsing.

Instructions

Find the documents of a saved view, as the Paperless web UI lists them.

The filter rules of the view become the same filters search_documents takes, and the view's sort order applies; the rows and paging are those of search_documents. A rule that cannot be run (an unknown type, a value that does not fit) is an error naming the rule type; fix the view with update_saved_view. count is the total; pass next_page as page to see more. The page size of the view is a setting of the web UI and is not used.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "view": "<view>"
    },
    "name": "run_saved_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, from 1.
viewYesThe saved view: its name or id.
page_sizeNoDocuments per page, at most 100.

Output Schema

NameRequiredDescriptionDefault
pageYes
countYesHow many documents match in total.
noticesNoQuery syntax the search index reads as plain text, with the working alternative; empty for a clean query. Paperless itself reports no error for these.
documentsYes
next_pageYesThe next page, null on the last one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent safety, and the description adds real behavior beyond them: a malformed rule produces an error naming the rule type, with update_saved_view as the fix path, plus how paging works (count is total, pass next_page as page). It also preempts a likely confusion by noting the view's own page-size setting is ignored.

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 core purpose, then details in a logical order (filters, sort, paging, failure mode, page-size caveat). Slightly dense multi-clause sentences, but no filler and every sentence carries information.

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?

With an output schema present, return values needn't be described, yet the description still flags count and next_page because they drive the next call. Error behavior and remediation are covered, so nothing an agent needs to invoke 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 100%, so the baseline is 3, but the description adds meaning beyond it by tying 'page' to the returned next_page value and clarifying that page_size overrides the view's stored page-size setting. The 'view' parameter's name-or-id duality is left to the schema.

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 ('Find the documents of a saved view') and immediately frames it against the sibling mechanism it delegates to ('the same filters search_documents takes'). An agent can distinguish this from search_documents without opening either schema.

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?

Explains the operational context clearly: the view's filter rules and sort order apply, and rows/paging follow search_documents semantics. It gives remediation guidance (fix with update_saved_view) but never explicitly states the exclusion case, e.g. that ad-hoc filtering without a saved view should go to search_documents.

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