Skip to main content
Glama
TU Clausthal Mail MCP

TU Clausthal Mail MCP

by tatoline

get_attachment

Read-onlyIdempotent

Retrieve a specified email attachment as untrusted base64 only on explicit user request, limited to 1 MiB decoded, without executing files or treating filenames as paths.

Instructions

Only on explicit user request, return one listed file as untrusted base64. Limit 1 MiB decoded. Never execute files or use filenames as paths.

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": {
      "email_id": "<email_id>",
      "part": "<part>"
    },
    "name": "get_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
partYes
email_idYes

Output Schema

NameRequiredDescriptionDefault
attachmentYes
size_bytesYes
data_base64Yes

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 declare readOnly, idempotent, non-destructive and openWorld, so the safety baseline is covered. The description adds genuinely new behavioral context: the payload is untrusted base64, it is capped at 1 MiB decoded, and the file must never be executed or its name used as a path — security guidance an agent cannot get from the annotations.

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?

Three short sentences with zero filler, and the restrictive usage condition is front-loaded before the payload and safety details. Every sentence carries distinct information.

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?

An output schema exists, so return values need not be explained, and the size cap plus untrusted-content warning cover the main behavioral risks. It could say what happens when a file exceeds 1 MiB (error vs. truncation), which is the one operational gap for a binary-fetch tool.

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 0%, so the description must carry parameter meaning, and it only partially does. 'Listed file' hints that `part` identifies an attachment part from a prior listing, but the dotted part-number syntax and the MessageId structure (account/folder/uidvalidity/uid) are left entirely 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?

The description states a specific verb and resource ('return one listed file as untrusted base64'), which is clearly distinct from siblings like list_attachments or read_email. It stops short of naming the sibling it depends on, but the phrase 'listed file' implies a prior listing step.

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?

'Only on explicit user request' is an explicit when-to-use gate, and 'one listed file' implies the file must first appear in a listing. There is no explicit when-not or named alternative, so it falls short of full routing guidance.

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