Skip to main content
Glama

download_media

Downloads a Notion-hosted or external media URL or image, file, or PDF block ID to local disk so you can save attachments locally.

Instructions

Download a Notion-hosted or external media URL or image/file/pdf block ID to local disk. Cost: downloads the whole file to disk; large files take proportionally longer.

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": {
      "target": "<target>"
    },
    "name": "download_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesDirect media URL or Notion block ID
out_dirNoOptional destination directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the key side effect: the entire file is written to local disk, with time proportional to file size. It omits other behavioral facts an agent needs, such as whether an existing file at the destination is overwritten, what permissions are required, and what is returned after a successful download.

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?

Two sentences, front-loaded with the action and accepted inputs, followed by a cost note. No filler or restated field names, and every sentence contributes information.

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?

There is no output schema, so the description should cover what the agent gets back, and it does not — the resulting file location and return value are unstated, which matters when 'out_dir' is omitted. The cost and scope notes are good, but the post-call behavior gap keeps this at adequate rather than complete.

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?

Schema coverage is already 100%, but the description adds meaning beyond the schema strings: 'target' accepts both Notion-hosted and external URLs and is limited to image/file/pdf blocks, which narrows what block IDs are valid. The 'out_dir' parameter is not discussed, so the default destination behavior remains unspecified.

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?

States a specific verb (Download) and resource (Notion-hosted or external media URL, or an image/file/pdf block ID) with the destination made explicit. No sibling tool in the catalog performs file retrieval, so the agent can identify this unambiguously as the download path.

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 description implies when this applies (when you have a media URL or a media block ID) and gives a decision-relevant trade-off about cost for large files. It does not state prerequisites (auth, page access) or any when-not condition, and there are no competing alternatives to route between.

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