Skip to main content
Glama

kiro_agents_list

List available custom agents in the Kiro CLI MCP Server to manage and select agents for session orchestration and workflow support.

Instructions

List available custom agents

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the kiro_agents_list tool. It asynchronously lists available agents using the CommandExecutor and returns them as a JSON-serializable dictionary with agents list and count.
    async def _handle_agents_list(command_executor: CommandExecutor) -> dict[str, Any]: """Handle kiro_agents_list tool call.""" agents = await command_executor.list_agents() return { "agents": [a.to_dict() for a in agents], "count": len(agents), }
  • The JSON schema definition for the kiro_agents_list tool, specifying its name, description, and empty input schema (no required parameters). This is included in the TOOLS list used for tool registration.
    { "name": "kiro_agents_list", "description": "List available custom agents", "inputSchema": { "type": "object", "properties": {} } },
  • Dispatch/registration logic in the main @server.call_tool() handler. Routes calls to 'kiro_agents_list' to the dedicated _handle_agents_list function.
    elif name == "kiro_agents_list": result = await _handle_agents_list(command_executor)
  • The @server.list_tools() handler that registers all tools, including kiro_agents_list, by calling get_all_tools() from tools.py and converting to MCP Tool objects.
    @server.list_tools() async def handle_list_tools() -> list[Tool]: """List available tools.""" tools_data = get_all_tools() return [ Tool( name=tool["name"], description=tool["description"], inputSchema=tool["inputSchema"] ) for tool in tools_data ]

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/vanphappi/kiro-cli-mcp'

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