Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()]

Other Tools

Related 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/GongRzhe/A2A-MCP-Server'

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