Skip to main content
Glama
Todoist AI MCP Server
by todoist

add-template

Create reusable Todoist templates from a project, CSV, or blank draft; preview and edit the draft before saving.

Instructions

Create a reusable template in the user's Todoist: from a project, like the app's "Save as template"; from CSV content; or from scratch, starting from a blank draft. By default it only returns the draft. Show it to the user and ask whether to change anything, even when they described the whole template, unless they asked to save as is. Then save with preview: false, and content if it was edited. Each save creates a new template, which cannot be deleted here.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe name of the template. Required to save.
colorNoColor for the entity. Accepts a color key (e.g. "berry_red") or display name (e.g. "Berry Red"). Valid colors: berry_red, red, orange, yellow, olive_green, lime_green, green, mint_green, teal, sky_blue, light_blue, blue, grape, violet, lavender, magenta, salmon, charcoal, grey, taupe. Unrecognized colors are omitted. Defaults to the project's color, or charcoal.
contentNoThe draft to save with preview: false, all of it: a draft with your edits, or one written from scratch. Anything left out isn't saved. With projectId, it replaces the project's content.
previewNoDefaults to true: return the draft without saving (blank, or from the project or CSV), to show the user and edit it first. Pass false only once the user has seen the draft, or asked to save as is.
projectIdNoStart from this project, like the app's "Save as template". It is copied, not changed.
workspaceNoWorkspace name or ID to save the template to, instead of the user's personal templates. Assignees are kept only when saving a project to its own workspace.
descriptionNoRequired to save. If the user gave none, write a one-sentence summary of the content.
csvFileContentNoStart from this CSV, e.g. from export-project or a file the user shared. Not with projectId.
sharedWithWorkspaceMembersNoShare a workspace template with the workspace's members. Defaults to false.

Output Schema

NameRequiredDescriptionDefault
nameNo
contentNoThe draft. Edit it and send it back as `content` to save it.
templateIdNoAbsent for a draft.
workspaceIdNoAbsent for personal templates.
workspaceErrorNoSet when the template was created but moving or sharing it failed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv18.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that every save accumulates a new, non-deletable template, that projectId's project is copied rather than modified, and that content replaces the project's content when projectId is present. These are consequential side effects an agent cannot infer from readOnlyHint=false / destructiveHint=false / idempotentHint=false.

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?

Front-loads the create action and the three sources, then the review-then-save workflow, so the reader gets the essentials in the first two sentences. It is dense and largely waste-free, but some sentences restate rules that also appear verbatim in the parameter descriptions (preview: false, CSV vs projectId), creating mild duplication.

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

Completeness5/5

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

For a 9-parameter, deeply nested, non-idempotent mutation with an output schema, the description covers the full mode selection, the review gate, the save conditions, and irreversibility. Return values are the output schema's job, so nothing an agent needs to call this correctly is missing.

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

Parameters5/5

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

Even with 100% schema coverage, the description adds decision rules the schema cannot: preview defaults to true and should flip to false only after review, content must be complete or omitted fields are dropped, csvFileContent is mutually exclusive with projectId, and name/description become mandatory at save time with a fallback instruction to write a one-sentence summary.

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?

States a specific verb and resource ("Create a reusable template in the user's Todoist") and immediately enumerates the three supported sources: from a project, from CSV content, or from scratch. It also implicitly separates itself from update/delete siblings by noting "Each save creates a new template, which cannot be deleted here."

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

Usage Guidelines5/5

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

Gives an explicit default ("By default it only returns the draft") plus a mandatory human-in-the-loop step: show the draft and ask about changes even when the template was fully described, unless the user asked to save as is. It also states the exact transition to commit ("Then save with preview: false") and an exclusion rule (CSV not with projectId).

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