Skip to main content
Glama

Complete a task

complete_task
DestructiveIdempotent

Mark a task as completed in Google Tasks. This reversible action returns the updated task and does not affect subtasks.

Instructions

Marks a task completed (status=completed; the API stamps the completed timestamp). This is REVERSIBLE — reopen_task undoes it — and is the right call for "done", unlike delete_task which erases the task. The API call touches only the addressed task: completing a parent does NOT cascade to its subtasks — complete them individually if the whole tree is done. A completed task stays listed until cleared: list_tasks still returns it with show_completed=true (+ show_hidden=true after a clear). Returns the updated task with status and completed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesThe task id — from list_tasks, get_task or create_task output.
tasklist_idYesThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.
Behavior5/5

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

The annotations already indicate mutation and destructiveness, but the description adds valuable behavioral detail: the operation is reversible, it does not cascade to subtasks, and completed tasks remain listed until cleared with specific flags. It also discloses return behavior. There is no contradiction with annotations because destructiveHint is consistent with mutating task state, and the description clarifies the scope and reversibility.

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 compact but information-dense. Every sentence contributes either a precise action, a contrast with a sibling, a non-obvious behavioral caveat, or the return contract. It is front-loaded with the core action and then branches into the most decision-relevant caveats.

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?

With no output schema, the description supplies the return shape ('updated task with status and completed'). It covers reversibility, cascade semantics, listing behavior after completion, and the correct usage boundaries versus siblings. For a two-parameter, fully-schema-documented tool, nothing essential is missing.

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 coverage is 100%, so both parameters are already fully documented with provenance and the @default convention. The description does not need to repeat or add parameter detail; it simply relies on the schema, which is acceptable.

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 explicitly that the tool marks a task completed with status=completed and a stamped timestamp. It clearly differentiates itself from reopen_task and delete_task by describing what each sibling does differently. The behavior on parent tasks is also defined, which sharpens the purpose.

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 direct guidance on when to use it ('the right call for done') and when not to ('unlike delete_task', 'does NOT cascade to its subtasks'). It also names reopen_task as the undo path and tells the caller to complete subtasks individually when needed. This is explicit routing information.

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/A1-x-Tech/mcp-google-tasks'

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