Skip to main content
Glama

taskGet

Retrieve specific task details from Routine by providing a unique task ID. Simplify task management and tracking with direct access to task information.

Instructions

A task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • src/tools.ts:806-832 (registration)
    Registration of the taskGet tool including inline Zod schema for input 'id' (string) and the handler function that sends an RPC request to 'task.get' with the id and returns the JSON-formatted response or an error.
    "taskGet", "A task.", { /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), }, async ({ id }) => { try { const data = await sendRpcRequest("task.get", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.get: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );
  • The core handler function for the taskGet tool. It takes a task id, calls sendRpcRequest to the backend 'task.get' RPC, stringifies the result as JSON text, and handles errors appropriately.
    async ({ id }) => { try { const data = await sendRpcRequest("task.get", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.get: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
  • Input schema for taskGet tool using Zod: requires a string 'id' parameter representing the task ID.
    { /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), },

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