Skip to main content
Glama
mikemc

Todoist MCP Server

by mikemc

todoist_get_projects

Retrieve all projects from a Todoist account via the Todoist MCP Server, enabling users to view and manage task organization through Claude’s interface.

Instructions

Get all projects from the user's Todoist account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the todoist_get_projects tool. It retrieves all projects from the Todoist API using the provided client, handles pagination, and returns a JSON-formatted list of projects or an error message.
    def todoist_get_projects(ctx: Context) -> str:
        """Get all projects from the user's Todoist account
        """
        todoist_client = ctx.request_context.lifespan_context.todoist_client
    
        try:
            logger.info("Getting all projects")
    
            # Consume iterator to flatten paginated results into single list
            projects_iterator = todoist_client.get_projects()
            all_projects = []
    
            for project_batch in projects_iterator:
                all_projects.extend(project_batch)
                # Break early when partial batch indicates end of results
                if len(project_batch) < 200:
                    break
    
            if not all_projects:
                logger.info("No projects found")
                return "No projects found in your Todoist account"
    
            logger.info(f"Retrieved {len(all_projects)} projects")
            return json.dumps([project.to_dict() for project in all_projects], indent=2, default=str)
        except Exception as error:
            logger.error(f"Error getting projects: {error}")
            return f"Error getting projects: {str(error)}"
  • src/main.py:72-72 (registration)
    The registration of the todoist_get_projects tool using the MCP FastMCP decorator, which automatically generates the tool schema from the function signature and registers it with the server.
    mcp.tool()(todoist_get_projects)
  • src/main.py:12-18 (registration)
    Import statement that brings the todoist_get_projects handler into main.py for registration.
    from .projects import (
        todoist_get_projects,
        todoist_get_project,
        todoist_add_project,
        todoist_update_project,
        todoist_delete_project,
    )
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It implies a read operation ('Get') but doesn't disclose authentication requirements, rate limits, pagination, sorting, or return format. For a tool with zero annotation coverage, this leaves critical behavioral traits unspecified.

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

Conciseness5/5

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

The description is a single, clear sentence with zero wasted words. It's front-loaded with the core action ('Get all projects') and efficiently specifies the source ('from the user's Todoist account'). Every element earns its place without redundancy.

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

Completeness2/5

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

Given the complexity of a data retrieval tool with no annotations and no output schema, the description is incomplete. It doesn't explain what 'all projects' entails (e.g., archived vs. active, ordering), authentication needs, or response structure. For a tool in a family with many siblings, more context is needed to guide proper use.

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 tool has 0 parameters with 100% schema description coverage, so the schema fully documents the absence of inputs. The description adds no parameter information, which is acceptable given the baseline. No compensation is needed, and it doesn't contradict the schema.

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

Purpose4/5

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

The description clearly states the verb ('Get') and resource ('all projects'), specifying the scope ('from the user's Todoist account'). It distinguishes from sibling 'todoist_get_project' (singular) by indicating retrieval of all projects rather than a specific one. However, it doesn't explicitly differentiate from other list-like siblings like 'todoist_get_sections' or 'todoist_get_tasks'.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication), compare with 'todoist_get_project' for single-project retrieval, or indicate use cases like project listing versus task listing. The description only states what it does, not when it's appropriate.

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

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/mikemc/todoist-mcp-server'

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