Skip to main content
Glama

get_document_ai_suggestions

Read-only

Get LLM-based suggestions for a document: title, existing correspondents/tags/types/storage paths, and names for missing objects. Requires AI enabled in Paperless.

Instructions

Get LLM-based suggestions for a document: a title, existing correspondents/tags/document types/storage paths (IDs), and suggested_* NAMES for objects that don't exist yet, plus dates. Requires AI to be enabled in Paperless — otherwise it fails with 'AI is required for this feature'. For classifier suggestions that work without AI, use get_document_suggestions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe document ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses that the tool requires AI to be enabled and fails with a specific error otherwise. It also reveals the shape of its output (IDs for existing objects, suggested names for new ones), which is useful behavioral context.

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

Conciseness5/5

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

The description is dense but not bloated: the first sentence gives the core action and result contents, the second adds the prerequisite and failure behavior, and the third routes to the correct alternative. Every sentence earns its place.

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 only one simple parameter and no output schema, the description provides enough context: what suggestions are returned, what prerequisite must hold, what happens if it doesn't, and which sibling to use instead. Nothing essential is missing.

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 coverage is 100% and the single id parameter is already documented as 'The document ID', so the description adds little parametric meaning. It refers to 'a document' in passing but does not need to elaborate given the schema covers it.

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 description opens with a specific verb and resource ('Get LLM-based suggestions for a document') and enumerates exactly what is returned. It also distinguishes this tool from its closest sibling, get_document_suggestions, by naming the AI/non-AI difference.

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?

It states the AI-enabled prerequisite and the exact failure mode if unmet, and explicitly instructs to use get_document_suggestions for classifier suggestions that work without AI. The when-to-use and when-not-to-use guidance is unambiguous.

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

Deploy Server

Other Tools