Skip to main content
Glama

agent_peer_task_complete

Conclude an active delegated task by recording and delivering its final result and optional artifact paths to the requesting agent's inbox as an irreversible terminal transition.

Instructions

Mark an active delegated task as concluded, recording terminal results and optional artifact paths. Irreversible terminal transition that delivers the final result into the requesting agent's inbox. Must be called by the executing agent when finished.

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

Input Schema

NameRequiredDescriptionDefault
resultYesThe execution output, telemetry, or final result of the completed task
task_idYesThe unique task identifier to complete
artifactsNoOptional list of produced file paths or artifacts to report back

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / artifacts / description
      Previous value: -"Optional list of file paths or artifacts produced by the task"New value: +"Optional list of produced file paths or artifacts to report back"
    • changedInput schema / properties / result / description
      Previous value: -"The execution output, telemetry, or result of the completed task"New value: +"The execution output, telemetry, or final result of the completed task"
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the disclosure burden and does so well: it flags the operation as an irreversible terminal transition and explains the side effect of delivering the final result into the requesting agent's inbox. It omits error/precondition behavior (repeat invocation on a completed task, behavior on cancelled tasks) and does not describe the response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with zero filler; the action, the irreversibility/effect, and the caller obligation are front-loaded in that order. Every sentence earns its place.

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 three-parameter, no-output-schema state-transition tool, the description covers purpose, caller, irreversibility, and delivery destination. Gaps remain around return value and failure/precondition handling, which matter for an irreversible operation with no annotations.

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 all three parameters are already documented in the input schema. The description adds framing ('terminal results', 'optional artifact paths') but no format, constraints, or validation details 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.

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 an active delegated task as concluded'), plus the payload it records (terminal results, optional artifact paths). The word 'terminal' plus 'must be called by the executing agent when finished' implicitly distinguishes it from sibling state-changing tools like agent_peer_task_progress and agent_peer_task_cancel.

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?

Gives explicit timing guidance ('when finished') and even names the authorized caller ('the executing agent'), which is stronger than typical. It stops short of naming alternatives or stating when not to call it (e.g., on an already-cancelled or already-completed task), so it falls short of a 5.

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