list_agents
Retrieve a complete list of registered A2A agents through the A2A MCP Server, enabling efficient discovery and management of protocol agents.
Instructions
List all registered A2A agents.
Returns: List of registered agents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- a2a_mcp_server.py:350-358 (handler)The main handler function for the 'list_agents' MCP tool. It returns a list of all registered A2A agents by dumping the global registered_agents dictionary.@mcp.tool() async def list_agents() -> List[Dict[str, Any]]: """ List all registered A2A agents. Returns: List of registered agents """ return [agent.model_dump() for agent in registered_agents.values()]