Skip to main content
Glama

Dayze — Life Context

Read Gmail Attachment (read-only)

read_gmail_attachment
Read-only

Download one Gmail attachment by message_id + attachment_id (from read_gmail_message.attachments). Returns utf-8 text for text/csv/vcf/vcard; binary types return filename/mime/size + a note (no base64 dump). Optional account. Read-only. Requires mail.read on an API key or non-ChatGPT OAuth connection. ChatGPT profiles do not grant mail.read or list this tool. Share tokens cannot call. ($0.10; API key required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNo
accountNo
message_idYes
attachment_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
attachmentYes
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / email
      Added value: +{
      +  "type": "string"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations: it discloses the return shape per mime type (utf-8 text for text/csv/vcf/vcard, metadata + note for binaries with no base64 dump), the exact auth scope and connection types, that ChatGPT profiles and share tokens cannot call it, and the $0.10 cost. This is rich behavioral context an agent cannot get from annotations alone.

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?

Front-loads the core action and key input source, then layers return behavior, auth, and cost. Dense but every sentence carries information; the parenthetical cost/auth fragments are slightly cramped but not wasteful.

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 attachment fetch with an output schema present, the description covers everything an agent needs: inputs and their origin, per-type return behavior, auth requirements, profile/token restrictions, and cost. Nothing material 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?

With 0% schema description coverage the description must compensate, and it does for three of four params: message_id and attachment_id (with their source) and 'optional account'. The 'email' parameter is never mentioned, and no format/syntax detail is added for any param, leaving a real gap.

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?

States a specific verb (download/read) and resource (one Gmail attachment) with the exact lookup keys (message_id + attachment_id) and where to obtain them (read_gmail_message.attachments). An agent can distinguish this from read_gmail_message and search_gmail without opening any schema.

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?

Explicitly states the prerequisite source of the IDs and the auth conditions required to call it (mail.read on API key / non-ChatGPT OAuth; ChatGPT profiles and share tokens cannot call). It gives clear context for when it is usable, but does not name an explicit alternative or a when-not-to-use case beyond auth gating.

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.