Skip to main content
Glama

assign_email

DestructiveIdempotent

Assign a mail AFTER THE FACT to a person (contact_id), a lead (lead_id) or an organisation (account_id) — e.g. a mail sent with send_email before the contact existed, or an incoming mail with assignment_state 'none'/'ambiguous'. Required: email_id (incoming/fetched mail from list_emails) OR draft_id (mail sent via send_email, from list_email_history), and exactly one of contact_id / lead_id / account_id. The mail then appears in that record's communication timeline with its ORIGINAL date; who assigned it and when is recorded (audit log, record history). Optional: also_thread=true assigns the other mails of the same conversation too (same subject without Re:/AW:/Fwd: AND the same counterpart address) — mails already assigned to someone else are left alone and listed as skipped. Needs write access to the mailbox (incoming) or visibility of the sent mail.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "assign_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
lead_idNoID of the lead
draft_idNoID of the draft
email_idNoID of the email
account_idNoID of the account (company)
contact_idNoID of the contact
also_threadNotrue also assigns the other mails of the same conversation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / also_thread / description
      Added value: +"true also assigns the other mails of the same conversation"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / draft_id / description
      Added value: +"ID of the draft"
    • addedInput schema / properties / email_id / description
      Added value: +"ID of the email"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: the mail keeps its ORIGINAL date in the timeline, who assigned it and when is written to the audit log and record history, and the also_thread matching rule (same subject minus Re:/AW:/Fwd: AND same counterpart address) with already-assigned mails skipped and reported. It also states the access requirement (write access to the mailbox, or visibility of the sent mail). Only the shape of the 'skipped' report is left unspecified.

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, then required inputs, then optional behavior — a sensible order with no filler sentences. It is, however, one dense em-dash-laden block whose nested parentheticals (subject normalization, skip behavior, permissions) slow scanning; a short bulleted split would read better.

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?

With no output schema and a 100%-covered schema, the description supplies everything that would otherwise be missing: the exactly-one-of rule, thread expansion behavior, timeline/audit side effects, and permission prerequisites. Nothing an agent needs to call it correctly is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds cardinality constraints the schema does not express at all: email_id OR draft_id must be supplied, and exactly one of contact_id / lead_id / account_id. It also defines the matching semantics of also_thread, which the schema only labels as 'true also assigns the other mails of the same conversation'.

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 ('Assign a mail AFTER THE FACT') and enumerates the three assignment targets (contact_id, lead_id, account_id). The 'AFTER THE FACT' framing plus the explicit source tools (list_emails, list_email_history) separates it cleanly from send_email and from its inverse unassign_email.

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 concrete triggering scenarios: a mail sent with send_email before the contact existed, or an incoming mail with assignment_state 'none'/'ambiguous'. It also names where each ID comes from (email_id from list_emails, draft_id from list_email_history), so the agent knows which sibling to call first.

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.