Skip to main content
Glama

Anhang lesen

read_attachment
Read-only

Inhalt eines Anhangs: PDFs, Word (.docx), Text/CSV/Kalender als Text, Bilder als Bild, angehängte E-Mails als Text. index ist die Nummer des Anhangs in der Anhangsliste der E-Mail.

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
uidYes
indexYes
folderNoINBOX
accountNo
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: how each attachment type is converted (documents and messages flattened to text, images returned as images). It does not disclose truncation behavior or what happens with unsupported types, which keeps it from 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.

Conciseness4/5

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

Two dense sentences with no filler; the content-type mapping is front-loaded before the index explanation. Structure is compact rather than absent, though a sentence on the remaining arguments would have been a better use of space than none.

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

Completeness2/5

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

For a 5-parameter tool with zero schema documentation and no output schema, the description answers 'what comes back' well but leaves the caller guessing how to identify the email (uid/folder/account) and what max_chars does. That is not enough for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description carries the full burden, but it explains only index ('Nummer des Anhangs in der Anhangsliste der E-Mail'). uid, folder, account and especially max_chars (which implies truncation) are left entirely undefined in both schema and description.

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 names the resource (attachment) and enumerates exactly what is returned per content type (PDF/Word/CSV/calendar as text, images as images, attached emails as text), which clearly separates it from read_email. It lacks an explicit verb ('Inhalt eines Anhangs' is a noun phrase), but an agent can still identify the operation immediately.

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?

Usage is only implied: the note that index refers to the email's attachment list hints that this tool follows an email read, but there is no explicit when-to-use statement, no mention of read_email as the alternative for body content, and no when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources