Skip to main content
Glama

Sergio by Serviche

Put an email on the right conversation

link_email_to_conversation
Idempotent

Links an unlinked email to a conversation, as the inbox's Link does: email_id is the unlinked email, conversation_id the thread it belongs to (read conversations). The email's contact follows the thread's own contact. An email already on another thread is refused here; who its sender really is moves with move_address_to_contact. Pass the same idempotency_key when retrying; a repeat answers that it is already linked.

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>",
      "conversation_id": "<conversation_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "link_email_to_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
email_idYes
client_idNo
conversation_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?

Adds real behavior beyond the annotations: the refusal path for already-linked emails, the side effect that the email's contact follows the thread's own contact, and the retry reply ("a repeat answers that it is already linked"). The idempotency guidance is partly redundant with idempotentHint=true, and permission or auth requirements are not mentioned, keeping it below a 5.

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?

Dense but every clause carries information: purpose, both ids, refusal rule, alternative tool, and retry protocol. The single packed paragraph is front-loaded with purpose, though it could be split for scanability.

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?

With no output schema and a mutation tool, the description covers the important behavior (refusal case, contact side effect, idempotent retry). Only the client_id parameter and any hint about the response payload are left unaddressed.

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% (just idempotency_key), so the description must compensate; it explains the meaning of email_id and conversation_id and points to read for finding conversations, plus retry semantics for idempotency_key. The optional client_id is never explained in either schema or description, leaving one gap.

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 ("Links an unlinked email to a conversation") and anchors it to a familiar action ("as the inbox's Link does"), which distinguishes it from siblings like move_address_to_contact and read without needing their 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?

Gives both the positive case (email_id is the unlinked email, conversation_id the thread) and an explicit refusal condition ("An email already on another thread is refused here"), plus the correct alternative for the related but different task ("who its sender really is moves with move_address_to_contact").

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