Skip to main content
Glama

get_todo

Retrieve specific todo item details by providing its unique identifier to view task information and status.

Instructions

Get details of a specific todo item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
todo_idYesUUID of the todo item

Implementation Reference

  • The get_todo tool is registered and handled directly within src/index.ts. It takes a todo_id, makes an API request, and returns formatted todo details or a not found message.
    mcp.tool(
      "get_todo",
      "Get details of a specific todo item.",
      {
        todo_id: z.string().describe("UUID of the todo item"),
      },
      async ({ todo_id }) => {
        try {
          const todo = await makeRequest<Todo>("GET", `/api/todos/${todo_id}`);
          return { content: [{ type: "text", text: formatTodo(todo) }] };
        } catch (e: unknown) {
          if ((e as NodeJS.ErrnoException).code === "404")
            return { content: [{ type: "text", text: "Todo not found." }] };
          throw e;
        }
      }

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/bba432288-beep/mcp-server-todo'

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