list_groups
Retrieve all wallet groups managed within the Armor Crypto MCP server to organize and access cryptocurrency holdings across multiple chains.
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'. It checks authentication, calls the armor_client.list_groups() method, and returns the list of GroupInfo or an error.@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 structure of GroupInfo, used as the return type for the list_groups tool.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")
- ArmorWalletAPIClient method that makes the actual GET API 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)The @mcp.tool() decorator registers the list_groups function as an MCP tool.@mcp.tool()