Skip to main content
Glama

download_attachment

Save an internal wiki attachment to bounded private local storage without executing it, so users can safely retrieve course files from the student wiki.

Instructions

Save an internal wiki attachment into bounded private local storage; never execute it.

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

Input Schema

NameRequiredDescriptionDefault
refreshNo
attachment_idYes

Output Schema

NameRequiredDescriptionDefault
metadataYes
mime_typeYes
local_pathYes
size_bytesYes
source_urlYes
source_hashYes
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so write/safety basics are covered. The description adds real value beyond that: the write lands in "bounded private local storage" (implying a size cap and isolation) and the downloaded content is never executed, which is meaningful security context an agent would not get from annotations alone.

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?

A single tight sentence with the action and destination front-loaded and no filler. The trailing safety clause is short and adds information rather than 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?

An output schema exists, so return values need not be described, and the storage/execution behavior is well covered. However, for a write tool with an unexplained 'refresh' flag and no guidance on how it relates to read_attachment, the definition leaves gaps an agent must guess at.

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 two parameters, so the description must carry the burden and does not. attachment_id is at least inferable from the prose, but the boolean 'refresh' parameter (default false) is never explained — an agent cannot tell whether it re-downloads, overwrites an existing copy, or bypasses a cache.

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 gives a specific verb and resource ("Save an internal wiki attachment") plus a destination ("bounded private local storage"), which separates it from a read-style sibling like read_attachment. It stops short of naming any sibling explicitly, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no mention of when to prefer read_attachment or another tool instead. The only usage-like instruction is the safety constraint "never execute it", which is a prohibition rather than routing guidance.

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