Skip to main content
Glama
imdeniil

yandex-mail-mcp

by imdeniil

fetch_part

Fetch a specific MIME part from an email by part number. Returns decoded text for text parts or base64-encoded binary data for attachments.

Instructions

Fetch a specific MIME part of an email by part number.

Part numbers come from inspect_email's parts list (e.g. "1", "2.1"). For text parts with decode=True (default), returns the decoded string body. For binary parts or decode=False, returns base64-encoded bytes so the result is JSON-safe.

Args: folder: Folder containing the email email_id: UID of the email part_number: Part identifier from inspect_email (e.g. "1", "2.1") decode: If True, decode text parts to str; otherwise return base64

Returns dict with content (str or base64) + encoding marker.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderYes
email_idYes
part_numberYes
decodeNo
Behavior5/5

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

With no annotations provided, the description fully discloses behavior: how decode affects text vs binary parts, default behavior (decode=True returns decoded string), and fallback to base64 for binary or decode=False. It also explains the return format, making the tool's behavior predictable.

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 description is well-structured with a concise introductory sentence followed by a clear explanation of part numbers and return behavior, then a bullet-like Args list. It's informative without being verbose, though the Args section could be slightly more compact.

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?

Given the tool's complexity (4 parameters, no output schema), the description covers all necessary aspects: input parameters, behavior for different cases, return value structure, and dependency on inspect_email. It is self-contained and complete for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must explain parameters. It does so comprehensively with an Args section detailing folder, email_id, part_number, and decode, including default values and data type implications (str vs base64). This adds significant meaning beyond the bare schema.

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 the tool fetches a specific MIME part of an email by part number, using a specific verb ('Fetch') and resource ('MIME part'). It references inspect_email for context, distinguishing it from sibling tools that deal with bulk operations or other email actions.

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?

The description explains that part numbers come from inspect_email's parts list, providing clear usage context. While it doesn't explicitly say when not to use it, the context is sufficient for an agent to decide. It could have mentioned alternatives for full email access, but it's adequate.

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/imdeniil/yandex-mail-mcp'

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