Skip to main content
Glama

list-databases

Retrieve all accessible databases from your Notion workspace to view available data sources for AI interactions.

Instructions

List all databases the integration has access to

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'list-databases' tool. Performs a Notion search filtered for databases, sorts by last edited time descending, and returns the results as JSON text.
    if (name === "list-databases") { const response = await notion.search({ filter: { property: "object", value: "database", }, page_size: 100, sort: { direction: "descending", timestamp: "last_edited_time", }, }); return { content: [ { type: "text", text: JSON.stringify(response.results, null, 2), }, ], }; }
  • server.js:45-51 (registration)
    Registration of the 'list-databases' tool in the tools/list response, including its description and empty input schema (no parameters required).
    name: "list-databases", description: "List all databases the integration has access to", inputSchema: { type: "object", properties: {} } },
  • Input schema for the 'list-databases' tool, which is an empty object indicating no input parameters are required.
    inputSchema: { type: "object", properties: {} }

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/Sjotie/notionMCP'

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