Skip to main content
Glama

Re-match a mailbox's email to jobs

reprocess_emails
Destructive

Admins, and managers for mailboxes on their profiles. Re-reads a mailbox's ingested email with today's matcher and reports every email whose job would change (move, unlink, link). A dry run unless apply is true; apply works in batches of limit and returns how many remain. Applying detaches and connects exactly as link_job_email and unlink_job_email do. Run the dry run first and confirm with the user before apply.

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": {
      "emailAccountId": "<emailAccountId>"
    },
    "name": "reprocess_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow far back to look; defaults to 183.
applyNoMake the changes. Omit for a dry run that only reports them.
kindsNoWhich changes to apply; defaults to all three.
limitNoMost changes to apply in this call; defaults to 100.
emailAccountIdYesThe mailbox whose ingested email to re-match (id from list_email_accounts).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description still adds real value beyond them: dry-run default, batched application bounded by `limit`, a 'how many remain' return signal, the permission requirement, and the equivalence to link_job_email/unlink_job_email semantics. It does not address re-run/idempotency consequences or failure modes for an invalid mailbox id.

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?

Four short sentences with purpose first, then authorization scope, then dry-run/batch behavior, then the safety instruction. No filler; the only blemish is the elliptical opening fragment listing who may call it, which still conveys the needed authorization fact.

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?

For a destructive, permissioned mutation with no output schema, the definition covers authorization, default mode, batching, restart semantics via the remaining count, and the resulting graph changes. Minor gaps are error behavior and whether re-running after apply is safe, but nothing essential to a correct first invocation 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 the schema lacks: `apply` implies a full dry-run mode when omitted, and `limit` governs batching with a remaining-count returned between calls. Combined with the (move, unlink, link) enumeration echoed in the purpose, this meaningfully extends the structured fields.

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 ('Re-reads a mailbox's ingested email with today's matcher') and scopes the output precisely ('reports every email whose job would change (move, unlink, link)'). This clearly separates it from the point-edit siblings link_job_email and unlink_job_email, which it references as equivalent per-change effects.

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?

Gives explicit operating procedure: 'Run the dry run first and confirm with the user before apply,' plus audience scoping ('Admins, and managers for mailboxes on their profiles'). It does not explicitly say when to prefer manual link_job_email/unlink_job_email instead, but the sequencing and confirmation guidance is clear enough for correct use.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources