Skip to main content
Glama

move_tasks

Move Todoist tasks to different projects, sections, or parent tasks to reorganize your workflow.

Instructions

Move tasks to a different parent or section in Todoist. Exactly one of parent_id, section_id, or project_id must be provided

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes

Implementation Reference

  • Full implementation of the 'move_tasks' tool. Registers the tool with createSyncApiHandler, defines input schema, description, and custom handler logic via buildCommandArgs (constructs Todoist sync command for moving task) and validateItem (ensures exactly one destination). Uses Todoist sync API with commandType 'item_move'.
    createSyncApiHandler({
        name: 'move_tasks',
        description:
            'Move tasks to a different parent or section in Todoist. Exactly one of parent_id, section_id, or project_id must be provided',
        itemSchema: {
            task_id: z.string().optional(),
            task_name: z.string().optional(),
            parent_id: z.string().optional(),
            section_id: z.string().optional(),
            project_id: z.string().optional(),
        },
        commandType: 'item_move',
        idField: 'task_id',
        nameField: 'task_name',
        lookupPath: '/tasks',
        findByName: (name, items) =>
            items.find(item => item.content && item.content.toLowerCase().includes(name.toLowerCase())),
        buildCommandArgs: (item, itemId) => {
            const args: {
                id: string;
                parent_id?: string;
                section_id?: string;
                project_id?: string;
            } = { id: itemId };
    
            // Only one destination option
            if (item.parent_id) args.parent_id = item.parent_id;
            else if (item.section_id) args.section_id = item.section_id;
            else if (item.project_id) args.project_id = item.project_id;
    
            return args;
        },
        validateItem: item => {
            // Ensure exactly one destination is specified
            const destinationCount = [item.parent_id, item.section_id, item.project_id].filter(
                Boolean
            ).length;
    
            if (destinationCount !== 1) {
                return {
                    valid: false,
                    error: 'Exactly one of parent_id, section_id, or project_id must be provided',
                };
            }
    
            return { valid: true };
        },
    });
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool moves tasks, implying a mutation operation, but doesn't cover critical aspects like required permissions, whether the move is reversible, potential side effects (e.g., impact on task dependencies), or rate limits. This leaves significant gaps for a mutation tool.

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 extremely concise—just two sentences—with zero wasted words. It front-loads the core purpose and follows with a critical constraint, making it easy to parse and understand quickly.

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 mutation tool with no annotations, 0% schema description coverage, and no output schema, the description is incomplete. It lacks information on behavioral traits (e.g., permissions, side effects), detailed parameter usage, and expected outcomes, which are essential for safe and effective tool invocation.

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 description adds crucial semantic information beyond the input schema: it clarifies that exactly one of parent_id, section_id, or project_id must be provided, which isn't evident from the schema alone. With 0% schema description coverage and 1 parameter (a nested array), this compensation is valuable, though it doesn't fully explain the 'items' array structure or individual field purposes.

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 action ('Move tasks') and target ('to a different parent or section in Todoist'), which is specific and unambiguous. However, it doesn't explicitly differentiate from siblings like 'move_projects' or 'update_tasks' which might handle similar operations on different resources.

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 provides implicit usage guidance by specifying that exactly one of parent_id, section_id, or project_id must be provided, which helps understand when to use this tool. However, it doesn't explicitly mention when to choose this tool over alternatives like 'update_tasks' or 'move_projects', nor does it provide exclusions or prerequisites.

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

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