Skip to main content
Glama

tascan_complete_task

Complete an ORDINARY task on behalf of a worker. Inserts a completion record and timer event. Coordination-cycle tasks (a CODE:/REVIEW: build or review, a Decision / Question / Integrate / Parked card on a project Decisions list — tasks that carry coord) are refused with 403 for every key tier: builds and reviews are completed by their runner, decisions only by the human on the worker page. SR-S2 rules (SR-API3): a key with an agent_id completes only as its own agent_registry worker (any other worker: 403 worker_not_key_owner); a key without one completes on behalf of the named worker (on_behalf_of, or worker_id) only when it is an owner/admin-tier root key, and the completion records on_behalf_of (actor and worker). A delegated key without an agent_id: 403 on_behalf_requires_owner_key.

Input Schema

NameRequiredDescriptionDefault
notesNoOptional completion notes
task_idYesTask ID to complete
worker_idNoWorker ID the completion is recorded for (an agent key: omit it, or pass its own worker)
on_behalf_ofNoWorker ID the completion is done on behalf of (for an owner/admin-tier key the same as worker_id; recorded)
response_valueNoResponse value (for text/number/choice tasks)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / on_behalf_of
      Added value: +{
      +  "description": "Worker ID the completion is done on behalf of (for an owner/admin-tier key the same as worker_id; recorded)",
      +  "type": "string"
      +}
    • changedInput schema / properties / worker_id / description
      Previous value: -"Worker ID performing the completion"New value: +"Worker ID the completion is recorded for (an agent key: omit it, or pass its own worker)"
    • changedInput schema / required
      Previous value: -[
      -  "task_id",
      -  "worker_id"
      -]New value: +[
      +  "task_id"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare this is a non-readonly, non-idempotent, non-destructive, closed-world write; the description goes far beyond by naming the exact 403 error codes (worker_not_key_owner, on_behalf_requires_owner_key), the permission tiers required, and the fact that actor and worker are both recorded on completion. None of this repeats the structured data and it is exactly the behavioral context needed to avoid a silent failure.

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?

The core action plus side effects are front-loaded, then the exclusion rule, then the key-tier rules – a sensible order. It is a single dense paragraph with heavy jargon, and a break between 'what it does' and 'authorization rules' would improve scanability, but every sentence carries information an agent needs.

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 write tool with annotations, full schema coverage, and no output schema, the definition covers side effects, authorization, and refusal modes well. It says nothing about re-completion of an already-completed task despite idempotentHint=false, and gives no hint of the returned handle, which is a minor remaining gap.

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 real meaning about the two most ambiguous parameters: worker_id must be omitted or be the key's own worker for an agent key, while on_behalf_of requires an owner/admin-tier root key and is recorded separately. That interpretation is not derivable from the schema alone, so a 4 is warranted.

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 ('Complete an ORDINARY task'), plus concrete side effects ('Inserts a completion record and timer event'). It sharply separates itself from coordination-cycle work (CODE:/REVIEW: builds, decisions, questions, integrations, parked cards), which is the main confusion axis. It never distinguishes itself from the close sibling tascan_complete_subtask, so a small gap remains.

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 names the excluded case ('Coordination-cycle tasks ... are refused with 403') and says who handles them instead ('builds and reviews are completed by their runner, decisions only by the human on the worker page'). It also spells out which key tiers may call it, giving the agent a clear when/when-not decision rule with named alternatives.

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.