get_due_items
Retrieve items scheduled for review, including overdue items, to manage knowledge resurfacing and maintain information recall.
Instructions
Get items due for review (inbox items)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
Implementation Reference
- src/nodes.ts:69-87 (handler)MCP tool handler that invokes apiClient.getDueItems and returns formatted JSON response or error.async ({ state }) => { const result = await apiClient.getDueItems(state); if (result.error) { return { content: [{ type: 'text', text: result.error }], isError: true, }; } return { content: [ { type: 'text', text: JSON.stringify(result.data, null, 2), }, ], }; },
- src/nodes.ts:61-67 (schema)Zod input schema defining optional includeOverdue boolean parameter.state: z.object({ includeOverdue: z .boolean() .optional() .default(true) .describe('Include overdue items'), }),
- src/nodes.ts:57-88 (registration)Registration of the 'get_due_items' tool on the MCP server using server.tool.server.tool( 'get_due_items', 'Get items due for review (inbox items)', { state: z.object({ includeOverdue: z .boolean() .optional() .default(true) .describe('Include overdue items'), }), }, async ({ state }) => { const result = await apiClient.getDueItems(state); if (result.error) { return { content: [{ type: 'text', text: result.error }], isError: true, }; } return { content: [ { type: 'text', text: JSON.stringify(result.data, null, 2), }, ], }; }, );
- src/api-client.ts:70-77 (helper)Helper method in API client that sends POST request to backend /mcp/due-items endpoint with parameters.async getDueItems(params: { includeOverdue?: boolean; }): Promise<ApiResponse<any>> { return this.request('/mcp/due-items', { method: 'POST', body: JSON.stringify(params), }); }