Skip to main content
Glama

download_resource

Downloads an embedded image or file attachment from a OneNote page to disk, returning its path, filename, MIME type, size, and image status.

Instructions

Download an embedded image or file attachment from a OneNote page and return { ok, path, file_name, mime_type, size_bytes, is_image }. Downloads the full binary to disk.

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

Input Schema

NameRequiredDescriptionDefault
pageYes
indexNo
out_dirNoOptional destination directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full load and does disclose the key side effect: 'Downloads the full binary to disk', so the agent knows this is a local write operation, not a read. It omits what happens on name collisions, whether the destination is created if missing, and any permission or size constraints on the download.

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: the action first, then the return shape, with no filler. The inline field list is dense but readable, though it slightly front-loads return values before establishing how to target the attachment.

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?

Because no output schema exists, listing the returned keys is genuinely valuable and roughly compensates. But for a 3-parameter tool with a disk-write side effect, the omission of index semantics and failure behavior leaves a real gap for correct invocation.

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 coverage is only 33% — just out_dir is annotated — and the description adds nothing about parameters. Critically, the `index` parameter is never explained: there is no statement that it selects which attachment on the page, nor whether it is zero-based or how it relates to indices returned elsewhere.

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 an embedded image or file attachment from a OneNote page'), so the agent immediately knows this retrieves binary attachments rather than page metadata. None of the sibling tools handle attachments, so the action is unambiguous without needing explicit sibling contrast.

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 phrasing implies the use case is fetching an attachment already known to exist on a page, and no alternative tool competes for it. However, it never states preconditions such as whether the page must be read first (e.g., via get_page) to learn the attachment index, leaving the workflow to inference.

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