Skip to main content
Glama

Complete or reopen tasks

complete_tasks
Idempotent

Mark tasks or subtasks done, or reopen them, in one call. task_ids takes 1 to 100 ids and may mix top-level tasks and subtasks, but every id must be in the list given by list_id; duplicate ids are ignored. completed defaults to true; pass false to reopen. Completing a parent task also completes all of its subtasks, but completing a subtask does not complete its parent, and reopening a parent does not reopen its subtasks. A task that is already in the requested state is left as it is, so repeating the call is harmless. All-or-nothing: if any id is not in that list, the call returns an error naming the missing ids and nothing is changed. Returns the affected tasks as they are now, in the order given. To change anything else about a task use update_task, and to remove tasks use delete_tasks.

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": {
      "list_id": "<list_id>",
      "task_ids": "<task_ids>"
    },
    "name": "complete_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
list_idYesId of the list that holds all of the tasks, from list_lists
task_idsYesIds of the tasks or subtasks to change, from get_list. 1 to 100, all in list_id; duplicates are ignored
completedNotrue marks them done (the default); false reopens them. Reopening a parent does not reopen its subtasks

Output Schema

NameRequiredDescriptionDefault
tasksYesThe affected tasks as they are now, in the order the ids were given

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, and the description reinforces idempotency ("repeating the call is harmless") and adds genuinely new behavioral detail: parent/subtask cascade asymmetry and all-or-nothing failure with nothing changed. What it does not add is permission requirements or confirmation needs beyond the error semantics it already describes. Rich context, but much of the safety profile was already in the annotations.

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?

Dense but front-loaded: the core action comes first, then constraints, then cascade rules, then error behavior, then sibling routing. Almost every clause carries operational weight, though "Returns the affected tasks as they are now, in the order given" overlaps with the existing output schema and could be trimmed.

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 batch mutation with cascade effects, the description supplies everything needed to call it correctly: id sourcing, list scoping, atomic failure mode, idempotency, and cascade direction. Return values are covered by the output schema and annotations cover the safety profile, so nothing material is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining the semantic consequence of completed=false (reopening a parent does not reopen its subtasks) and by clarifying that task_ids may mix top-level tasks and subtasks. Duplicate-ignoring and the 1–100 bound restate the schema rather than extend it, which keeps this short of a 5.

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?

Opens with a specific verb+resource: "Mark tasks or subtasks done, or reopen them, in one call." It covers both directions of the operation and the scope (tasks and subtasks), which no sibling name alone would convey. An agent can distinguish this from update_task and delete_tasks immediately.

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?

Explicitly routes the agent away from this tool for adjacent needs: "To change anything else about a task use update_task, and to remove tasks use delete_tasks." It also states the precondition that all ids must belong to list_id, which functions as a when-not-use constraint for cross-list batches.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources