taskUnplanned
Track and manage unplanned tasks within Routine, ensuring efficient organization and prioritization of unexpected or ad-hoc activities.
Instructions
Unplanned tasks.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:888-906 (handler)The handler function for the 'taskUnplanned' tool, which retrieves unplanned tasks by making an RPC request to 'task.unplanned' and returns the JSON-formatted data or an error message.server.tool("taskUnplanned", "Unplanned tasks.", {}, async ({}) => { try { const data = await sendRpcRequest("task.unplanned", []); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.unplanned: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } });
- src/tools.ts:888-906 (registration)Registers the 'taskUnplanned' tool with the MCP server using server.tool(), including name, description, empty schema, and inline handler.server.tool("taskUnplanned", "Unplanned tasks.", {}, async ({}) => { try { const data = await sendRpcRequest("task.unplanned", []); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.unplanned: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } });