Skip to main content
Glama

Preview a bulk action

bulk_preview
Read-onlyIdempotent

Selects the exact messages a bulk action would act on (explicit uids or criteria, oldest first) and returns a count, senders, a sample and a confirm ref for bulk_apply. Changes nothing. Show the preview to the owner. Needs read and modify (trash: delete); 50 per call on Free, 500 paid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidsNoExplicit messages, all in `folder`
batchNoBatch id from bulk_apply
labelNoaction=label: label or category
actionNo
folderNoSource folder; default INBOX
accountYeslist_accounts id
criteriaNo
scan_fromNoContinues an earlier preview's scan
to_folderNoaction=move

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
capNo
planNo
batchNo
countNo
confirmNo
will_processNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, and the description reinforces 'Changes nothing' while adding genuinely new behavior: required permissions ('Needs read and modify (trash: delete)') and per-call quota limits (50 Free / 500 paid). These are operational facts the annotations cannot express.

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?

Four dense sentences, front-loaded with the core action and effect, then workflow, then permissions and limits. Every sentence carries information, though the permission/quota sentence is tightly packed.

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?

For a read-only preview of a 9-param, nested-schema tool, the description covers action, effect, routing to bulk_apply, owner-facing workflow, permissions and rate limits. An output schema exists so return-value detail is not required, yet the description still sketches the payload.

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?

With 78% schema coverage the schema does most of the work, but the description adds meaning beyond it: the explicit-vs-criteria selection modes, the 'oldest first' ordering, and the scan_from continuation implied by 'a sample and a confirm ref'. It stops short of documenting every field (e.g. the batch param).

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 ('Selects the exact messages a bulk action would act on') plus the selection modes (explicit uids or criteria, oldest first) and the return shape (count, senders, sample, confirm ref for bulk_apply). This clearly separates it from bulk_apply (the executor) and search_messages (the uid source).

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 a clear workflow directive: use this before bulk_apply, then 'Show the preview to the owner.' The confirm ref tied to bulk_apply makes the pairing explicit. No explicit when-not-to-use or alternative, so it stops 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.