Skip to main content
Glama

download_resource

Save an image or attached file from a OneNote page to disk by passing the page ID and resource ID or URL; use read_page to get the resource reference.

Instructions

Save an image or attached file from a page to disk. Get resource ids/URLs from read_page (…/resources//$value or /content).

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": {
      "pageId": "<pageId>",
      "resource": "<resource>"
    },
    "name": "download_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesThe page that contains the resource
resourceYesResource id, or the resource URL from read_page
outputPathNoFile path to write. Defaults to ONENOTE_DOWNLOAD_DIR/<resource id>

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the mutation/network profile is covered structurally, and the description is consistent with a disk-write operation. Beyond that it adds little: no mention of overwrite behavior, permission requirements, or what happens if the resource id is stale.

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, zero filler, with the action stated first and the prerequisite/URL-format hint second. Nothing is redundant with the annotations or schema.

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 simple three-parameter write-to-disk tool with no output schema, the description covers the action, the source of inputs, and where files land by default. The only meaningful omission is failure/overwrite behavior, which is minor 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 coverage is 100%, so all three parameters are already documented, including the default path. The description adds only the URL shape for the resource parameter (…/resources/<id>/$value or /content), which is a modest but real supplement over the schema's "Resource id, or the resource URL from read_page".

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?

"Save an image or attached file from a page to disk" gives a specific verb (save) and a specific resource (page image/attachment), which separates it from page-level tools like read_page or export_page. It stops short of naming the sibling it competes with (export_page), so an agent must infer the boundary from the resource-vs-page distinction.

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 description supplies the missing prerequisite for invocation: resource ids/URLs must first be obtained from read_page. That is concrete workflow guidance rather than vague context. It does not say when-not to use it or how it differs from export_page for bulk file retrieval.

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