Skip to main content
Glama

a2a_send_message

Send a message to an A2A agent and retrieve its reply. Supports continuing existing tasks, provider selection, and async polling when the agent is still working.

Instructions

Send a message to an A2A agent and return its reply.

Set provider to "litellm-auto" or "github" when the target agent supports provider selection. The selected provider is carried in the message for the local Copilot A2A agent; other agents may ignore it. Pass task_id to continue an existing task, for example to answer an agent that returned state="input_required". If the agent is still working when timeout_s elapses, this returns done=false with a task_id to poll rather than blocking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYes
messageYes
task_idNo
providerNo
timeout_sNo
context_idNo
Behavior4/5

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

With no annotations available, the description carries the full behavioral burden. It discloses the asynchronous/non-blocking timeout behavior, the done=false + task_id polling contract, and the nuance that the provider field may be ignored by non-local agents. It does not mention auth, error cases, or side effects, but it covers the most important behavioral traits for correct invocation.

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 description is front-loaded with the core purpose and then supplies only high-value operational details: provider selection, task continuation, and polling behavior. Every sentence earns its place, and the length is appropriate for the complexity.

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 is useful for a complex async tool, but there is no output schema and no annotations, so the description must explain the return contract. It partially does by mentioning 'reply,' 'done=false,' and 'task_id,' yet it never describes the full response shape, error behavior, or the purpose of context_id. An agent could still be uncertain about the exact payload format.

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 0%, so the description must compensate. It adds meaning for provider, task_id, and timeout_s, and the required agent and message parameters are inferable from 'send a message to an A2A agent.' However, context_id is never explained, leaving one of six parameters semantically undocumented.

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?

The description opens with a specific verb and resource: 'Send a message to an A2A agent and return its reply.' This clearly distinguishes the tool from its siblings (a2a_list_agents, a2a_get_task, a2a_cancel_task, a2a_add_agent), all of which serve different operations.

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 description gives clear context for when to use it: sending messages, continuing existing tasks via task_id, responding to state="input_required", and handling non-blocking timeouts. It does not explicitly name a2a_get_task as the polling alternative, but strongly implies the polling workflow by mentioning 'to poll rather than blocking.'

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TonPC64/mcp-a2a-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server