Skip to main content
Glama

mail_attachments

Read-onlyIdempotent

The files attached to a message, with their part numbers. Sizes are estimates.

part: the text inside that one attachment instead (PDF, Word, Excel, CSV, text, HTML; images and scans have none), paged by offset and limit. The file is fetched from the mail server the first time, which can take a while for a large one.

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": {
      "message": "<message>"
    },
    "name": "mail_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNo
limitNo
offsetNo
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world, and the description adds genuinely non-obvious behavior: sizes are estimates, text extraction is available only for PDF/Word/Excel/CSV/text/HTML, images and scans yield none, and the file is fetched from the mail server on first access, which may be slow for large files. That first-fetch latency and per-type capability note are exactly the kind of context annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The content is dense and largely earns its place, but the structure is poor: the sentence breaks mid-line with a hard paragraph return, and the 'part:' clause reads as a fragment whose subject is unclear. Front-loading the list behavior is good; the formatting works against quick parsing.

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 four-parameter read-only tool with no output schema, the description covers what is returned (files plus part numbers, estimated sizes), the alternate extraction mode and its type support, paging, and first-call latency. Missing only explicit treatment of the `message` parameter and error/invalid-part behavior, which is a minor gap at this complexity.

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 all four parameters and only partly does: it explains what `part` selects and its return payload, and ties `offset`/`limit` to paging, but `message` is only obliquely implied ('a message') and no defaults or bounds are mentioned. It compensates meaningfully but leaves gaps in a zero-coverage 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 makes clear this returns the files attached to a message, each with a part number, and that supplying `part` switches to reading the extracted text of a single attachment. The dual list/read mode is conveyed, though it is expressed as a noun phrase plus a fragment rather than a clean verb-first statement, and no sibling (e.g. mail_read) is named for contrast.

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?

The 'part: ... instead' clause implies the branching condition for reading one attachment's text versus listing attachments, which is useful implied usage. It never states when to reach for this tool rather than mail_read or another sibling, and gives no guidance on invalid/unsupported cases beyond noting images and scans lack text.

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.