Skip to main content
Glama
seznam-mail-mcp

seznam-mail-mcp

by jakub-lgr

read_attachment

Read-onlyIdempotent

Retrieves and extracts content from email attachments in Seznam Mail, including PDF, Word, Excel, text, CSV, HTML, images, and attached emails, returning text or image data.

Instructions

Přečte obsah přílohy: PDF, Word (.docx), Excel (.xlsx), text/CSV/HTML, obrázky a přiložené e-maily.

Obrázky a naskenovaná PDF vrací jako obrázek. Max. 25 MB.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "uid": "<uid>",
      "index": "<index>"
    },
    "name": "read_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUID zprávy ze search_emails
indexYesPořadí přílohy (index) ze seznamu příloh v read_email
folderNoNázev složky z list_folders, výchozí INBOXINBOX
max_charsNoMax. délka vráceného textu

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description adds two genuinely useful behavioral facts beyond that: a hard 25 MB size ceiling and the fact that images and scanned PDFs are returned as images rather than extracted text. It does not disclose what happens for unsupported formats or oversized files, so not a 5.

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?

Two short sentences, front-loaded with the supported-format list, and the second sentence carries a distinct behavioral fact (image passthrough) plus the size limit. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the minimum needed on return values by flagging the image-return modality, and the 25 MB cap sets expectations. It leaves open how text extraction behaves for non-image formats and how truncation via max_chars surfaces, which keeps it from a 5.

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 description coverage is 100%, so the schema already explains uid, index, folder and max_chars in detail. The description adds no meaning to any individual parameter, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Přečte obsah přílohy' = reads attachment content) and then enumerates the supported formats (PDF, .docx, .xlsx, text/CSV/HTML, images, attached emails), which makes the tool's scope concrete and distinguishable from read_email. It does not explicitly name a sibling it is not, so it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use / when-not-to-use guidance in the description itself; it never says to call read_email first to obtain the attachment index or to prefer another tool for large or unsupported files. That linking information exists only inside the schema parameter descriptions, so the prose adds nothing about tool selection.

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