Skip to main content
Glama

list_agents

View all registered agents and check their current availability status to determine which specialized tools are ready for task delegation.

Instructions

List all registered agents and their availability status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler logic for the 'list_agents' tool. It retrieves enabled agents, all registered agents, and their availability from the OrchestratorRegistry, then formats a text response listing each agent's status, availability, command, and arguments.
    elif name == "list_agents": # List registered agents and their availability enabled = self.registry.list_enabled() all_agents = list(self.registry.orchestrators.keys()) availability = self.registry.validate_all() text = "Registered Agents:\n\n" for agent_name in all_agents: config = self.registry.get(agent_name) status = "✓ Enabled" if agent_name in enabled else "✗ Disabled" avail = "Available" if availability.get(agent_name) else "Not found in PATH" text += f"{agent_name}:\n" text += f" Status: {status}\n" text += f" Availability: {avail}\n" text += f" Command: {config.command}\n" if config.args: text += f" Args: {' '.join(config.args)}\n" text += "\n" return [TextContent(type="text", text=text)]
  • Tool registration in the list_tools() handler, defining the 'list_agents' tool with its name, description, and input schema (empty properties, no required arguments).
    Tool( name="list_agents", description="List all registered agents and their availability status", inputSchema={ "type": "object", "properties": {}, }, ),
  • Input schema for the 'list_agents' tool: an object with no properties (no input parameters required).
    inputSchema={ "type": "object", "properties": {}, },

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/carlosduplar/multi-agent-mcp'

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