Skip to main content
Glama

tasks.tasks.clear

Clear all completed tasks from a specified task list, hiding them so they are no longer returned by default. Use this to tidy up a list without deleting tasks permanently.

Instructions

Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: delete, get, insert, list, move, patch, update.

Input Schema

NameRequiredDescriptionDefault
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
paramsNoParameter map merged into the request; typed parameters win.
dry_runNoReturn the request that would be sent, without sending it.
tasklistYes[URL path segment] Task list identifier.
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tasklist / description
      Previous value: -"Task list identifier."New value: +"[URL path segment] Task list identifier."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that affected tasks are hidden rather than removed, that they disappear from default listings, that the operation is a POST-style mutation, and that it is refused under readonly safety profiles. It stops short of stating required auth scopes or whether the hiding is reversible.

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?

The purpose and key behavioral caveat are front-loaded, and the description is reasonably sized for a 5-parameter mutation tool. The trailing sibling list and HTTP/body-building boilerplate are useful but slightly dilute conciseness.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description covers purpose, non-destructive 'hide' behavior, readonly refusal, return format, and request-body construction. It lacks permission/scope details and a description of the returned resource, but remains adequate to invoke the tool correctly.

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 adds useful cross-parameter semantics: typed parameters override the `params` map, and `body_file` can supply the whole request body instead. This meaningfully supplements the schema descriptions.

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?

The description states a specific verb and resource: 'Clears all completed tasks from the specified task list.' It also clarifies the non-obvious effect that tasks are marked hidden rather than deleted, which distinguishes this from a destructive delete operation.

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

Usage Guidelines3/5

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

Usage is implied by the 'clears all completed tasks' phrasing and the note that it is refused under --readonly profiles. However, it does not explicitly say when to use this tool instead of siblings such as delete, patch, or update; it merely lists those siblings.

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

Deploy Server

Other Tools