Skip to main content
Glama

task_done

Finish your run of the task and complete the task in one call. Uses a passed validation of the run, preferably one run with run_validate, or closes it unverified with not_verified_reason.

Instructions

Finish your run of the task and complete the task in one call. Uses a passed validation of the run, preferably one run with run_validate, or closes it unverified with not_verified_reason. A validation from run_validate counts only while the code is as it was when the check ran: if you changed the code since, the call fails with evidence_stale and the run stays open, so run the check again first.

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": {
      "task_id": "<task_id>",
      "summary": "<summary>"
    },
    "name": "task_done"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryYesResult summary; must not be blank.
task_idYesCanonical UUIDv7 task identifier of a task you claimed.
validation_idNoOptional passed validation of your run. Omitted: the latest passed validation of the run is used.
not_verified_reasonNoWhy the result could not be verified. Closes the task without a passed validation; the reason stays in its history.

Output Schema

NameRequiredDescriptionDefault
runNo
taskNo
errorNo
completionNo
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (which only say non-read-only, non-idempotent, non-destructive), the description discloses real behavior: validation is only valid while the code is unchanged, otherwise the call fails with evidence_stale and the run stays open. It does not say what state the run and task end in on success, which the output schema presumably covers.

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?

Three sentences, front-loaded with the main action, then the two completion paths, then the staleness caveat. Slightly dense phrasing ('Uses a passed validation of the run, preferably one run with run_validate') costs a little, but no sentence is filler.

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 four-parameter state-transition tool with full schema coverage, annotations, and an output schema, the description covers the happy path, the unverified alternative, and the main failure mode. Only the exact post-call state of the run/task is left implicit.

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, but the description adds the interaction semantics: validation_id defaults to the latest passed validation of the run, and not_verified_reason is the alternate closing path whose text persists in history. That is meaningful cross-parameter meaning, not repetition.

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?

States a concrete action set with resources: finishing a run and completing the task in one call, and names the sibling that produces the verification input (run_validate). It is clear what the tool does, though it never explicitly contrasts itself with task_commit or task_handoff, so the boundary is inferred.

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

Usage Guidelines4/5

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

Gives explicit paths: prefer a passed validation from run_validate, otherwise close unverified with not_verified_reason. It also states the failure-and-retry condition (evidence_stale means rerun the check first). What is missing is an exclusion, e.g. when to use task_commit instead of completing the task.

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