Skip to main content
Glama

list_agents

View all registered AI agents in your organization to manage governance, enforce policies, and maintain compliance with audit trails.

Instructions

List all registered AI agents in the organization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The list_agents tool handler, which uses FastMCP decorator to register the tool and fetches agents from the API.
    @mcp.tool()
    async def list_agents() -> str:
        """List all registered AI agents in the organization."""
        try:
            agents = await _request("GET", "/agents")
            if not agents:
                return "No agents registered."
            lines = []
            for a in agents:
                status = a.get("status", "unknown")
                name = a.get("name", "unnamed")
                aid = a.get("agent_id", "?")
                lines.append(f"- {name} ({aid}) [{status}]")
            return "\n".join(lines)
        except Exception as e:
            return f"Error listing agents: {e}"

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other 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/jagmarques/asqav-mcp'

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