Skip to main content
Glama

a2a_task

Poll a delegated A2A task to get its current status and latest messages, letting you track long-running jobs from chat.

Instructions

查询某个 A2A 任务的当前状态与最新消息(长任务用它轮询)。

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": "a2a_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses what the call yields (current status plus latest messages) and that it is intended for repeated polling, which implies idempotent read semantics — useful signals. However, it says nothing about cost or rate considerations of polling, behavior when the taskId is unknown or the task has terminated, or whether polling itself mutates anything, so the safety/complexity profile is only partially covered.

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?

A single front-loaded sentence states the resource first, then the polling use case in a compact parenthetical. Nothing is redundant and nothing could be removed without losing information.

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?

This is a simple read tool with one parameter and no output schema, so the description is nearly complete for its purpose and usage mode. Gaps remain around how to obtain a valid taskId, how "latest messages" is scoped, and how an agent should behave when polling should stop — with no annotations, no output schema, and 0% parameter coverage, those points fall entirely to the description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter taskId has no schema-level documentation at all. The description only alludes to "某个 A2A 任务" without explaining the identifier's format, where it comes from (e.g., a prior a2a_send), or whether it accepts other identifiers. The parameter is close to self-explanatory from its name, but the description adds essentially no meaning beyond it.

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 names a specific verb and resource combination: "查询某个 A2A 任务的当前状态与最新消息" (query a given A2A task's current status and latest messages). This is far more informative than the bare name "a2a_task". It does not explicitly distinguish itself from siblings like a2a_answer or a2a_cancel by name, but the object it acts on (task state/messages) is unambiguous.

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?

The parenthetical "长任务用它轮询" gives clear context for when to reach for this tool: polling long-running tasks. There is no explicit when-not guidance and no named alternative for one-shot retrieval versus polling, which keeps it out of 5 territory, but the intended usage scenario is stated rather than implied.

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

Deploy Server

Other Tools