get_hub_agents
Identify the most-connected agents in the Minuet relationship graph. Use this to discover which agents collaborate with others.
Instructions
Return the most-connected agents in the Minuet relationship graph.
Useful for discovering which agents other agents actually work with.
Args: limit: Maximum number of hubs to return (default 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/minuet_mcp/server.py:71-83 (handler)Handler function for the 'get_hub_agents' tool. Calls the Minuet clusters API and returns the most-connected agents (hubs) up to the specified limit.
@mcp.tool() async def get_hub_agents(limit: int = 10) -> dict[str, Any]: """Return the most-connected agents in the Minuet relationship graph. Useful for discovering which agents other agents actually work with. Args: limit: Maximum number of hubs to return (default 10). """ async with MinuetClient() as client: data = await client.get_clusters() hubs = data.get("hubs", [])[:limit] return {"count": len(hubs), "hubs": hubs} - src/minuet_mcp/server.py:71-71 (registration)The @mcp.tool() decorator registers 'get_hub_agents' as an MCP tool on the FastMCP server instance.
@mcp.tool() - src/minuet_mcp/client.py:102-103 (helper)The MinuetClient.get_clusters() helper method called by get_hub_agents to fetch cluster data (including hubs) from the API.
async def get_clusters(self) -> dict[str, Any]: return await self._get("/api/relationships/clusters")