Skip to main content
Glama
ytugarev
by ytugarev

send_a2a_message

Send a message to an A2A agent and get its final text reply. Continue conversations by passing back task and context IDs from previous responses.

Instructions

Send a message to an A2A agent and return its final text response.

The response ends with an [a2a task_id=... context_id=...] line. To continue the same conversation -- in particular to answer a [task input-required] question -- pass those ids back via the task_id / context_id arguments on the next call; omitting them starts a fresh task.

Long-running agent pipelines are expected: progress notifications are emitted while the task runs, so tune A2A_TIMEOUT_SECONDS rather than treating a slow response as a hang. If the call does time out after the task started, the error names the task_id -- the task keeps running server-side and get_a2a_task can retrieve its result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
task_idNo
agent_urlNohttp://localhost:8001
context_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses behavior: emits progress notifications, may time out but task continues server-side, response format includes an [a2a ...] line. It clarifies that omitting ids starts a fresh task, and describes how to handle timeouts.

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 concise (approximately 9 lines) and well-structured: purpose first, then response continuation, then timeout handling. Every sentence adds value, no redundancy.

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

Completeness5/5

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

Given the tool's complexity (asynchronous task-based communication, with progress notifications and timeout recovery) and the presence of an output schema (though not shown), the description covers all necessary context: usage, continuation, error handling, and ties to sibling tools. It is complete for an agent to use correctly.

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

Parameters5/5

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

Schema has 0% description coverage; the description adds meaning to all 4 parameters: message as content, task_id/context_id for conversation continuity, and agent_url as default endpoint. It explains how omitting ids vs. providing them changes behavior.

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 starts with a clear verb-resource pair: 'Send a message to an A2A agent and return its final text response.' It distinguishes from siblings get_a2a_task (retrieve results) and get_agent_card (get metadata) by focusing on initiating or continuing a conversation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance: explains the response format with task_id/context_id, instructs to pass those back to continue the conversation, and advises to tune A2A_TIMEOUT_SECONDS for long-running tasks instead of treating delays as hangs. Also mentions using get_a2a_task if a timeout occurs, linking to the sibling tool.

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/ytugarev/a2a-mcp-bridge'

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