Skip to main content
Glama

agp_task

Manage durable async tasks by listing, inspecting, waiting on, updating with mid-flight input, or canceling running tasks. Filter by state or context and supply clarification or human input.

Instructions

Manage durable async tasks (io.modelcontextprotocol/tasks & A2A v1.0 Tasks): list tasks, get task state/history/result, wait for state transition, supply mid-flight clarification/HITL input (update), or cancel a running task.

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": {
      "action": "<action>"
    },
    "name": "agp_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoMid-flight clarification or HITL input for action='update'.
limitNo
stateNoOptional state filter for list (e.g. WORKING, COMPLETED, INPUT_REQUIRED).
actionYes
reasonNoCancellation reason for action='cancel'.
task_idNoTask ID (required for get, wait, update, cancel).
actor_uriNo
context_idNoOptional contextId filter for list.
wait_timeout_secNoSeconds (0-120) for action='wait'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already disclose the safety profile: not read-only, not destructive, not idempotent, and closed-world. The description adds useful behavioral context such as waiting for state transitions and supplying mid-flight HITL input, but it does not explain side effects, reversibility of cancel, or update behavior outside input-required states.

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?

The definition is a single front-loaded sentence that names the resource and then enumerates all supported actions without filler. It is dense but appropriately sized for a multi-action task tool.

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

Completeness3/5

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

The description covers the action surface and benefits from annotations and partially described schema parameters. However, with no output schema and nine parameters including a nested input object, it should say more about return values, pagination, and action-specific constraints to be fully complete.

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?

The description adds semantic meaning to the action enum by explaining what 'list', 'get', 'wait', 'update', and 'cancel' do, which goes beyond the bare enum values. With 67% schema description coverage and nine parameters, it still leaves gaps such as actor_uri and limit, so it does not fully compensate for 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?

The description states the resource ('durable async tasks') and enumerates the specific operations: list, get, wait, update, and cancel. This is clear enough for an agent to understand the tool's purpose, though it does not explicitly distinguish itself from siblings such as team_task.

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 action list implies when each operation is used, including 'wait' for state transitions and 'update' for mid-flight clarification/HITL input. However, it provides no explicit when-not guidance or routing between this tool and alternative task-related siblings.

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