Skip to main content
Glama

ingest_email

Destructive

Store ONE e-mail in a mailbox of this tenant without contacting any mail server — for simulations and for the local Thunderbird bridge. Nothing is sent or fetched. Idempotent per mailbox on message_id (a second call with the same message_id returns the stored mail). Without message_id a stable id is derived from sender, subject, date and body. email_account_id defaults to the tenant's first mailbox; the mailbox needs no credentials. Required: from_address. body is stored in full (get_email returns it); body_preview keeps the first 4000 characters. status 'new'. Returns { ingested, email_id, email_account_id, message_id }.

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": {
      "from_address": "<from_address>"
    },
    "name": "ingest_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoPlain-text body (stored in full)
dateNoISO-8601; default now
folderNoMail folder (default INBOX)
subjectNoSubject line
from_nameNoSender display name
message_idNoRFC Message-ID; de-dupe key per mailbox
to_addressNoRecipient email address
from_addressYesSender email address
has_attachmentsNoWhether the mail has attachments
email_account_idNoMailbox (default: the tenant's first mailbox)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / from_address / description
      Added value: +"Sender email address"
    • addedInput schema / properties / from_name / description
      Added value: +"Sender display name"
    • addedInput schema / properties / has_attachments / description
      Added value: +"Whether the mail has attachments"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
    • addedInput schema / properties / to_address / description
      Added value: +"Recipient email address"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

The description discloses a lot beyond the annotations: no mail server contact, no credentials needed for the mailbox, default mailbox is the tenant's first, status is set to 'new', and body is stored in full while body_preview keeps the first 4000 characters. However, it explicitly claims "Idempotent per mailbox on message_id" (and implies the derived-id path is also stable), while the annotations declare idempotentHint=false — a genuine conflict an agent must resolve. The destructiveHint=true is not explained either (nothing about overwriting existing mail is stated).

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?

The key constraint (store only, no server contact) is front-loaded, then idempotency, defaults, field behavior, and return shape follow in a tight sequence. The parenthetical asides are dense but each carries operational information; only the trailing return-shape fragment feels slightly clipped rather than wasteful.

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 10 parameters and no output schema, the description compensates well: it gives the return object shape ({ ingested, email_id, email_account_id, message_id }), the default mailbox behavior, the credential-free requirement, and the truncation rule for body. That is enough for an agent to call it correctly and interpret the result.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all ten parameters including the email_account_id default and message_id de-dupe semantics. The description adds only marginal meaning: that body is stored in full and the required from_address. Baseline 3 is appropriate.

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?

"Store ONE e-mail in a mailbox of this tenant without contacting any mail server" names a specific verb (store/ingest) and resource (one email into a mailbox), and the qualifier "for simulations and for the local Thunderbird bridge" plus "Nothing is sent or fetched" cleanly separates it from send_email and get_email. An agent can identify the operation without opening the schema.

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 states the use context (simulations, local Thunderbird bridge) and gives a negative rule ("Nothing is sent or fetched") that discourages using it where real delivery is expected. It does not explicitly name competing siblings such as send_email or ingest_message, so the routing is implied rather than spelled out.

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.