Skip to main content
Glama

gmail_get_message

Read-onlyIdempotent

Retrieve a complete Gmail message, including its body text, by providing the message ID from search results.

Instructions

One message in full, including its body text.

Args: message_id: Message id from gmail_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint). The description adds that it returns the full message including body text, which is useful behavioral info not in annotations. No contradictions.

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 only two sentences, front-loading the core purpose. Every word is functional—no filler. It's as concise as possible while still adding meaning.

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?

For a simple single-message retrieval tool, the description covers the essential purpose and parameter source. An output schema exists, so return structure is handled. It doesn't discuss edge cases like missing IDs, but that's likely acceptable given the tool's simplicity and the presence of sibling tools for related operations.

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 0%, so the description must compensate. It does explain the source of message_id ('from gmail_search'), giving semantic context. However, it doesn't mention format, constraints, or potential errors, leaving some ambiguity for the single parameter.

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 states a specific verb and resource: 'One message in full, including its body text.' This clearly distinguishes it from siblings like gmail_get_thread (which returns an entire thread) and gmail_get_draft (for drafts). The purpose is unambiguous.

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 provides context by specifying that message_id comes from gmail_search, implying a typical workflow. However, it doesn't explicitly mention when to prefer this over gmail_get_thread or list similar exclusions. The guidance is sufficient for an agent to infer usage.

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/rollecode/gmail-second-account-mcp'

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