Skip to main content
Glama

search_pages

Search Notion pages using a query string to find specific content across your workspace.

Instructions

Search Notion pages by query string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Implementation Reference

  • Handler function that validates NOTION_TOKEN, extracts the query parameter, and delegates to the NotionClient's search method.
    async search_pages(args: Record<string, unknown>) { if (!cfg.notionToken) throw new Error("NOTION_TOKEN is not configured"); const query = String(args.query || ""); if (!query) throw new Error("query is required"); return client.search(query); },
  • Tool registration entry including name, description, and input schema for the search_pages tool.
    { name: "search_pages", description: "Search Notion pages by query string", inputSchema: { type: "object", properties: { query: { type: "string" }, }, required: ["query"], }, },
  • Input schema defining the required 'query' string parameter.
    inputSchema: { type: "object", properties: { query: { type: "string" }, }, required: ["query"], },
  • NotionClient helper method that performs the actual API search request to Notion's /v1/search endpoint.
    search(query: string) { return this.request(`/v1/search`, { method: "POST", body: { query }, }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TaylorChen/muti-mcps'

If you have feedback or need assistance with the MCP directory API, please join our Discord server