Skip to main content
Glama

Finish work on a task

finish_task_work
Idempotent

Mark the work on a task handed to an agent as finished and ready for the user's review, with a link to the result (https) and a short note of what was done; the note shows in the task's AI chat. A note alone also fits for asking the user a question or proposing a plan. Call start_task_work first and finish only a task it gave you (taken true). A task already handed in, with no new note from the user, comes back unchanged. Tick the subtasks you did with update_subtask first. Never mark the task itself done: the user does that after reviewing.

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>"
    },
    "name": "finish_task_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhat was done, in two or three lines, in the user's language
task_idYes
result_urlNoWhere the user sees the result (a document, a page, a preview, a pull request)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, idempotent, non-destructive). The description goes further: the note is surfaced in the task's AI chat, a re-finish with no new user note returns unchanged, and task status must not be flipped to done — context an agent cannot get from 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?

Front-loaded with the primary action, then prerequisites and guardrails in a logical order with no filler. It is dense — several clauses are packed with semicolons — but every sentence carries operational information.

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 output schema, it covers prerequisites, side effects, idempotency, and boundaries well. It leaves the concrete return value only implicit ('comes back unchanged'), which is a minor gap rather than a blocking one.

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 67% and task_id has no schema description at all. The description compensates by clarifying what result_url means (a link where the user sees the result, https) and that a note alone is a valid invocation, implicitly making result_url optional in practice.

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 a specific verb and resource ('Mark the work on a task handed to an agent as finished and ready for the user's review') plus the two payload elements it accepts. It is clearly distinguishable from start_task_work, update_subtask, and update_task, which are named in the text.

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 explicit ordering (call start_task_work first, tick subtasks with update_subtask first), an eligibility condition ('finish only a task it gave you (taken true)'), and a prohibition ('Never mark the task itself done'). It also names an alternative use case — a note alone for asking the user a question or proposing a plan.

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.