Skip to main content
Glama

Sergio by Serviche

Correct a field Sergio read off an email

correct_email_facts
Idempotent

Corrects one field Sergio read off a platform email, as crossing it out or retyping it in the parsed-email overlay does: field_key is the field (read the email's parsed fields first), and pass exactly one of corrected_value (the right value) or verdict 'not_in_source' (the email never said it). teach false means just this email, never the parsing rule. channel 'sms' for a platform's texted notice. This fixes the email, its booking and the linked contact. Pass the same idempotency_key when retrying; a repeat returns the first correction.

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>",
      "field_key": "<field_key>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "correct_email_facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
teachNo
channelNo
verdictNo
email_idYes
field_keyYes
corrected_valueNo
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.4/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 adds the non-obvious write scope: the correction also mutates the booking and linked contact, not just the email. It also explains the practical meaning of idempotency ('a repeat returns the first correction') and how `teach` widens the blast radius to the parsing rule, which no annotation conveys.

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 purpose, then constraints and retry mechanics, with no filler sentences. The nested parentheticals make some sentences long and harder to scan, but every clause carries information an agent needs.

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 7-parameter mutation with no output schema, the definition covers preconditions, argument exclusivity, mutation side effects, scope control via teach, and retry idempotency. Only the `wrong_mapping` verdict and a pointer to the undo tool are absent, which are minor against everything supplied.

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 14% (only idempotency_key is documented), so the description has to carry the load and largely does: it defines field_key, the corrected_value vs verdict choice as mutually exclusive, teaches' scope, and channel's 'sms' case. The gap is the `wrong_mapping` enum value, which is never mentioned or explained, and the unaudited email_id.

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 definition names a specific verb and resource ('Corrects one field Sergio read off a platform email') and states the blast radius ('This fixes the email, its booking and the linked contact'), which an agent could not infer from the name or annotations. The parsed-email-overlay analogy makes the effect concrete without any sibling schema lookup.

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?

It gives real preconditions ('read the email's parsed fields first', 'pass exactly one of corrected_value or verdict not_in_source') and conditional guidance for teach (false = this email only, never the parsing rule) and channel ('sms' for a platform's texted notice). It never names the reverse operation (undo_email_fact_correction) or a sibling correction tool, so the agent gets conditions but no explicit 'use X instead' routing.

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