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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/delegation_mcp/server.py:276-295 (handler)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)]
- src/delegation_mcp/server.py:198-205 (registration)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": {}, }, ),
- src/delegation_mcp/server.py:201-204 (schema)Input schema for the 'list_agents' tool: an object with no properties (no input parameters required).inputSchema={ "type": "object", "properties": {}, },