Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

get_gmail_messages_content_batch

Fetch content of up to 25 Gmail messages in one batch request. Specify message IDs, user email, and format to get subject, sender, date, recipients, and body.

Instructions

Retrieves the content of multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion.

Args: message_ids (List[str]): List of Gmail message IDs to retrieve (max 25 per batch). user_google_email (str): The user's Google email address. Required. format (Literal["full", "metadata"]): Message format. "full" includes body, "metadata" only headers.

Returns: str: A formatted list of message contents including subject, sender, date, Message-ID, recipients (To, Cc), and body (if full format).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNofull
message_idsYes
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the batch behavior, the upper bound of 25 messages, the rationale behind that bound, and the difference between 'full' and 'metadata' formats. It also clarifies that the return value is a string containing a formatted list of message fields, which is useful behavioral detail.

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?

The description is front-loaded with the primary purpose, immediately followed by the critical batch limit and rationale. The structured Args and Returns sections are compact and every sentence adds value; there is no filler or redundancy.

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 batch retrieval tool with three parameters, the description covers purpose, limits, parameter meaning, and return shape. Even though an output schema exists, the description's explicit Returns details remove ambiguity about what the formatted string contains. No critical information is missing for safe invocation.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must fully compensate for the schema. It explains all three parameters: message_ids (list of IDs, max 25), user_google_email (required), and format (enumerated values with meaning). This is complete and adds meaning well beyond the bare 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?

The description clearly states the action ('Retrieves the content of multiple Gmail messages') and the key scoping detail ('in a single batch request'). This distinguishes it from singular tools like get_gmail_message_content and, by saying 'messages' rather than 'threads', from get_gmail_threads_content_batch.

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?

The description gives clear context for when batch retrieval is appropriate, noting the 25-message limit and the reason ('to prevent SSL connection exhaustion'). It does not explicitly name alternatives or state when not to use it, but the context is strong enough for an agent to infer the intended use case.

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