Skip to main content
Glama

Complete a task

complete_task

Mark a task done by submitting a completion report with optional artifact links; restricted to the assignee, creator, or admin.

Instructions

Mark a task done with a completion report and optional artifact links (pull request, document, build). Only the assignee (or creator/admin) can. On a public task the report is visible to the assignee and the project's owner only.

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": {
      "workspaceId": "<workspaceId>",
      "taskId": "<taskId>",
      "report": "<report>"
    },
    "name": "complete_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportYesWhat was done, decisions, anything a reviewer needs
taskIdYes
artifactsNo
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.8

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only cover the readOnly/destructive profile; the description adds real behavioral context the annotations cannot: the authorization rule and the fact that on a public task the report's visibility is narrowed to the assignee and project owner. It does not say whether completion is reversible or what state the task ends in, which is the main remaining gap.

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 compact sentences, front-loaded with the action and payload, then permissions, then a visibility caveat. Nothing is redundant, though the visibility sentence is slightly ambiguous in phrasing ("visible to the assignee and the project's owner only" – as opposed to whom?).

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 mutation with no output schema, the definition covers what it does, who may do it, and an important privacy consequence. Missing are the post-call state and whether re-completing an already-done task errors, which an agent would want before calling.

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 25%, so the description must carry weight and it does partially: it clarifies that artifacts are optional and gives examples (pull request, document, build) that define their intended use, and it characterizes the report's content. It gives no meaning for workspaceId and no constraints on artifact label/url beyond the schema.

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?

"Mark a task done" is a specific verb plus resource, and the description names the payload (completion report, artifact links) and the authorization boundary. It is distinguishable from state-transition siblings such as approve_task or claim_task without opening the schema, though it never names them explicitly.

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?

The permission precondition ("Only the assignee (or creator/admin) can") is genuinely useful usage guidance, telling the agent when this call will fail. There is no statement of when to prefer this over update_task or approve_task, and no note on whether a task must be claimed or approved first.

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