Skip to main content
Glama

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

Implementation Reference

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

Other Tools

Related Tools

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/routineco/mcp-server'

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