Skip to main content
Glama

search_pages

Search and retrieve Notion pages using a query string within the Multi-MCPs server, enabling quick access to specific content across integrated APIs.

Instructions

Search Notion pages by query string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Implementation Reference

  • The main handler function that implements the search_pages tool logic: validates Notion token and query, then calls the Notion client'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); },
  • Registers the search_pages tool in the Notion tools array, including its name, description, and input schema requiring a query string.
    name: "search_pages", description: "Search Notion pages by query string", inputSchema: { type: "object", properties: { query: { type: "string" }, }, required: ["query"], }, },
  • Input schema definition for the search_pages tool, specifying a required 'query' string.
    inputSchema: { type: "object", properties: { query: { type: "string" }, }, required: ["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