relentless_list_databases
Discover all Notion databases connected to your Relentless account to identify available 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)Handler function for the 'relentless_list_databases' tool. Calls listDatabases() helper and formats the response as MCP content.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 ListTools response, including name, description, and input schema (empty object since no parameters).{ 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:210-214 (schema)Input schema for the tool: empty object (no input parameters required).inputSchema: { type: 'object', properties: {}, required: [], },
- src/index.ts:190-198 (helper)Helper function that makes the API request to list databases from 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 } }