Skip to main content
Glama

gmail_summarize

Summarize a Gmail conversation with Gemini from an open thread or search/folder result; returns gemini_unavailable if Gemini in Gmail is unavailable.

Instructions

Summarize a conversation with Gemini in Gmail ('Summarize this email').

Raises gemini_unavailable when the account has no Gemini in Gmail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNoRow index of the conversation (from gmail.list / gmail.search); omit to use the conversation already open.
queryNoRun this Gmail search first and take `index` from its results.
folderNoOpen this folder/label first and take `index` from it.
timeoutNoMax seconds to wait for the summary.
expect_subjectNoSafety check: the conversation's subject must contain this text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses the gemini_unavailable error condition, which is real behavioral context an agent can't get elsewhere. It omits other material traits: that this drives the Gmail UI (opening/targeting a conversation), that it can take up to the 120s timeout, and whether the summary replaces or adds to the view.

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?

Two sentences, front-loaded with the action and followed immediately by the one precondition that matters. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter, zero-annotation, output-schema-less tool, the definition leaves gaps: it never says what comes back (summarized text, a screenshot, a UI state change) or that the operation manipulates the live Gmail view. The error disclosure helps, but not enough to be fully self-sufficient.

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 every parameter (index, query, folder, timeout, expect_subject) is already documented with its interaction rules. The description adds no parameter-level meaning beyond the schema, which is the correct baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and object ('Summarize a conversation with Gemini in Gmail') plus the underlying UI affordance ('Summarize this email'), so the agent knows exactly which action is triggered. It does not, however, distinguish itself from the sibling gmail_gemini, which plausibly covers the same Gemini-in-Gmail surface.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only conditional given is a failure mode ('Raises gemini_unavailable when the account has no Gemini in Gmail'), not a when-to-use rule. Nothing says when to summarize versus simply reading the thread with gmail_read, or how this differs from gmail_gemini.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools