Skip to main content
Glama

search_pages

Searches Notion pages and databases via a local SQLite FTS5 cache or the live Notion Search API, so you can find content quickly and choose offline cache reads or a remote lookup.

Instructions

Search Notion pages and databases using local SQLite FTS5 (with Korean <3 char LIKE fallback) or remote Notion Search API. Cost: no network request when the synced local cache has hits; remote:true, or an empty or unsynced cache, calls Notion search.

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
queryYesSearch query string
remoteNoQuery live Notion POST /v1/search instead of local SQLite cache
offlineNoRead local SQLite cache only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 safety/behavior burden and does well: it discloses the network cost model, the cache-hit shortcut, the Korean <3 character LIKE fallback, and the conditions that trigger a live Notion call. It omits authentication requirements and rate limits, so a 4 rather than 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?

Two sentences, front-loaded with what the tool does before the cost/mechanism detail; every clause carries information. It is dense with implementation jargon (FTS5, LIKE fallback) that an agent does not strictly need, slightly reducing efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should indicate what a hit looks like (pages vs. databases, identifiers), which it does not. The offline/remote precedence is also unresolved, though the core invocation behavior is adequately covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, and the description adds real meaning beyond the schema by explaining that remote:true forces the live API and that an empty/unsynced cache implicitly behaves like a remote call. It does not clarify how offline and remote interact when both are set, leaving one gap.

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 ("Search Notion pages and databases") and goes further by naming the two underlying mechanisms (local SQLite FTS5 vs. remote Notion Search API). It does not explicitly distinguish itself from siblings like query_database or get_page, but the search framing is unambiguous.

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 clear rule for when the remote path is taken: "remote:true, or an empty or unsynced cache, calls Notion search," and states the cost benefit of local hits. It does not name sibling alternatives (e.g., query_database for structured filters) or say when not to use search.

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