Skip to main content
Glama

unassign_email

DestructiveIdempotent

Remove the assignment of a mail (email_id or draft_id): person, lead and organisation are cleared, the mail leaves their timelines, assignment_state becomes 'removed' so rematch_emails does not put it back automatically. Recorded in the audit log. Optional: also_thread=true does the same for the rest of the conversation that is assigned to the SAME records.

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": "unassign_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idNoID of the draft
email_idNoID of the email
also_threadNotrue also unassigns the rest of the conversation assigned to the same records

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / also_thread / description
      Added value: +"true also unassigns the rest of the conversation assigned to the same records"
    • addedInput schema / properties / draft_id / description
      Added value: +"ID of the draft"
    • addedInput schema / properties / email_id / description
      Added value: +"ID of the email"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructive annotation, the description explains exactly what is cleared (person, lead, organisation), that the mail leaves their timelines, that assignment_state becomes 'removed', and that the action is recorded in the audit log. It also clarifies the scope of also_thread to messages assigned to the same records.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded, starting with the action and then adding the essential side effects. Every sentence carries useful information about behavior, state changes, or scope.

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 destructive but idempotent unassignment operation, the definition covers the key effects, the rematch interaction, audit logging, and the thread-level option. No output schema is needed, and the annotations already carry the safety profile.

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 100%, so the schema already documents all parameters. The description adds useful meaning by indicating that the mail is identified by either email_id or draft_id, and it reinforces the exact scope of also_thread.

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 states a specific verb and resource: remove the assignment of a mail identified by email_id or draft_id. It clearly distinguishes the operation from assign_email and rematch_emails by describing the resulting assignment_state and rematch behavior.

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 clear context for using the tool: unassigning a mail and optionally the rest of the conversation, with the important note that rematch_emails will not automatically restore it. It does not explicitly name assign_email as the alternative for the opposite operation, but the usage context is otherwise clear.

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.