Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

get_gmail_messages_content_batch

Retrieve content from multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion, with options for full content or metadata-only formats.

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
message_idsYes
user_google_emailYes
formatNofull

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 the batch size limitation (25 messages) and the purpose behind it ('to prevent SSL connection exhaustion'), which are important operational constraints. However, it doesn't mention authentication requirements, rate limits, or error handling for invalid message IDs.

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 efficiently structured with a clear purpose statement, operational constraint, and organized parameter/return sections. Every sentence adds value: the first establishes the core function, the second provides critical usage constraint, and the parameter/return sections offer necessary details without 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 read operation with 3 parameters and an output schema, the description is complete. It explains the tool's purpose, constraints, all parameters, and return format. The presence of an output schema means the description doesn't need to detail the return structure beyond what's already provided in the 'Returns' section.

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?

With 0% schema description coverage, the description must compensate. It provides clear explanations for all three parameters: message_ids ('List of Gmail message IDs to retrieve'), user_google_email ('The user's Google email address'), and format ('Message format. "full" includes body, "metadata" only headers'). The format parameter explanation is particularly valuable for understanding the enum options.

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 specific action ('retrieves the content of multiple Gmail messages'), resource ('Gmail messages'), and scope ('in a single batch request'). It distinguishes from sibling tools like 'get_gmail_message_content' (single message) and 'get_gmail_threads_content_batch' (threads rather than messages).

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('in a single batch request') and provides clear exclusions/constraints ('Supports up to 25 messages per batch to prevent SSL connection exhaustion'). It implicitly distinguishes from single-message retrieval tools by emphasizing batch capability.

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/c0webster/hardened-google-workspace-mcp'

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