Skip to main content
Glama

Mail: Correct classification

mail_correct_classification
Destructive

Tell the classifier it got a message wrong — set the right category and urgency. The correction is stored as a human override, which is what the triage list and the digests then read. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "message_id": "<message_id>",
      "category": "<category>"
    },
    "name": "mail_correct_classification"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryNo
urgencyNo
categoryYes
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the correction is persisted as a human override consumed by the triage list and digests, and — critically — that the call is proposed rather than executed, returning status='confirmation_required' with an action_id and plan_token until confirm_action is called. That execution model is not derivable from readOnlyHint/destructiveHint and materially changes how an agent must call it.

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 tight sentences front-load the purpose and consequence, then a clearly separated confirmation block. The all-caps emphasis is slightly noisy but the content is dense and every line earns its place.

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?

The confirmation lifecycle is fully covered, which is the hardest part. But for a 4-parameter destructive mutation with zero schema descriptions and no output schema, the definition leaves message_id format and the optional summary/urgency semantics undocumented, so an agent still has to guess at half the inputs.

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 description coverage is 0%, so the description must compensate, and it does name the two semantically loaded fields (category, urgency) and their role. However, message_id (a integer|string union) and the optional summary string are never explained, and it doesn't say what happens to urgency if omitted or what an override does to a prior one.

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?

The description gives a specific verb and resource ('Tell the classifier it got a message wrong — set the right category and urgency') and frames the result as a stored human override, which distinguishes it from manual mutation siblings like mail_label or mail_set_flag.

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?

The trigger is clear: use it when the classifier's category or urgency is wrong. It does not state exclusions, e.g. whether to prefer mail_label when the agent merely wants its own tagging rather than overriding the classifier, but the intended context is unambiguous.

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