Skip to main content
Glama
ZatesloFL

Google Workspace MCP Server

by ZatesloFL

get_gmail_messages_content_batch

Retrieve content of multiple Gmail messages in one batch request. Supports up to 25 messages, choosing between full content or metadata, streamlining email data extraction.

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 with separators.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNofull
message_idsYes
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
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 of behavioral disclosure. It effectively describes key behavioral traits: it's a read operation (implied by 'retrieves'), has a batch limit (25 messages), mentions a technical rationale (SSL exhaustion), and specifies the return format (formatted list with separators). It doesn't cover error handling or authentication details, but provides substantial context beyond basic functionality.

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 perfectly structured and front-loaded: the first sentence states the core purpose, the second adds important constraints, followed by well-organized Args and Returns sections. Every sentence earns its place with no wasted words.

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?

Given the tool's moderate complexity (batch operation with constraints), no annotations, and the presence of an output schema (implied by Returns section), the description is complete. It covers purpose, constraints, all parameters with semantics, and return format, providing everything needed for correct tool selection and 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?

With 0% schema description coverage, the description fully compensates by explaining all three parameters: message_ids (list of IDs with max 25), user_google_email (required user email), and format (enum values with clear semantics: 'full' includes body, 'metadata' only headers). This adds crucial meaning 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 tool's purpose with specific verbs ('retrieves the content of multiple Gmail messages') and distinguishes it from siblings like 'get_gmail_message_content' (singular) and 'get_gmail_threads_content_batch' (threads vs messages). It specifies the batch nature and resource scope (Gmail messages).

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 provides clear context for when to use this tool (batch retrieval of up to 25 messages) and mentions a technical constraint (preventing SSL connection exhaustion). However, it doesn't explicitly state when NOT to use it or name specific alternatives like the singular version or thread-based batch tool, which would elevate it to a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server