taskDay
Organize daily tasks by priority: starred, default, completed, or ignored. Manage calendars, tasks, and notes efficiently with Routine’s integrated tools.
Instructions
Tasks of a day sorted by: starred < default < (completed or ignored).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | Yes |
Implementation Reference
- src/tools.ts:784-802 (handler)The handler function for the 'taskDay' tool. It takes a 'day' parameter (tuple of [year, month, day]), sends an RPC request to 'task.day', and returns the JSON-stringified response or an error message.async ({ day }) => { try { const data = await sendRpcRequest("task.day", [day]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.day: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
- src/tools.ts:779-783 (schema)Input schema for 'taskDay' tool defining the 'day' parameter as a tuple of three integers representing [year, month, day].{ /* {"items":[{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"},{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"},{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"}],"$id":"#date","$schema":"https://json-schema.org/draft/2019-09/schema","type":"array"} */ day: z.tuple([z.number().int(), z.number().int(), z.number().int()]), },
- src/tools.ts:776-803 (registration)Registration of the 'taskDay' MCP tool using server.tool(), including description, input schema, and handler function.server.tool( "taskDay", "Tasks of a day sorted by: starred < default < (completed or ignored).", { /* {"items":[{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"},{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"},{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"}],"$id":"#date","$schema":"https://json-schema.org/draft/2019-09/schema","type":"array"} */ day: z.tuple([z.number().int(), z.number().int(), z.number().int()]), }, async ({ day }) => { try { const data = await sendRpcRequest("task.day", [day]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.day: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );