Skip to main content
Glama
redesignhealth

Google Workspace MCP Server

get_gmail_threads_content_batch

Batch fetch the content of up to 25 Gmail threads in a single request, preventing SSL connection exhaustion. Provide thread IDs and user email to get a formatted list of thread contents.

Instructions

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

Args: thread_ids (List[str]): A list of Gmail thread IDs to retrieve. The function will automatically batch requests in chunks of 25. user_google_email (str): The user's Google email address. Required.

Returns: str: A formatted list of thread contents with separators.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_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?

Since annotations are not provided, the description carries the full burden. It discloses key behaviors: automatic batching in chunks of 25, the 25-thread limit rationale, and the return format as a formatted string with separators. It does not mention authentication, error handling, or side effects, but for a read-only batch retrieval, this is reasonable coverage.

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 concise and well-structured: opening one-sentence purpose, then a short behavioral note, then Args and Returns sections. Every sentence contributes new information without redundancy or fluff.

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

Completeness4/5

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

The description covers the essential aspects: purpose, batch limit, parameter semantics, and return type. It also includes behavioral nuance about SSL exhaustion. It does not cover error scenarios or require prerequisites, but given the output schema exists and the tool is part of a larger Gmail suite, this is adequately complete.

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 0%, so the description must compensate. It provides clear explanations for both parameters: thread_ids is a list of Gmail thread IDs with automatic batching, and user_google_email is the required user email. This adds meaning beyond the raw schema, though it could give more detail on ID formats or potential validation, but it is sufficient.

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 it 'Retrieves the content of multiple Gmail threads in a single batch request', with a specific verb (retrieves), resource (Gmail threads content), and scope (multiple, batch). This distinguishes it from the singular sibling tool get_gmail_thread_content by emphasizing batch processing.

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?

It implies use for fetching multiple threads and mentions the 25-thread batch limit to prevent SSL connection exhaustion, giving context for when it's appropriate. However, it does not explicitly state when to prefer alternative tools like get_gmail_thread_content for single threads, though the batch emphasis makes this clear by contrast.

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/redesignhealth/google-mcp-unofficial'

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