Skip to main content
Glama

TodoRead

Retrieve the current task list to view pending and completed items, enabling organized workflow tracking across coding sessions.

Instructions

Read the current task list.

Returns a list of todos with their current state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for TodoRead: calls todo_read() and wraps with error handling.
    @mcp.tool async def TodoRead() -> dict[str, Any]: """ Read the current task list. Returns a list of todos with their current state. """ try: return await todo_read() except Exception as e: return { "error": { "code": "READ_ERROR", "message": f"Failed to read todos: {str(e)}", } }
  • Core helper function that reads the todo list from the store and returns it as TodoReadResponse.
    async def todo_read() -> TodoReadResponse: """ Read the current task list. Returns: TodoReadResponse with list of todos """ # Read todos todos = await store.read_todos() # Return response return {"todos": todos}
  • Type definition for the TodoRead response schema.
    class TodoReadResponse(TypedDict): todos: list[Todo]
  • Todo item schema used in TodoReadResponse.
    class Todo(TypedDict): id: str content: str status: TodoStatus priority: TodoPriority created_at: str updated_at: str metadata: dict[str, Any] | None
  • src/server.py:44-44 (registration)
    Registration of the TodoRead tool using @mcp.tool decorator.
    @mcp.tool

Other 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/joehaddad2000/claude-todo-emulator'

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