relentless_list
Retrieve all entries from a Notion database to view existing content or search through records. Returns complete entry data for comprehensive content management.
Instructions
List all entries from a Notion database. Returns full content for all entries. Use this to see what content exists or to search through entries.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | The database name (e.g., "blog", "docs", "leads") |
Implementation Reference
- src/index.ts:454-478 (handler)The handler for the 'relentless_list' tool. It validates the database parameter, constructs the Relentless API endpoint, calls it using relentlessRequest, and formats the response as MCP content.case 'relentless_list': { const { database } = args as { database: string } if (!database) { throw new McpError(ErrorCode.InvalidParams, 'Missing required parameter: database') } console.error(`[${new Date().toISOString()}] Listing all from ${database}`) const endpoint = `${RELENTLESS_API_BASE}/api/v1/public/db/${database}/list` const result = await relentlessRequest(endpoint) return { content: [ { type: 'text', text: `Found ${Array.isArray(result) ? result.length : 0} entries:\n\n${JSON.stringify( result, null, 2 )}`, }, ], } }
- src/index.ts:264-279 (registration)Registration of the 'relentless_list' tool in the MCP server's list of tools, including its name, description, and input schema.{ name: 'relentless_list', description: 'List all entries from a Notion database. Returns full content for all entries. Use this to see what content exists or to search through entries.', inputSchema: { type: 'object', properties: { database: { type: 'string', description: 'The database name (e.g., "blog", "docs", "leads")', }, }, required: ['database'], }, }, {
- src/index.ts:268-277 (schema)Input schema for the 'relentless_list' tool, defining the required 'database' string parameter.inputSchema: { type: 'object', properties: { database: { type: 'string', description: 'The database name (e.g., "blog", "docs", "leads")', }, }, required: ['database'], },