Skip to main content
Glama

process_mail_account

Destructive

Trigger Paperless mail processing for a specified account to consume matching emails according to enabled mail rules.

Instructions

Manually run Paperless mail processing for one account. This can consume matching mails according to enabled Paperless mail rules.

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": {
      "id": "<id>"
    },
    "name": "process_mail_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.1

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=true; the description adds real context by explaining that processing "can consume matching mails according to enabled Paperless mail rules," which tells the agent what the destructiveness actually means. It still omits whether rules must be enabled beforehand, whether a result summary is returned, or whether running it twice is harmful.

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?

Two short sentences with the action front-loaded and the side effect immediately after; nothing is padding. It is efficient, though it spends its limited words on side effects rather than on the required parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter destructive action with no output schema, the description covers what the tool does and that mails can be consumed, which is the essential warning. It leaves gaps on prerequisites (must rules exist and be enabled?), what the caller gets back, and how the required account id is obtained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single required parameter "id", so the description carries the burden and does not meet it: "for one account" only loosely implies the id identifies a mail account, and nothing clarifies the expected value, source, or range (the schema allows negative integers).

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?

"Manually run Paperless mail processing for one account" states a specific action and a specific target (one mail account), which distinguishes it from the read-only get_mail_account sibling. It stops short of explicitly naming an alternative, but the verb+resource pairing is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Manually run" implies this is an on-demand trigger of processing that would otherwise happen automatically, which is implied usage guidance. There is no explicit statement of when to prefer this over inspecting rules or listing accounts, and no preconditions or exclusions are given.

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