Skip to main content
Glama

Sergio by Serviche

Undo a 'not in the email' verdict

undo_email_fact_correction
Idempotent

Removes one 'not in the email' verdict from a parsed email, as the facts-review panel's Undo does. email_id is the email the verdict was made on and correction_id comes from the correction you read. It only removes a verdict this way; a corrected value is changed by correcting the field again. Only 'not in the email' verdicts can be undone. Pass the same idempotency_key when retrying; a repeat after it is gone answers success.

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_id": "<email_id>",
      "correction_id": "<correction_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "undo_email_fact_correction"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelNoemail
email_idYes
correction_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description still adds real behavior: reuse the same idempotency_key on retries, and a repeat after removal 'answers success'. It also scopes the operation to one verdict type, which the annotations do not convey. Missing is any note on permissions or auth requirements for the removal.

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 action and the UI analogue, then parameter meaning, then the retry rule. Four tight sentences with no filler; 'It only removes a verdict this way' and 'Only not in the email verdicts can be undone' overlap slightly on the same constraint.

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 four-parameter mutation with no output schema, the description covers the trigger, the exclusion, both id UUIDs, and idempotency retry behavior. The only material omission is the channel parameter (enum, defaults to email), which an agent must otherwise infer from the schema.

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 only 25% (idempotency_key alone is documented in-schema), so the description has to compensate, and largely does: it defines email_id as the email the verdict was made on and correction_id as coming from 'the correction you read', plus retry semantics for idempotency_key. The channel parameter is never mentioned, leaving one of four undocumented.

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 ('Removes one not in the email verdict from a parsed email') and anchors it to a concrete UI analogue ('as the facts-review panel's Undo does'). It clearly separates itself from the sibling that does the opposite job, correct_email_facts.

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?

Explicitly names the alternative path: 'a corrected value is changed by correcting the field again', and states the precondition 'Only not in the email verdicts can be undone'. An agent knows both when to call this and when to route elsewhere.

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