Skip to main content
Glama

Get agent task

get_agent_task
Read-only

Fetch the current state and answer of an agent task, including running tasks; set wait: true to wait until it finishes or needs input.

Instructions

Fetch the current state and answer of an agent task, e.g. one that was still running. Pass wait: true to wait until it finishes or needs input.

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": {
      "taskId": "<taskId>"
    },
    "name": "get_agent_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite the request is meant for (e.g. abc.atlassian.net); checked against the sign-in
waitNoWait until the task finishes or needs input (up to the ask timeout), following its stream where the agent streams
agentNoWhich agent to use; defaults to "rovo"
targetNoNo targets are configured
taskIdYestaskId returned by ask_agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that a task may be running or may need input, which is useful state context, but it does not explain what happens on wait timeout, whether repeated polling is expected, or what the response shape looks like.

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?

Two short sentences with no wasted words, and the core purpose is front-loaded. The 'e.g. one that was still running' clause is slightly loose but still earns its place by indicating the typical polling scenario.

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?

With five parameters but only one required and full schema coverage, the definition is complete enough for an agent to call it correctly. The absence of an output schema means the description's 'state and answer' phrasing usefully signals what comes back, though timeout and repeated-poll behavior remain unspecified.

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 the schema already documents site, wait, agent, target, and taskId. The description's mention of wait: true duplicates the wait parameter's own schema description, so it adds little semantic meaning beyond the structured fields.

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 gives a specific verb and resource ('fetch the current state and answer of an agent task') and adds a qualifier that identifies the typical case ('one that was still running'). It is clear what the tool returns, though it does not explicitly distinguish itself from siblings like list_agent_tasks or cancel_agent_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?

Usage is implied rather than stated: the agent must infer that this tool is for polling a task's state or retrieving its answer. The only explicit guidance is 'Pass wait: true to wait until it finishes or needs input,' which is parameter-level instruction rather than when-to-use/when-not guidance or a named alternative.

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