list_groups
Retrieve a list of all wallet groups managed by Armor Crypto MCP, enabling organized access to blockchain operations and trading strategies for AI agents.
Instructions
List all wallet groups.
Returns a list of GroupInfo.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:242-256 (handler)MCP tool handler function for 'list_groups' that delegates to the ArmorWalletAPIClient's list_groups method, with error handling.@mcp.tool() async def list_groups() -> List[GroupInfo]: """ List all wallet groups. Returns a list of GroupInfo. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List[GroupInfo] = await armor_client.list_groups() return result except Exception as e: return [{"error": str(e)}]
- Pydantic BaseModel defining the schema for GroupInfo, used as return type for list_groups.class GroupInfo(BaseModel): id: str = Field(description="id of the group") name: str = Field(description="name of the group") is_archived: bool = Field(description="whether the group is archived")
- Supporting method in ArmorWalletAPIClient that performs the actual API GET request to retrieve the list of wallet groups.async def list_groups(self) -> List[GroupInfo]: """Return a list of wallet groups.""" return await self._api_call("GET", "wallets/groups/")
- armor_crypto_mcp/armor_mcp.py:242-242 (registration)FastMCP decorator that registers the list_groups function as an MCP tool.@mcp.tool()