Skip to main content
Glama

list_sections

Lists OneNote sections across all notebooks or within a specific notebook, so you can find section IDs and names before reading or editing pages.

Instructions

List OneNote sections across all notebooks or within a specific notebook. Calls Microsoft Graph unless offline:true. Without notebook it first lists every notebook, including Teams notebooks, then each notebook's sections: many requests on large accounts, so pass notebook when you can.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNonext_cursor from the previous response
offlineNoRead the local SQLite cache only: no network, may be stale.
refreshNoIgnore any cached answer and refetch from Microsoft Graph. Costs extra Graph requests; use only when results look stale.
notebookNoOptional notebook key, ID, or display name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the Graph dependency, the offline cache path, and the expensive N+1 fan-out on large accounts. It omits permissions/scopes and ignores the pagination behavior implied by the limit/cursor parameters.

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 tight sentences, front-loaded with the scope and followed by the network and cost caveats. Every clause carries information; there is no restatement of the tool name or filler.

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 five-parameter read tool with no annotations and no output schema, the description covers cost, cache behavior, and the fan-out risk, which are the main failure modes. The remaining gap is that it never hints at result shape or pagination despite cursor and limit being available.

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 already 80%, so the schema documents offline, refresh, cursor, and limit. The description adds rationale only for notebook (prefer passing it) and lightly restates offline; it says nothing about limit or cursor semantics, so the value added beyond the schema is modest.

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 gives a specific verb plus resource ("List OneNote sections") and states the scope boundary (across all notebooks or within one). The resource noun alone differentiates it from siblings like list_notebooks and list_pages, though no sibling is named explicitly.

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?

It gives a concrete selection rule for the key parameter: pass notebook when you can, because the unscoped path fans out to every notebook including Teams notebooks. It does not name an alternative tool or state when not to use this one, so it stops short of full when/when-not guidance.

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