Skip to main content
Glama

get_todo

Retrieve detailed todo item information including task context, assignee details, due dates, time tracking, and attachments from Productive.io.

Instructions

Get specific todo checklist item details with full task context.

Returns detailed todo information including:

  • Checkbox item text and completion status

  • Parent task with project and client details

  • Assignee and team member information

  • Due date relative to parent task timeline

  • Time estimates vs actual completion time

  • Related comments and file attachments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
todo_idYesProductive todo ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler function that executes the core logic: fetches the todo via the Productive client, applies response filtering, handles API errors consistently, and returns ToolResult.
    async def get_todo(ctx: Context, todo_id: int) -> ToolResult:
        """Fetch a single todo by ID and sanitize the response."""
        try:
            await ctx.info(f"Fetching todo with ID: {todo_id}")
            result = await client.get_todo(todo_id)
            await ctx.info("Successfully retrieved todo")
            
            filtered = filter_response(result)
            
            return filtered
            
        except ProductiveAPIError as e:
            await _handle_productive_api_error(ctx, e, f"todo {todo_id}")
        except Exception as e:
            await ctx.error(f"Unexpected error fetching todo: {str(e)}")
            raise e
  • server.py:460-475 (registration)
    Registration of the 'get_todo' tool in the FastMCP server using @mcp.tool decorator. Defines input schema via Annotated[Field] for todo_id parameter and comprehensive docstring description.
    @mcp.tool
    async def get_todo(
        ctx: Context,
        todo_id: Annotated[int, Field(description="Productive todo ID")],
    ) -> Dict[str, Any]:
        """Get specific todo checklist item details with full task context.
    
        Returns detailed todo information including:
        - Checkbox item text and completion status
        - Parent task with project and client details
        - Assignee and team member information
        - Due date relative to parent task timeline
        - Time estimates vs actual completion time
        - Related comments and file attachments
        """
        return await tools.get_todo(ctx, todo_id)
  • Helper method in ProductiveClient that makes the raw API request to fetch a single todo by ID from the Productive /todos/{id} endpoint.
    async def get_todo(self, todo_id: int) -> Dict[str, Any]:
        """Get todo by ID"""
        return await self._request("GET", f"/todos/{str(todo_id)}")
  • tools.py:9-24 (helper)
    Shared helper function used by get_todo (and other tools) for consistent error handling of ProductiveAPIError, logging via MCP context, and special handling for 404/401 responses.
    async def _handle_productive_api_error(ctx: Context, e: ProductiveAPIError, resource_type: str = "data") -> None:
        """Handle ProductiveAPIError consistently across all tool functions.
        
        Developer notes:
        - ctx: MCP context for logging and error handling
        - e: The ProductiveAPIError exception
        - resource_type: Type of resource being fetched (e.g., "projects", "tasks", "comments")
        """
        await ctx.error(f"Productive API error: {e.message}")
        
        if e.status_code == 404:
            await ctx.warning(f"No {resource_type} found")
        elif e.status_code == 401:
            await ctx.error("Invalid API token - check configuration")
        
        raise e
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It describes what information is returned (e.g., checkbox status, parent task details), which adds some behavioral context, but it doesn't disclose critical traits like whether this is a read-only operation, error handling, authentication needs, rate limits, or performance characteristics. For a tool with no annotations, this is a significant gap in behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. The bulleted list efficiently details return values without redundancy. However, the second sentence could be more concise, and some information might be better structured, but overall it's clear and wastes little space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema (implied by context signals), the description doesn't need to explain return values in detail, yet it provides a helpful bulleted list of what's included. With no annotations and a simple input schema, the description covers purpose and output context well, but it lacks behavioral and usage guidance, making it slightly incomplete for full agent understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with 'todo_id' documented as 'Productive todo ID'. The description adds value by clarifying that this is for a 'specific todo checklist item', reinforcing the parameter's purpose. However, it doesn't provide additional semantics like format examples or constraints beyond the schema, so it slightly enhances but doesn't fully compensate (though baseline is 3 due to high schema coverage).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get specific todo checklist item details') and resource ('todo checklist item'), distinguishing it from siblings like get_todos (plural) and get_task (parent task). It specifies it returns 'full task context' and detailed information, making the purpose explicit and differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by mentioning 'specific todo checklist item' and 'todo_id', suggesting it's for retrieving details of a single todo, but it doesn't explicitly state when to use this versus alternatives like get_todos (for lists) or get_task (for parent tasks). No exclusions or clear alternatives are provided, leaving usage context somewhat vague.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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/druellan/Productive-GET-MCP'

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