Skip to main content
Glama
seznam-mail-mcp

seznam-mail-mcp

by jakub-lgr

search_emails

Read-onlyIdempotent

Find emails in a Seznam.cz folder by sender, recipient, subject, body text, date range, unread or flagged status; returns matching headers newest first.

Instructions

Hledá e-maily ve složce. Vrací hlavičky (datum, odesílatel, předmět, uid), nejnovější první.

from_address, to_address a subject hledají celá slova (ne části slov), diakritika nevadí. Na části slov nebo text v těle použij text.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText kdekoli v e-mailu (hlavičky i tělo)
limitNoMax. počet výsledků (nejnovější první)
sinceNoOd data včetně, RRRR-MM-DD
beforeNoPřed datem (bez něj), RRRR-MM-DD
folderNoNázev složky z list_folders, výchozí INBOXINBOX
subjectNoText v předmětu
to_addressNoČást adresy nebo jména příjemce
unread_onlyNo
flagged_onlyNo
from_addressNoČást adresy nebo jména odesílatele

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description only needs to add operational context — and it does: what is returned (headers, not bodies), the default ordering, and that matching is whole-word and diacritics-insensitive. It does not mention whether searches span subfolders or how paging beyond `limit` behaves.

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?

Two short paragraphs, purpose and return payload front-loaded, then the matching-semantics caveat. No filler. It could be tightened slightly by folding the two sentences about whole-word matching and `text` into one rule, but nothing is redundant.

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?

For a 10-parameter read tool with an output schema and full annotations, the description covers the risky ambiguities: what comes back, ordering, and how matching differs per field. Default folder (INBOX) and the limit cap are only in the schema, which is acceptable given high coverage.

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 80%, so the baseline is 3; the description earns above that by clarifying that from_address, to_address and subject match whole words with diacritics ignored — a non-obvious behavior the schema does not state (and which mildly tensions with the schema's wording "část adresy"). The remaining params (limit, since, before, folder, flags) are left to the schema.

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?

States a specific verb and resource ("Hledá e-maily ve složce") plus the return shape (headers: date, sender, subject, uid) and ordering (newest first). That return scope implicitly separates it from read_email/read_thread, which must be needed for full bodies, but no sibling is named and the differentiation is left to inference.

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?

Gives an explicit routing rule between parameter modes: use from_address/to_address/subject for whole words, use `text` for partial words or body content. That is clear, actionable selection guidance. It stops short of stating when to prefer this tool over siblings such as list_folders or read_thread.

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