Skip to main content
Glama

onenote_search_pages

Find OneNote pages by title across all notebooks, or perform full-text searches of page bodies after building the local index.

Instructions

Search for pages across all OneNote notebooks.

Two modes: 'title' matches page titles via TOC walk (always available); 'fulltext' queries the local FTS index over page bodies (build it first).

Return Format

Markdown string: "🔍 Search Results for '':" with numbered matching pages.

Examples

onenote_search_pages(query="quarterly report") onenote_search_pages(query="hiking checklist", mode="fulltext")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoSearch mode: 'title' (always available) or 'fulltext' (needs the index; see onenote_index_start)title
queryYesSearch query string

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.4

TDQS

A3.9/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 burden, and it does disclose real behavioral traits: 'title' is always available while 'fulltext' requires a pre-built index. It also documents the return format. It omits auth requirements and any index staleness/rate-limit caveats, so not a 5.

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?

Front-loads purpose, then modes, then return format and examples; every block is useful. The section headers and example repetition add slight bulk but nothing is truly wasted.

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?

Given two parameters and an existing output schema, the definition covers mode availability, the index prerequisite, and an example invocation. Return-value explanation is arguably redundant with the output schema but harmless; overall it is complete enough to call correctly.

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 description coverage is 100%, so the mode and query parameters are already documented in the schema, making 3 the baseline. The description's mode explanation largely restates the schema's mode description without adding format or syntax detail beyond it.

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 (search) and resource (pages) with scope ('across all OneNote notebooks'), which is clearer than a bare name restatement. It does not explicitly differentiate itself from siblings like onenote_list_pages or onenote_recent, so it stops short of a 5.

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?

Explicitly explains the two modes and the condition that gates 'fulltext' ('build it first', referencing onenote_index_start), which is genuine when-to-use guidance. It stops short of stating when to prefer this over list_pages or recent, so no exclusions are given.

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