Skip to main content
Glama

export_page

Exports a OneNote page and its images and attachments to a local Markdown, HTML, text, JSON, or PDF file for backup, sharing, or offline access.

Instructions

Export a page to a local file as Markdown, HTML, plain text, JSON or PDF, with its images and attached files.

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>",
      "format": "<format>"
    },
    "name": "export_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesmarkdown, html, text, json or pdf (pdf needs Chrome, Edge, Chromium or Brave installed)
pageIdYes
resourcesNoImages/files: download (default; saved in a folder next to the export), inline (embedded as data: URIs), or none. text ignores this; pdf always embeds.
outputPathNoFile (or existing folder) to write. Defaults to ONENOTE_EXPORT_DIR/<page title>.<ext>, never overwriting

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the agent knows this writes outside the service. The description adds real context by disclosing that images and attached files are exported alongside the page, and 'to a local file' is consistent with openWorldHint. It still says nothing about failure modes, permissions, or what a successful run produces beyond the file itself.

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 well-formed sentence that front-loads the verb, resource, and destination before listing formats and bundled resources. No filler and nothing redundant with structured fields.

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?

For a 4-parameter mutation tool with no output schema, the definition covers what is created but not what comes back (a path? a status?), nor any caveats about overwriting or missing resources. The rich schema descriptions compensate for most parameter gaps, but the return behavior is left entirely undocumented.

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 75% and the enum descriptions already explain format-specific requirements (PDF needs a browser), the resources modes, and the outputPath default and no-overwrite rule. The description only echoes the format list and the images/files behavior, adding essentially nothing beyond the schema, so baseline 3 is right.

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?

States a specific verb (export) and resource (a page) plus the concrete output forms (Markdown, HTML, plain text, JSON, PDF) and that images/files come along. The 'page' scope implicitly separates it from export_section, but the description never names or contrasts that sibling explicitly.

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, no prerequisites, and no mention of when to pick export_section or other siblings instead. The purpose is fairly self-evident from the verb, so the reader can infer usage, but nothing in the text actively guides selection.

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