Skip to main content
Glama

search_pages

Search cached OneNote pages locally via SQLite FTS5 without network calls; set refresh to true to run a full account sync before searching, which is slow for large accounts.

Instructions

Search cached OneNote pages via local SQLite FTS5 (onenote_fts); no network by default. refresh:true first runs a full account sync (many Graph requests, slow on large accounts), so avoid it in loops.

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": {
      "query": "<query>"
    },
    "name": "search_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
cursorNonext_cursor from the previous response
refreshNoRun a full account sync before searching. Expensive: many Graph requests.
sectionNoOptional section name or Notebook/Section path to filter results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does reasonably well: it discloses that results come from a local cache with no network by default, and that refresh triggers a full account sync with many Graph requests that is slow on large accounts. It omits pagination behavior (the cursor parameter returns next_cursor) and any permission/auth notes.

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?

Two short clauses, front-loaded with the core purpose, then the single highest-risk parameter caveat. No filler or repetition.

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 search tool with no annotations and no output schema, the description covers the essential model (cached index, optional sync cost) that an agent needs to call it safely. Minor gaps remain around pagination and section filtering, but nothing critical is missing.

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 60%, so the schema already documents refresh as expensive and cursor as the previous next_cursor. The description adds a bit of meaning for refresh (slow on large accounts, avoid in loops) but says nothing about limit, section filtering, or query semantics beyond what the schema states.

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 and resource ('Search cached OneNote pages') plus the underlying mechanism ('local SQLite FTS5 (`onenote_fts`)'), which an agent can distinguish from retrieval tools like get_page. It does not explicitly differentiate itself from list_pages, so it falls 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 Guidelines3/5

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

The description gives a clear usage caution for the refresh flag ('avoid it in loops') and implies searching when a query is available, but never says when to prefer this over list_pages or get_page. Usage is implied rather than directed.

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