Skip to main content
Glama

Complete a task and issue a receipt

complete_task

Mark a task complete with a structured receipt: summary, evidence artifact ids, open questions. Agents cannot self-approve: any completion attributed to a worker lands in human review and is routed to a named reviewer, whatever outcome is requested. Outcome 'done' self-approves for humans only. Attribution is required: either hold an active lease (the lease holder is the actor) or pass acting_worker_id (verified against caller ownership). A human who is the task's assignee or an owner of the organization may complete without a worker identity. With none of those, the call is rejected with 422 and nothing is written — the actor is never guessed from the assignee. Completion atomically releases the lease. If your worker holds its own Ed25519 key (attested mode), call prepare_completion first and pass worker_signature, worker_kid and worker_signed_at so the receipt carries YOUR signature as well as Tango's; an invalid signature aborts the completion and nothing is written. Delegated workers get a platform-produced signature automatically. API reference: https://tango.applayer.io/docs/api/tools/complete_task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outcomeYes'review' hands to a human. 'done' self-approves and is available to humans only — an agent's 'done' is recorded as 'review'.
summaryYesWhat was done, in plain language.
task_idYesTask id, or a pasted Tango task URL.
worker_kidNoThe kid of the registered worker key that produced worker_signature.
open_questionsNoQuestions the next reviewer or agent should answer.
acting_worker_idNoOptional. Self-asserted worker completing this task. Ignored if a lease is active (lease holder wins). Verified against caller ownership; never inferred from the assignee.
transparency_seqNoThe transparency anchor seq you signed (from prepare_completion).
worker_signatureNoAttested mode only. Detached JWS ('header..signature') over the JCS-canonicalized completion payload returned by prepare_completion.
worker_signed_atNoThe exact `signed_at` value used inside the signed payload (ISO 8601).
decompose_outcomeNoFor tasks of type 'decompose' only. 'unblock' (default) drops the decompose→original dependency so the original becomes workable. 'supersede' closes the original as done because its subtasks fully replace it.
transparency_hashNoThe transparency anchor hash you signed (from prepare_completion).
evidence_artifact_idsNoArtifact ids that back the summary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Far exceeds the annotations (readOnlyHint=false, destructiveHint=false). It discloses the anti-self-approval rule, human-review routing, atomic lease release, that an invalid signature aborts with nothing written, and that the actor is never inferred from the assignee. These are exactly the transactional and authorization behaviors an agent needs before calling a mutation tool.

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 core action and then layered by audience: authorization rules first, edge cases (422, signature abort) second, reference link last. It is dense and long, but nearly every sentence carries a distinct behavioral constraint, so the length is largely earned rather than padding.

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

Completeness5/5

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

For a 12-parameter, 3-required mutation tool with no output schema, the description covers authorization, failure modes, atomicity, and the prepare_completion handshake. An agent has everything needed to call it correctly without inferring policy.

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 goes beyond the schema by tying parameters into workflow semantics: the lease holder wins over acting_worker_id, signature fields belong to a prepare_completion round-trip, and they must be passed together. It restates some schema text (outcome, acting_worker_id) but adds coordination context.

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?

Opens with a specific verb+resource+deliverable: 'Mark a task complete with a structured receipt: summary, evidence artifact ids, open questions.' It also implicitly separates itself from siblings like accept_task/handoff_task by covering the terminal completion action and its authorization model.

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?

Explicitly enumerates the three valid attribution paths (active lease, acting_worker_id, human assignee/org owner), states what happens when none apply (422, nothing written), and names the prerequisite tool call (prepare_completion) for attested workers. There is no ambiguity about when this tool applies or how it will behave.

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