Skip to main content
Glama

generate_email_summary

AI-summarize an email thread, identified by its emailId (the email's id from the user's inbox). It summarizes that email and the earlier messages quoted in its body, so pass the newest email of the thread. The first summary is saved on the email record (list_emails then returns it as aiSummary), and later calls for that email, including a teammate's on a shared mailbox, return the saved summary instead of a new one.

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": {
      "emailId": "<emailId>"
    },
    "name": "generate_email_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailIdYesThe id (_id) of the email/thread to summarize, from the user's inbox.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, and the description explains exactly why: the first summary is persisted onto the email record and surfaces as aiSummary via list_emails. It also discloses the caching/idempotency behavior and the shared-mailbox case where a teammate receives the saved summary rather than a fresh generation — context no annotation provides.

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 and scope, and every clause carries information (thread composition, persistence, cache hit, shared mailbox). The sentences are long and parenthetically dense, which slightly slows parsing, but nothing is redundant.

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 single-parameter tool with no output schema, the description covers everything an agent needs: what gets summarized, which id to pass, that a summary is persisted, and that repeat calls return the stored result. No output schema exists, and the return behavior is explained anyway.

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 real meaning: emailId is the email's _id from the user's inbox and specifically the newest email of the thread, not any message in it. That thread-position semantic is absent from the schema.

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+resource ("AI-summarize an email thread") and immediately clarifies scope: the email plus the earlier messages quoted in its body. This distinguishes it from sibling generators like generate_email_reply and generate_email_from_subject without ambiguity.

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 explicit operational guidance: "pass the newest email of the thread," which resolves the main selection decision an agent faces. It does not name an alternative tool or state when-not to use it, so it falls short of a full 5.

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.