Skip to main content
Glama

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
NameRequiredDescriptionDefault
stateYes

Implementation Reference

  • 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), }, ], }; },
  • 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), }, ], }; }, );
  • 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), }); }

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/danieliser/Resurgo-MCP'

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