Skip to main content
Glama
Todoist AI MCP Server
by todoist

update-sections

Destructive

Update, archive, or unarchive up to 25 existing Todoist sections in one request so AI agents can rename sections or change their archived status.

Instructions

Update, archive or unarchive multiple existing sections.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sections": "<sections>"
    },
    "name": "update-sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectionsYesThe sections to update.

Output Schema

NameRequiredDescriptionDefault
failuresYesSections that could not be updated, with the reason for each.
sectionsYesThe updated sections.
totalCountYesThe total number of sections updated.
appliedOperationsYes
updatedSectionIdsYesThe IDs of the updated sections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv21.0.2
    • addedInput schema / properties / sections / items / properties / isArchived
      Added value: +{
      +  "description": "true archives (keeping its tasks, unlike delete-object), false unarchives.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv18.1.0
    • addedOutput schema / properties / failures / items / properties / retryAfterSeconds
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
  3. Changed1 schema field changedv17.0.0
    • addedInput schema / properties / sections / maxItems
      Added value: +25
  4. Changed3 schema fields changedv13.8.0
    • addedOutput schema / properties / appliedOperations
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "failureCount": {
      +      "type": "number"
      +    },
      +    "updateCount": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "updateCount",
      +    "failureCount"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / failures
      Added value: +{
      +  "description": "Sections that could not be updated, with the reason for each.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "item": {
      +        "description": "Usually the ID of the item that failed.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "item",
      +      "error"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "sections",
      -  "totalCount",
      -  "updatedSectionIds"
      -]New value: +[
      +  "sections",
      +  "totalCount",
      +  "updatedSectionIds",
      +  "failures",
      +  "appliedOperations"
      +]
  5. Changed2 schema fields changedv13.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  6. Changed4 schema fields changedv12.5.3
    • changedOutput schema / properties / sections / items / properties / description / description
      Previous value: -"The description of the section. Supports Markdown."New value: +"Supports Markdown."
    • removedOutput schema / properties / sections / items / properties / id / description
      Removed value: -"The unique ID of the section."
    • removedOutput schema / properties / sections / items / properties / name / description
      Removed value: -"The name of the section."
    • changedOutput schema / properties / sections / items / properties / sectionOrder / description
      Previous value: -"The ordering index of the section within its project."New value: +"Ordering index within the project."
  7. Changed2 schema fields changedv12.1.2
    • addedOutput schema / properties / sections / items / properties / sectionOrder
      Added value: +{
      +  "description": "The ordering index of the section within its project.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / sections / items / required
      Previous value: -[
      -  "id",
      -  "name"
      -]New value: +[
      +  "id",
      +  "name",
      +  "sectionOrder"
      +]
  8. First observedv10.4.2

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is known. The description adds almost no behavioral context beyond them: it does not explain that archiving is the destructive path, does not mention the 25-section batch cap, and does not say what happens if some IDs are invalid or how partial failures are reported.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its terseness borders on under-specification rather than tight editing.

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

Completeness3/5

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

The tool is a destructive batch mutation with an output schema and fully documented nested parameters, which lowers the burden. Still, the description omits the batch limit, partial-failure behavior, and the fact that archiving hides sections from active views—relevant details for an agent invoking a destructive operation.

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?

Schema description coverage is 100%, including the archive-vs-delete distinction and the null/empty-string clear semantics for description, so the schema carries the parameter burden. The description adds nothing about the single `sections` array beyond 'multiple existing sections', which is baseline-appropriate but not value-adding.

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 names a specific verb set (update, archive, unarchive), the resource (sections), and the batch scope (multiple existing), so an agent knows exactly what it does. It does not distinguish itself from siblings like add-sections or find-sections, though those are reasonably self-evident by name.

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?

There is no explicit guidance on when to use this versus add-sections (create) or find-sections (read), and no stated preconditions such as the sections needing to exist. The word 'existing' weakly implies a requirement, but no when-not-to-use or alternative routing is offered.

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