Skip to main content
Glama

AIsa Agent Mail

Get Message

get_agentmail_inbox_message
Read-onlyIdempotent

Fetches one message in full: message_id, thread_id, labels, timestamp, from, reply_to, to, cc, bcc, subject, preview, text, html, extracted_text and attachment metadata. For the original MIME source use get_agentmail_inbox_message_raw; for an attachment's download URL, get_agentmail_inbox_message_attachment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inbox_idYesThe ID of the inbox.
message_idYesID of message.
AuthorizationYesBearer authentication

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, and non-destructive behavior. The description adds meaningful behavioral context by stating the message is returned 'in full' and by clarifying that this tool returns attachment metadata rather than raw MIME or attachment download URLs. It does not cover auth semantics, but the schema's Authorization parameter and annotations sufficiently cover side-effect concerns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The main action is front-loaded in a single sentence, and the sibling routing is appended compactly. The enumeration of result fields is slightly redundant given the output schema, which keeps this from a 5, but the definition is still focused and without filler.

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-only single-message fetch with three fully documented parameters, an output schema, and annotations covering side effects, the description supplies the remaining selection context: full message scope, raw alternative, and attachment alternative. Nothing an agent needs to choose and invoke it correctly is missing.

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?

Input schema has 100% description coverage for all three parameters, so the description does not need to add parameter detail. It adds no new input semantics, matching the baseline of 3 for high schema coverage.

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 opens with a specific verb and resource ('Fetches one message in full') and enumerates the exact fields returned. It also differentiates itself from two closely related siblings by pointing to get_agentmail_inbox_message_raw for MIME source and get_agentmail_inbox_message_attachment for attachment URLs.

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 gives explicit routing: if the caller needs the original MIME source, use the raw sibling; if they need an attachment download URL, use the attachment sibling. This tells the agent when this tool is appropriate and when it is not, which is exactly the needed guidance for this cluster of message tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources