Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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/")
  • FastMCP decorator that 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/armorwallet/armor-crypto-mcp'

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