Skip to main content
Glama
gohluke

Dayze MCP

by gohluke

Read Gmail Attachment (read-only)

read_gmail_attachment
Read-only

Retrieve a specific Gmail attachment by message and attachment ID. Returns text content for CSV/vCard/text files, or filename, MIME, and size for binary types.

Instructions

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. 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. Addedv1.28.0

TDQS

A4.9/5.0
Behavior5/5

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

Discloses non-obvious behavior beyond annotations: text formats return utf-8, binary types return metadata only with no base64 dump, share tokens are blocked, and there's a cost ($0.10). These are exactly the operational details annotations don't cover.

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?

Dense, front-loaded single paragraph covering purpose, sourcing, output behavior, auth, and cost. Every clause earns its place with no 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?

Output schema exists, so return format needn't be explained, yet the description still clarifies format-dependent behavior. Auth constraints, cost, and ID sourcing are all present, making it fully complete for a 4-param read tool.

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 explains message_id and attachment_id sourcing (from read_gmail_message.attachments), which is critical since the schema provides no descriptions. Optional account/email aren't clarified, but the core required parameters are well-documented.

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?

Specific verb (download) plus resource (Gmail attachment) with exact identifying parameters. The reference to read_gmail_message.attachments explains where the IDs come from, distinguishing it from search_gmail and read_gmail_message.

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?

Explicit prerequisites: needs message_id + attachment_id from read_gmail_message.attachments. Names the auth conditions: share tokens cannot call, API key required. An agent can determine eligibility without trial-and-error.

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

Deploy Server

Other Tools