Skip to main content
Glama

a2a_answer

Respond to remote agent approval requests by passing an optionId for tool authorization or approved=false to reject a login prompt and cancel the task.

Instructions

回应远程 agent 的等待:工具授权传 optionId(allow/allow_always/skip/reject);登录卡拒绝传 approved=false。

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_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYes
approvedNo登录审批结果:false 表示拒绝并取消任务
optionIdNo工具授权选项 id
approvalIdNo登录卡的 approvalId(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It usefully discloses that approved=false denies and cancels the task, but it omits permissions/auth requirements, the effect of allow_always versus allow (persistence implications), and the response format. That cancellation side-effect is real added value but leaves significant mutation semantics undisclosed.

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?

A single front-loaded sentence that moves from purpose to conditional parameter guidance with no filler. Efficient, though the densely packed clauses make it slightly harder to parse than a short structured breakdown would.

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?

For a 4-parameter reply tool with no output schema and no annotations, the description covers the two main scenarios but leaves gaps: when approvalId is needed versus approved, what a successful response returns, and how allow_always affects future waiting behavior all remain unstated.

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?

The schema has no enums, so the description's listing of the optionId values (allow/allow_always/skip/reject) adds meaning beyond the schema and is essential for correct invocation. It also reinforces the approved=false semantics, though it doesn't clarify how approvalId relates to approved or the allow_always persistence behavior.

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 a specific action (respond to a remote agent's pending wait) and enumerates the two distinct cases it handles: tool authorization via optionId and login-card rejection via approved=false. This distinguishes its role as a reply/answer tool, though it does not explicitly contrast itself against siblings like a2a_cancel or a2a_task.

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?

It gives conditional usage guidance: pass optionId for tool authorization decisions and approved=false to reject a login card. The mapping of parameter to scenario is clear, but there is no explicit when-not-to-use or direct routing to alternatives, keeping it below a 5.

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