Skip to main content
Glama

get_agent_info

Retrieve detailed information about a specific ACP agent by providing its name. Part of the ACP-MCP-Server, this tool enables integration between ACP-based AI agents and MCP-compatible systems.

Instructions

Get detailed information about a specific ACP agent

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_nameYes

Implementation Reference

  • The main execution handler for the 'get_agent_info' tool. It retrieves agent capabilities via the AgentDiscoveryTool or returns a 'not found' message if the agent is unknown. The @mcp.tool() decorator registers it with FastMCP using the function name as the tool name.
    @mcp.tool() async def get_agent_info(agent_name: str) -> str: """Get detailed information about a specific ACP agent""" capabilities = await discovery.get_agent_capabilities(agent_name) if capabilities: return str(capabilities) else: return f"Agent '{agent_name}' not found"
  • Invocation of register_discovery_tools during server initialization, which defines and registers the get_agent_info tool (and discover_acp_agents) to the FastMCP instance.
    register_discovery_tools(self.mcp, self.discovery)
  • Core helper function called by get_agent_info to fetch and format detailed capabilities information for a specific agent from the discovered agents cache.
    async def get_agent_capabilities(self, agent_name: str) -> Dict[str, Any]: """Get detailed capabilities of a specific agent""" # This could be extended to call a capabilities endpoint # For now, return basic info from discovery agent = self.discovered_agents.get(agent_name) if agent: return { "name": agent.name, "description": agent.description, "metadata": agent.metadata, "supports_streaming": True, # ACP supports streaming "supports_multimodal": True, # ACP supports multi-modal "interaction_modes": ["sync", "async", "stream"] } return {}
  • The registration function that defines both discovery tools using @mcp.tool() decorators and binds them to the provided FastMCP instance and AgentDiscoveryTool instance.
    def register_discovery_tools(mcp: FastMCP, discovery: AgentDiscoveryTool): @mcp.tool() async def discover_acp_agents() -> str: """Discover all available ACP agents and register them as resources""" agents = await discovery.discover_agents() result = { "discovered_count": len(agents), "agents": [] } for agent in agents: agent_info = { "name": agent.name, "description": agent.description, "resource_uri": discovery.get_mcp_resource_uri(agent.name), "capabilities": await discovery.get_agent_capabilities(agent.name) } result["agents"].append(agent_info) return str(result) @mcp.tool() async def get_agent_info(agent_name: str) -> str: """Get detailed information about a specific ACP agent""" capabilities = await discovery.get_agent_capabilities(agent_name) if capabilities: return str(capabilities) else: return f"Agent '{agent_name}' not found"

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/ACP-MCP-Server'

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