Skip to main content
Glama
imdeniil

yandex-mail-mcp

by imdeniil

inspect_email

Inspect email headers and MIME structure without downloading bodies. View part details to decide which attachments to download.

Instructions

Inspect an email's headers and MIME structure WITHOUT downloading bodies.

Uses FETCH BODYSTRUCTURE + header subset — returns in milliseconds even for huge messages with attachments. Ideal for:

  • Previewing large emails without tying up bandwidth

  • Deciding which attachment to download (see fetch_part)

  • Bulk processing many messages efficiently

Returns subject/from/to/date/size plus a list of MIME parts, each with:

  • part: part number (e.g. "1", "2", "2.1") — pass to fetch_part

  • type: MIME type (e.g. "text/plain", "application/pdf")

  • size: part size in bytes (may be None)

  • charset: for text parts

  • filename: for attachments (RFC 2231 / MIME decoded)

  • disposition: "inline" or "attachment"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderYes
email_idYes
Behavior5/5

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

With no annotations, the description fully discloses behavior: uses FETCH BODYSTRUCTURE + header subset, returns in milliseconds, lists exact return fields (subject, from, to, date, size, MIME parts with part number, type, size, charset, filename, disposition). 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.

Conciseness4/5

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

Well-structured with clear sections and bullet points for return fields. Front-loaded main purpose. Slightly lengthy due to detail, but each sentence adds value. Could be shortened slightly without losing clarity.

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 2 required parameters and no output schema, the description provides complete context: what it does, when to use, and detailed return structure. Covers all necessary information for an agent to invoke correctly.

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 has 0% description coverage, but parameters 'folder' and 'email_id' are self-explanatory from tool name. Description implies usage context but does not explicitly describe parameter semantics beyond the obvious. Baseline 3 is appropriate as the description adds minimal parameter meaning.

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?

Description clearly states 'Inspect an email's headers and MIME structure WITHOUT downloading bodies', specifying the action and resource. It distinguishes from siblings like 'read_email' and 'fetch_part' by emphasizing the lightweight nature and the part number usage.

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?

Provides three explicit ideal use cases (previewing large emails, deciding which attachment to download, bulk processing) and indirectly suggests alternatives like 'fetch_part' for downloading attachments. This helps the agent decide when to use this tool.

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