Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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/")
  • The @mcp.tool() decorator registers the list_groups function as an MCP tool.
    @mcp.tool()

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/emmaThompson07/armor-crypto-mcp'

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