Skip to main content
Glama

Get email insights

get_email_insights
Read-only

Get the best-practice report for one email, computed when it was sent: per-check results (id, severity, pass/fail, points deducted) and a 0-10 score. The score measures compliance with sending best practices — it is NOT an inbox-placement probability. To improve it, fix what each failing check describes; never 'optimize' by disabling open/click tracking, removing unsubscribe links, or stripping legitimate content.

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>"
    },
    "name": "get_email_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
email_idYesEmail id returned by send_email

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds a real behavioral trait beyond them: the report is a frozen snapshot 'computed when it was sent', not a live measurement. It also warns against the misoptimization trap (disabling tracking, removing unsubscribe links). It stops short of describing error behavior for an unknown or unsent email_id.

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?

Three sentences, each earning its place: what it returns, what the score means, and how to act on it. The return contents and the interpretation caveat are front-loaded and there is no filler.

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?

There is no output schema, so the description carries the burden of describing the return value and does so concretely (per-check fields plus a 0-10 score). For a single-item, read-only getter with one fully documented parameter, nothing essential to correct invocation is missing.

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?

Single parameter with 100% schema description coverage, including a UUID format and the note that it comes from send_email, so the schema does the heavy lifting. The description only says 'one email' and adds no new semantics such as where to obtain the id or whether drafts are accepted. Baseline 3 applies.

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 ('Get the best-practice report for one email') and enumerates exactly what the report contains: per-check results (id, severity, pass/fail, points deducted) and a 0-10 score. It also explicitly disambiguates from the sibling concept of deliverability/inbox placement, which is a genuinely different resource in this tool set.

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?

Gives clear interpretive context and a scope statement ('computed when it was sent') plus directional guidance on acting on results ('fix what each failing check describes'). It distinguishes itself implicitly from get_deliverability by stating the score is NOT an inbox-placement probability, but it never names an alternative tool or an explicit when-not-to-use condition.

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.