Skip to main content
Glama

relentless_list_databases

Discover available Notion databases connected to your Relentless account to identify data sources for reading and writing operations.

Instructions

List all Notion databases connected to your Relentless account. Use this first to discover available databases, then use other tools to read/write data. Returns database names that can be used with other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'relentless_list_databases' tool. It calls the listDatabases helper, formats the result into MCP text content, and returns it.
    case 'relentless_list_databases': { console.error(`[${new Date().toISOString()}] Listing databases`) const databases = await listDatabases() return { content: [ { type: 'text', text: `Found ${databases.count} database(s):\n\n${JSON.stringify( databases.databases, null, 2 )}`, }, ], } }
  • src/index.ts:206-215 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and input schema (empty object, no parameters required).
    { name: 'relentless_list_databases', description: 'List all Notion databases connected to your Relentless account. Use this first to discover available databases, then use other tools to read/write data. Returns database names that can be used with other tools.', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • Helper function that performs the API request to list all available databases from the Relentless API.
    async function listDatabases(): Promise<any> { try { const endpoint = `${RELENTLESS_API_BASE}/api/v1/public/databases` return await relentlessRequest(endpoint, undefined, 1) } catch (error) { console.error(`⚠️ Could not fetch databases: ${error}`) throw error } }

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/PranaytheSingh/relentless-mcp'

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