Skip to main content
Glama

list_email_history

Read-only

List sent/draft emails (email_drafts) for a lead (lead_id), a person (contact_id) or an organisation (account_id) — or with unassigned=true the SENT mails that belong to no record at all (e.g. sent with send_email before the contact existed); assign them with assign_email (draft_id = id). Each row carries assignment_state/assignment_candidates.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of entries to return
lead_idNoID of the lead
account_idNoID of the account (company)
contact_idNoID of the contact
unassignedNotrue = list sent mails that belong to no lead, contact or account

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
    • addedInput schema / properties / unassigned / description
      Added value: +"true = list sent mails that belong to no lead, contact or account"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only and closed-world behavior; the description adds that unassigned only returns SENT mails, explains why such mails exist, and notes that each row carries assignment_state/assignment_candidates. It still omits default limit, ordering, and pagination behavior.

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?

A single compact sentence front-loads the operation and selector modes, then adds the unassigned special case and follow-up action without filler. Every clause carries useful information despite the dense punctuation.

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?

The description covers selector modes, unassigned semantics, follow-up behavior, and row metadata even though there is no output schema. The notable gap is what a no-argument, non-unassigned call returns and the default limit behavior, which matters because all five parameters are optional.

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 baseline is 3, but the description adds meaning by mapping IDs to lead/person/organisation and elaborating unassigned beyond the schema's boolean text. It does not clarify whether the selector parameters are mutually exclusive or what a no-argument call returns.

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?

Lists email_drafts with specific selector modes (lead_id, contact_id, account_id, or unassigned=true) and distinguishes the unassigned set as SENT mails belonging to no record. That is a specific verb and resource with a clearly described special scope, not a restatement of the tool name.

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?

Explains how to use each selector and the special unassigned mode, including the follow-up remediation via assign_email with draft_id = id. It does not state when not to use this tool or contrast it with generic history siblings, so it falls short of fully explicit when/when-not guidance.

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.