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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:313-330 (handler)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: [], }, },
- src/index.ts:190-198 (helper)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 } }