Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ONENOTE_TENANTNoSign-in authority: consumers (personal), organizations, common, or a tenant id.consumers
ONENOTE_CLIENT_IDNoUse your own app registration instead of Microsoft's public "Microsoft Graph Command Line Tools" client.Graph CLI public client
ONENOTE_READ_ONLYNoSet to true to hide every tool that changes OneNote or writes files.false
ONENOTE_TOKEN_FILENoStore tokens in this file (also on macOS, instead of the Keychain).
ONENOTE_ALLOW_DELETENoSet to true to enable delete_page (ignored in read-only mode).false
ONENOTE_DOWNLOAD_DIRNoWhere download_resource saves files when no path is given.~/Downloads
ONENOTE_DEFAULT_SECTIONNoSection used when a tool call names no section.
ONENOTE_BLOCKED_SECTIONSNoComma-separated section names and/or ids that every tool must refuse (e.g. "Credentials,0-ABC123...!12345"). Blocked sections are hidden from list_notebooks, and listing, searching, reading, creating or appending in them returns "Access denied by guardrail".
ONENOTE_DEFAULT_NOTEBOOKNoNotebook used when a tool call names no notebook.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_notebooksA

List all notebooks with their full structure: section groups (nested) and sections, with ids and links.

get_recent_notebooksA

List recently opened notebooks with last-access time and links to open them in OneNote.

create_notebookA

Create a new notebook (or return the existing one with that name).

create_section_groupB

Create a section group in a notebook, or nested inside another section group (or return the existing one).

list_sectionsA

List sections (including those inside section groups), optionally only in one notebook.

create_sectionA

Create a section in a notebook or inside a section group (or return the existing one with that name).

copy_sectionA

Copy a section (with all its pages) into a notebook or section group. Work/school accounts copy in the background (check with get_operation); personal accounts copy page by page immediately (slower for big sections). Pages blocked by the guardrail are left out.

list_pagesB

List pages in a section with their indent level and order, newest first by default.

search_pagesA

Search page titles (case-insensitive) in one section, or across every section of every notebook when no section is given.

get_pageB

Get a page's details: title, section, notebook, level/order, links and a short text preview (no full content).

read_pageA

Read a page's content. format=html (default) returns OneNote HTML; set includeIds=true to get element ids (data-id/id) to target with update_page. Tags show as data-tag (e.g. to-do, to-do:completed, important, question). Images/files show as resource URLs; save them with download_resource. format=markdown or text returns a lighter, readable version.

create_pageA

Create a page. bodyHtml supports p, h1-h6, ul/ol/li, table, pre, code, b, i, u, a, img (src can be a public URL or name:), and tags via data-tag, e.g. Task, data-tag="to-do:completed", "important", "question", "idea", "critical", "contact", "remember-for-later". Local images/files go in attachments. Use data-id="..." on elements you want to update later.

update_pageA

Edit a page in place. Each change targets 'body', 'title', or an element by '#' or its generated id (from read_page with includeIds=true). Actions: append (end of target), prepend (start of target), insert (before/after target), replace (swap target; use target 'title' + replace to rename the page). Example: tick a to-do with {target:'#task1', action:'replace', content:'Done'}. All changes in one call succeed or fail together. A version of the page is saved first (see list_page_versions).

append_to_pageA

Append HTML content to the end of an existing page. A version of the page is saved first.

copy_pageA

Copy a page (with its images and files) into another section. To 'move' a page: copy, then delete the original. Work/school accounts copy in the background (check with get_operation); personal accounts copy immediately and return the new page id.

get_operationA

Check the status of a background copy (copy_page / copy_section). Returns status and, when finished, the new item's location.

download_resourceA

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

export_pageB

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

export_sectionA

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.

snapshot_pagesA

Save a version of every page that changed since its last version, in one section, one notebook, or every section (no arguments). Versions are kept for 30 days. Pages edited through this server are also saved automatically before each change.

list_page_versionsA

List saved versions of a page (newest first). Without pageId, list every page that has versions, including deleted pages. Versions are kept for 30 days.

read_page_versionB

Read a saved version of a page as html (default), markdown or text.

restore_page_versionA

Restore a saved version as a new page (with its images and files), in its original section or another one. The current page is left as it is; delete it afterwards if you want the restored copy to replace it.

server_settingsA

Show this server's active settings (read-only mode, delete permission, defaults, guardrail rule counts, versioning, export).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 24 tools

Disambiguation4/5

Most tools target a distinct resource and action, and the descriptions clearly separate similar pairs like get_page (metadata/preview) vs read_page (content). Minor overlap remains: append_to_page duplicates update_page's append action, and list_notebooks already returns the full section structure that list_sections exposes separately.

Naming Consistency4/5

Nearly all tools use a consistent snake_case verb_noun pattern (list_pages, create_page, export_section, etc.). The main deviation is server_settings, which is noun-only rather than verb-prefixed; get_recent_notebooks and snapshot_pages are also slight stylistic outliers but remain predictable.

Tool Count3/5

At 24 tools this is on the heavy end for a single domain, and a few could be consolidated (append_to_page into update_page, possibly get_page/read_page). The breadth reflects OneNote's real surface—notebooks, sections, pages, versions, export, copy operations—but it is still more than most agents need at once.

Completeness3/5

The surface covers create/read/update for pages and create/list for notebooks and sections, plus versioning, copying, export, and resource download. However, there is no delete tool for pages, sections, section groups, or notebooks, and no section/page move except copy-then-delete (which cannot be completed because delete is absent). That is a notable lifecycle gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues