Skip to main content
Glama

Report a thread as spam

report_spam

Moves a thread of a mailbox into its Spam folder, where it stays readable and can be taken back out, and blocks its sender: their next message is filed in Spam too, without anybody being asked again. Spam is emptied 30 days after a thread lands there, and that deletion is final. Threads of a helpdesk queue have no Spam folder and are refused: file_conversation with "trash" throws them away instead. To report several threads, give conversation_id the list of their ids, in ONE call rather than one call per thread: the answer then lists in "results" the outcome of each thread in the order given ("ok", with its "result" or its "error") and counts "succeeded" and "failed". Each thread passes exactly the checks it would alone, so one refused or out of reach ("not found") leaves the others done, and the call is an error only when none succeeded.

Input Schema

NameRequiredDescriptionDefault
conversation_idYesThe id of the conversation, as list_conversations gives it, or a list of up to 50 ids to do the same to every one of them in a single call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: reversible move, persistent sender blocking, a 30-day retention window whose deletion is final, refusal on helpdesk queues, and partial-failure semantics where one bad id doesn't abort the rest and the call errors only when none succeed. It even describes the per-thread outcome fields, which no output schema covers.

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?

Front-loaded with the core action and blocked into distinct concerns (effect, retention, helpdesk exclusion, batching), with no filler sentences. It is dense and long for a single paragraph, and the batch/return-shape material could be split for scanability, but the length is justified by the destructive and batch semantics it must convey.

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 one required parameter, no output schema, and no annotations, the description fills every gap an agent needs: what it changes, reversibility, a hard deletion deadline, the refusal case and its alternative, and the exact batch response semantics including partial failure. Nothing material is left to inference.

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 string-or-list-of-50 shape is already documented, putting the baseline at 3. The description adds real meaning beyond that: the list form is for batching in one call, and it explains how per-element results are ordered and reported and that the call fails only if all fail.

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 and spells out exactly what happens: the thread moves to Spam, the sender is blocked, and the move is reversible. It also carves out the sibling boundary by naming file_conversation with "trash" for helpdesk threads, so the agent can distinguish report_spam from file_conversation and delete_conversation without opening schemas.

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?

Explicit when-not guidance: helpdesk queue threads have no Spam folder and are refused, with the named alternative file_conversation("trash"). It also gives positive usage guidance for the batch case — pass a list of ids in ONE call rather than one call per thread — which is exactly the decision an agent needs to make.

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