Skip to main content
Glama
sapn95
by sapn95

epost_download_letter

Download a single Swiss ePost letter to output_dir by list index or letter ID, returning the saved PDF or EML file path.

Instructions

Download one letter to output_dir, addressed by list index or by letter_id. Returns the saved path, written 0600: YYYY-MM-DD_ePost_.pdf over the API (.eml for a letter that came through IncaMail, which is an e-mail), and _.pdf over the portal fallback, which has no id to name it by — an index is a position in a list that renumbers itself after every store, so two calls a day apart can mean two different letters.

Input Schema

NameRequiredDescriptionDefault
indexNo
letter_idNoinstead of index; needs the public API
output_dirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return value (saved path), file permissions (0600), the filename pattern, the API-vs-portal fallback behavior, and the .eml variant for IncaMail letters. It omits auth prerequisites and error behavior, but the write/return semantics are unusually well covered.

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 action and destination are front-loaded, and every clause (0600, filename format, API/portal fallback, index instability) carries information an agent needs. It is a single dense sentence with an em-dash that runs long, 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 download tool with no output schema, the description adequately explains what is returned and where it is written, including the fallback naming case. It is missing auth/permission context and any indication of failure modes, which keeps it short of complete.

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 only 33% (only letter_id is documented in-schema), so the description must compensate, and it does: it explains that index is 'a position in a list that renumbers itself' and that letter_id 'needs the public API'. This adds material meaning beyond the bare schema types for both optional params.

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 states a specific verb+resource ('Download one letter to output_dir') and immediately scopes it against the sibling epost_download_all by specifying a single letter. It also names the two addressing modes (index or letter_id), so an agent knows exactly what the tool operates on without opening the schema.

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

Usage Guidelines3/5

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

It gives real guidance on choosing between the two addressing modes ('letter_id... needs the public API') and warns that index is unstable across calls, which helps correct invocation. However, it never states when to prefer this tool over alternatives like epost_download_all or epost_letter_pdf, so usage vs siblings is only implied.

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