Skip to main content
Glama

Sort a Paperless document

sort_paperless_document

Sort a Paperless inbox document by adding it as a new household item, attaching it to an existing item, dismissing it, or restoring it.

Instructions

Does something with one document from the household's Paperless (documentId from paperless_inbox): action "add" makes a new thing from it (named after the document unless name is given; locationId optional), "attach" puts it on an existing thing (itemId — check with the person which one; paperless_inbox's maybeFor is only a guess), "dismiss" takes it out of the inbox (not about a thing), "restore" puts a dismissed one back. Adding or attaching copies the file into Ferret when the household keeps copies (it's then read for suggested details, which get_item shows a little later — confirm them before applying) and always adds a link back to Paperless. Returns the thing, whether the file was copied, and why not.

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": {
      "documentId": "<documentId>",
      "action": "<action>"
    },
    "name": "sort_paperless_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoadd: the new thing's name (default: the document's title)
actionYes
itemIdNoattach: the thing to put it on
documentIdYesThe document's number in Paperless, from paperless_inbox
locationIdNoadd: where the new thing is kept

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2026.11.23

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare it is a non-read-only, non-destructive, closed-world mutation; the description goes well beyond that by disclosing the side effects (the file is copied into Ferret when the household keeps copies, and a link back to Paperless is always added) and the delayed availability of extracted details via get_item. It does not cover permissions/auth or what 'why not' reasons look like, so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is information-dense and front-loads the action list, but it is written as a single run-on sentence with nested parentheticals that make it harder to parse than necessary. Nothing is truly redundant, yet the structure could be tightened into a short action list plus a side-effects sentence.

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 takes on return-value duty and does so ('returns the thing, whether the file was copied, and why not'), and it explains the async follow-up through get_item for a tool whose effects are otherwise invisible. The only real gap is that failure or rejection behavior beyond 'why not' is 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 80% and the schema already documents name, itemId, documentId, and locationId. The description adds real meaning on top: name defaults to the document title, locationId is optional and only for add, and itemId must be verified with the person rather than taken from maybeFor. The action enum itself is only explained in prose, which the description does cover action-by-action.

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?

The description names the resource (one Paperless document, documentId from paperless_inbox) and enumerates the four concrete modes: add, attach, dismiss, restore. The opening phrase 'Does something with one document' is vague, but the per-action clauses immediately disambiguate it, and it distinguishes itself from paperless_inbox and get_item by naming both.

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?

Each action is given a use condition: add creates a new thing, attach puts it on an existing thing (with the warning to check with the person because paperless_inbox's maybeFor is only a guess), dismiss removes from the inbox and is explicitly 'not about a thing', restore undoes dismissal. It also tells the agent to confirm suggested details before applying, which is genuine when/when-not guidance.

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