Skip to main content
Glama

create_tasks

Add new tasks to Todoist with titles, descriptions, priorities, due dates, labels, and project assignments to organize work and track progress.

Instructions

Create new tasks in Todoist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes

Implementation Reference

  • Core handler logic for the 'create' mode in createBatchApiHandler: constructs the API path and performs POST request to Todoist /tasks endpoint with task parameters to create new tasks.
    // Create mode
    else {
        finalPath = options.path || options.basePath || '';
    
        let result;
        switch (options.method) {
            case 'GET':
                result = await todoistApi.get(finalPath, apiParams);
                break;
            case 'POST':
                result = await todoistApi.post(finalPath, apiParams);
                break;
            case 'DELETE':
                result = await todoistApi.delete(finalPath);
                break;
        }
    
        return {
            success: true,
            created_item: result,
        };
    }
  • Schema definition and configuration for the create_tasks tool: Zod itemSchema for batch items, using common create_fields, with additional project/section/parent options.
    createBatchApiHandler({
        name: 'create_tasks',
        description: 'Create new tasks in Todoist',
        itemSchema: {
            ...create_fields,
            project_id: z
                .string()
                .optional()
                .describe("Task project ID. If not set, task is put to user's Inbox"),
            section_id: z.string().optional(),
            parent_id: z.string().optional(),
        },
        method: 'POST',
        path: '/tasks',
        mode: 'create',
    });
  • Registration of the create_tasks MCP tool via createBatchApiHandler, which internally calls createHandler to register with server.tool.
    createBatchApiHandler({
        name: 'create_tasks',
        description: 'Create new tasks in Todoist',
        itemSchema: {
            ...create_fields,
            project_id: z
                .string()
                .optional()
                .describe("Task project ID. If not set, task is put to user's Inbox"),
            section_id: z.string().optional(),
            parent_id: z.string().optional(),
        },
        method: 'POST',
        path: '/tasks',
        mode: 'create',
    });
  • Shared Zod schema (create_fields) for task creation parameters, referenced in create_tasks itemSchema.
    /// Common fields for create and update tasks
    const create_fields = {
        content: z
            .string()
            .describe('Task title (brief). May contain markdown-formatted text and hyperlinks'),
        description: z
            .string()
            .optional()
            .describe('Description (detailed). May contain markdown-formatted text and hyperlinks'),
        labels: z.array(z.string()).optional(),
        priority: z.number().int().min(1).max(4).optional().describe('From 1 (urgent) to 4 (normal)'),
        due_string: z
            .string()
            .optional()
            .describe(
                'Human defined task due date (ex.: "next Monday", "Tomorrow"). Value is set using local (not UTC) time, if not in english provided, due_lang should be set to the language of the string'
            ),
        due_date: z
            .string()
            .optional()
            .describe(
                'Due date in YYYY-MM-DD format relative to user timezone (when you plan to work on task)'
            ),
        due_datetime: z.string().optional().describe('Specific date and time in RFC3339 format in UTC'),
        due_lang: z
            .string()
            .optional()
            .describe('2-letter code specifying language in case due_string is not written in english'),
        assignee_id: z
            .string()
            .optional()
            .describe('The responsible user ID (only applies to shared tasks)'),
        duration: z
            .number()
            .int()
            .positive()
            .optional()
            .describe(
                'A positive (greater than zero) integer for the amount of duration_unit the task will take'
            ),
        duration_unit: z
            .enum(['minute', 'day'])
            .optional()
            .describe(
                'The unit of time that the duration field represents. Must be either minute or day'
            ),
        deadline_date: z
            .string()
            .optional()
            .describe(
                'Deadline date in YYYY-MM-DD format relative to user timezone (fixed date when task must be completed, for tasks with external consequences)'
            ),
        deadline_lang: z.string().optional().describe('2-letter code specifying language of deadline'),
    };
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a creation operation but doesn't mention authentication requirements, rate limits, whether tasks are created immediately or queued, or what happens on success/failure. For a mutation tool with zero annotation coverage, this is insufficient.

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, efficient sentence with zero wasted words. It's appropriately sized for a tool with a clear primary function and gets straight to the point without unnecessary elaboration.

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?

For a task creation tool with no annotations, no output schema, and 0% schema description coverage, the description is inadequate. It doesn't explain what parameters are needed, what the tool returns, or any behavioral aspects like permissions or side effects. The context demands more comprehensive documentation.

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

Parameters3/5

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

The schema description coverage is 0%, meaning all parameters are undocumented in the schema. The description doesn't mention any parameters at all, failing to compensate for this gap. However, the tool has only 1 top-level parameter ('items'), which is an array of task objects, making the baseline reasonable at 3 despite the lack of parameter explanation.

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 ('Create new tasks') and target system ('in Todoist'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'create_projects' or 'create_labels' beyond the resource type, which prevents a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives like 'update_tasks' or 'create_projects', nor does it mention prerequisites, constraints, or appropriate contexts for task creation. It's a bare statement of functionality.

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