Skip to main content
Glama

export_section

Export every page in a OneNote section to local Markdown, HTML, text, JSON, or PDF files, either one file per page or combined into a single file.

Instructions

Export every page in a section to local files as Markdown, HTML, plain text, JSON or PDF. By default each page gets its own file in a folder named after the section (with an index for markdown/html); combine=true writes one file with all pages. Pages blocked by the guardrail are left out.

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

Input Schema

NameRequiredDescriptionDefault
formatYesmarkdown, html, text, json or pdf (pdf needs Chrome, Edge, Chromium or Brave installed)
combineNoOne file for the whole section instead of one per page
sectionNoSection name
notebookNoNotebook name
outputDirNoFolder to create the export in. Defaults to ONENOTE_EXPORT_DIR
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.
sectionIdNoSection id (takes precedence over names)
sectionGroupNoSection group name, to pick a section inside a group

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses the on-disk layout: a folder named after the section, an index file for markdown/html, and one file per page by default. It also flags that guardrail-blocked pages are silently omitted, which is important behavioral context. The main gap is that overwrite behavior for existing output files is not stated.

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?

Three front-loaded sentences with no filler: format/scope first, default behavior and the combine override second, the guardrail caveat last. Every clause carries information an agent needs.

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 an 8-parameter tool with full schema coverage and annotations, the description covers what the export produces and the notable exclusion case. With no output schema, it could still say whether the call reports the list of written files or how existing files are handled, so it is not fully complete.

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% and each parameter (format, combine, resources, outputDir, sectionId precedence) already carries a detailed description, so the baseline is 3. The description restates combine=true and the format list rather than adding new parameter meaning; the index-file detail is closer to output behavior than to parameter semantics.

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 names a specific verb and resource plus scope: "Export every page in a section to local files" with an enumerated set of formats. The bulk/section scope implicitly separates it from export_page, but it never names the sibling, so differentiation is inferred 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 Guidelines3/5

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

Usage is implied by the scope (whole-section bulk export) and by describing the default one-file-per-page mode versus combine=true. However, there is no explicit when-to-use or when-not-to-use guidance, and no pointer to export_page or copy_section for the single-page or cross-notebook cases.

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