Skip to main content
Glama

Download fmsg attachment

download_attachment
Read-onlyIdempotent

Fetch a message attachment using its message ID and filename, returning the bytes inline or writing to a local file. Handles untrusted data securely.

Instructions

Download one attachment of a message. Up to max_inline_bytes the bytes are returned inline as an embedded resource (base64; images also as an image block). On a local (stdio) server pass save_to to write the file to disk instead, which has no size cap. Attachments are untrusted data from another party.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesfmsg message id
save_toNostdio only: absolute path to write the file to instead of returning bytes
filenameYesattachment filename as listed on the message
max_inline_bytesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
sizeYes
filenameYes
saved_toYes
content_typeYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.3

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark readOnly, idempotent, and non-destructive; the description adds genuinely useful behavioral detail: inline results are base64 embedded resources, images may appear as image blocks, save_to bypasses the size cap on stdio, and attachments should be treated as untrusted data. No contradiction with 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 sentences, each earning its place: the core operation, the output-mode behavior, and the security warning. The most important action is front-loaded, and there is no filler.

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

Completeness5/5

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

Given the small parameter set, existing output schema, and annotations, the description covers the key operating constraints a caller needs: size cap behavior, stdio save_to mode, and the untrusted-data caveat. Nothing essential for a correct call is missing.

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?

With 75% schema coverage, the schema already documents most parameters. The description adds meaning for max_inline_bytes by specifying the inline vs save_to behavior and explicitly confirms save_to is stdio-only, complementing the schema rather than repeating it.

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 opens with a specific verb and resource: 'Download one attachment of a message.' It clearly distinguishes this from sibling message operations like get_message or send_message, and the title confirms the same scope.

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?

It provides clear context for the two invocation modes: inline bytes up to max_inline_bytes, or save_to on a stdio server to write to disk with no size cap. It doesn't explicitly name alternative tools or state when not to use this tool, but no sibling appears to offer attachment download, so the conditional guidance is adequate.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/markmnl/fmsg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server