Skip to main content
Glama

mailgate_clear_messages

Delete all stored messages for an inbox before a fresh test run; requires an admin token.

Instructions

Delete all stored messages for an inbox before starting a fresh test run (requires MAILGATE_ADMIN_TOKEN).

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": {
      "email": "<email>"
    },
    "name": "mailgate_clear_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesRecipient inbox address to purge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden and does well: it discloses that ALL stored messages are destroyed, that the action is scoped per inbox, and that MAILGATE_ADMIN_TOKEN is required. It stops short of stating irreversibility, behavior when the inbox is empty or nonexistent, or the response shape.

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?

A single sentence with zero filler; the destructive action is front-loaded and the operational condition and auth prerequisite follow immediately.

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 one-parameter destructive tool with no output schema, the definition covers purpose, precondition, and auth requirement. Only edge-case behavior (nonexistent inbox, partial failure) is left unstated, which is a minor gap.

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 'email' parameter is fully described there. The description only restates the target as 'an inbox,' adding no format, validation, or canonicalization details beyond the schema.

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 (delete/clear) and resource (all stored messages for one inbox) with an explicit scope qualifier. An agent can easily distinguish this purge operation from siblings such as mailgate_list_messages or mailgate_simulate_email without opening any schema.

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 usage context: run it before starting a fresh test run. It does not explicitly state when not to use it or name an alternative for partial cleanup, but the destructive purpose makes the appropriate usage obvious.

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