Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Get task

get_task
Read-onlyIdempotent

Follow a Paperless background task by UUID to check its pending/started/success/failure/revoked state, error message, and document IDs; optionally poll up to 30 seconds for the result.

Instructions

Follow a Paperless background task, such as an upload being processed, to its result.

Reports state (pending, started, success, failure, revoked), the error message of a failed task and the document ids once known. With wait_seconds it polls until the task ends or the wait (at most 30 s in total) is used up; wait says which: finished, timed_out (still running, call again) or not_requested. Needs the permission to view tasks in Paperless.

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": {
      "task_id": "<task_id>"
    },
    "name": "get_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesThe task id (a UUID) that an upload or other background work returned.
wait_secondsNoWait up to this many seconds for the task to end; more than 30 is cut to 30. 0 reads it once.

Output Schema

NameRequiredDescriptionDefault
waitYesnot_requested: wait_seconds was 0, so the task was read once; finished: the task ended within the wait (see state); timed_out: still running after waited_seconds, ask again.
stateYespending, started, success, failure or revoked.
createdYes
messageYesWhy the task failed; null otherwise.
task_idYes
finishedYesNull while the task is running.
task_typeYesE.g. consume_file (an upload).
document_idsYesThe documents the task created or changed, once known; may be several.
waited_secondsYes

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?

Beyond the readOnly/idempotent annotations, it discloses the states returned (pending, started, success, failure, revoked), that error messages and document ids are included once available, the 30-second polling ceiling, the three possible 'wait' outcomes including the actionable 'timed_out – call again', and the required task-viewing permission.

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?

Three sentences, front-loaded with the purpose, then behavior, then the permission prerequisite. Dense but every clause carries information; the second sentence is long and packs several facts, though nothing reads as filler.

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?

An output schema exists, yet the description still summarizes the returned state/error/document-id fields, adds polling limits and permission requirements, and tells the agent what to do on timeout. For a two-parameter read tool this leaves no meaningful gap for correct invocation.

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% and already documents task_id as a UUID and wait_seconds' default/cap, so baseline would be 3. The description adds meaning the schema lacks: how waiting terminates and what each resulting 'wait' value implies for the agent (call again on timed_out), which is a genuine interpretation of the parameter's effect.

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?

The first sentence gives a specific verb and resource: 'Follow a Paperless background task ... to its result', with an example (an upload being processed). No sibling tool handles background tasks, and the description makes clear this is about polling task state rather than fetching documents or taxonomy, so an agent can select it without opening the 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?

The description establishes the entry condition clearly – a task id returned by an upload or other background work – and explains when to set wait_seconds versus reading once. It gives no explicit exclusions or named alternatives, which isn't a serious gap given no sibling covers tasks, but keeps it short of a 5.

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