Skip to main content
Glama

task_done

Destructive

Finishes the work on a taken task (shared team data): outcome, result, message and usage in one call. Outcomes: done (the work is done or accepted and the task moves on), return (sent back with a required message, including bugs in work returning to testing), wait (the part is done, the task waits in the queue), close. The server makes the transition, closes the worklog and calculates the cost of the work from the difference of the start and end snapshots.

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": {
      "outcome": "<outcome>",
      "run": "<run>"
    },
    "name": "task_done"
  }
}

Input Schema

NameRequiredDescriptionDefault
IDNoTask ID; preferred over key.
keyNoTask number without #, if the ID is unknown.
runYesSession counters accumulated since its start, as at the start of the work, at the end of the same session; limits - subscription limits at the end (window to utilization 0-1 and resetsAt in ISO 8601), accuracy 0-1 - counters accuracy, 1 by default.
gistNoGist: one or two plain-text sentences "problem → solution", up to 300 characters, without Markdown, links or task keys, in the language of the workspace data; updated if the solution changed.
resultNoResult: in work - the whole result field (Markdown in the language of the workspace data, HTML is rejected; replaces the whole field), the tester's "QA verification" block is kept by the server; a large result is edited in parts beforehand and omitted here; in testing - only that block, placed by the server at the end of the field; not accepted at approval and review.
messageNoMessage to the task chat: required for a return (what to fix); otherwise only what people need to know.
outcomeYesOne of the outcomes returned when the task was taken; close applies only at the user's direct request.
moduleIDsNoFull new list of modules actually touched.
attachmentsNoFile IDs (fid) of uploaded files, up to 5, attached to the message.
closeReasonNoClosing reason, required for close: resolved, notDoing, notReproducible, notBug or duplicate; the explanation goes in the message.
componentIDsNoFull new list of components actually touched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / result / description
      Previous value: -"Result: in work - the whole result field (Markdown in the language of the workspace data, HTML is rejected; replaces the whole field), the tester's \"QA verification\" block is kept by the server; in testing - only that block, placed by the server at the end of the field; not accepted at approval and review."New value: +"Result: in work - the whole result field (Markdown in the language of the workspace data, HTML is rejected; replaces the whole field), the tester's \"QA verification\" block is kept by the server; a large result is edited in parts beforehand and omitted here; in testing - only that block, placed by the server at the end of the field; not accepted at approval and review."
  2. Changed1 schema field changed
    • changedInput schema / properties / outcome / description
      Previous value: -"One of the outcomes returned when the task was taken."New value: +"One of the outcomes returned when the task was taken; close applies only at the user's direct request."
  3. Changed1 schema field changed
    • changedInput schema / properties / result / description
      Previous value: -"Result: in work - the whole result field (Markdown in the language of the workspace data, HTML is rejected; replaces the whole field); in testing - only the \"QA verification\" block placed at the end of the field; not accepted at approval and review."New value: +"Result: in work - the whole result field (Markdown in the language of the workspace data, HTML is rejected; replaces the whole field), the tester's \"QA verification\" block is kept by the server; in testing - only that block, placed by the server at the end of the field; not accepted at approval and review."
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is supplied; the description then adds real behavior beyond that: the server performs the transition, closes the worklog, and computes cost from the start/end snapshot delta. It does not spell out permission requirements or what becomes immutable after close, but the side-effect disclosure is substantive.

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?

Two sentences, front-loaded with the action and resource, and every clause carries information the caller needs. The outcome list is dense and somewhat run-on, but nothing 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 an 11-parameter mutation with a nested run object and no output schema, the description covers the transition model, the worklog/cost side effects, and the outcome branches, while the schema handles the usage payload. Remaining gaps are modest: no return-shape expectation and no note on what state the task must be in for each outcome to be valid.

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%, so the schema already documents all 11 parameters including the nested run counters and the outcome enum. The description's outcome glosses add decision meaning rather than technical meaning beyond the schema, so the baseline of 3 applies.

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 specific verb and resource — 'Finishes the work on a taken task' — and enumerates the four outcomes it can apply, which separates it from task_take and task_update without naming them. The 'taken task' qualifier signals the workflow position, though no sibling is named explicitly, which keeps it just below a 5.

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?

Each outcome carries a parenthetical decision rule: done means the work is accepted and moves on, return requires a message and covers bugs going back to testing, wait means only part is done, and close is gated on the user's direct request. That is concrete when-to-pick-which guidance for the main branching decision, but it offers no guidance on using task_update for partial edits instead of finishing.

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