Skip to main content
Glama

download_attachment

Download same-site assets anonymously, or use an authenticated role to fetch protected files. Saves to workspace/downloads with SHA256 verification and never overwrites existing files.

Instructions

Download a same-site asset anonymously; select a role only for an authenticated proxy.

Saves to workspace/downloads with SHA256 verification; never overwrites.

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": {
      "asset_path": "<asset_path>",
      "filename": "<filename>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNopublic
filenameYes
asset_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior4/5

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

Adds substantive behavior beyond the annotations: destination directory (workspace/downloads), SHA256 integrity verification, and a no-overwrite guarantee, all consistent with readOnlyHint=false. It doesn't cover auth failure behavior or how an existing-file collision is surfaced, which keeps it below 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 tight sentences, front-loaded with the action and followed by the storage side effect; every clause carries information. 'Same-site asset' is slightly ambiguous phrasing but nothing is padding.

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

Completeness3/5

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

Output shape is covered by the returned output schema, so that gap doesn't count. However, for a 3-parameter tool with zero schema descriptions, the definition leaves the two required parameters' semantics and the asset_path format unresolved — an agent could call it with a wrong path form and get no warning.

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%, so the description must carry parameter meaning, yet it only partially explains 'role' (public/admin/player enum values are never differentiated). Neither asset_path (path vs URL vs repo location) nor filename (output name vs must-match source name) is clarified, leaving two required parameters undefined in both schema and prose.

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?

Specific verb+resource: 'Download a same-site asset anonymously' tells the agent exactly what the tool does and its scope (same-site assets). It doesn't name a sibling tool to contrast with, but the read/download nature is unambiguous against the admin_* mutation siblings.

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?

The clause 'select a role only for an authenticated proxy' is a real conditional telling the agent when the role parameter matters versus the default anonymous path. No explicit exclusions or named alternatives for other asset-retrieval paths, so it stops short of a 5.

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