Skip to main content
Glama

archive_wallet_group

Archive cryptocurrency wallet groups to organize and manage digital asset holdings within the Armor Crypto MCP server environment.

Instructions

Archive wallet groups. Expects a list of group names, returns a list of GroupArchiveOrUnarchiveResponse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
archive_wallet_group_requestsYes

Implementation Reference

  • MCP tool handler that executes the archive_wallet_group tool by calling the armor_client method with validated input.
    @mcp.tool() async def archive_wallet_group(archive_wallet_group_requests: ArchiveWalletGroupRequestContainer) -> List[GroupArchiveOrUnarchiveResponse]: """ Archive wallet groups. Expects a list of group names, returns a list of GroupArchiveOrUnarchiveResponse. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List[GroupArchiveOrUnarchiveResponse] = await armor_client.archive_wallet_group(archive_wallet_group_requests) return result except Exception as e: return [{"error": str(e)}]
  • Pydantic model for single ArchiveWalletGroupRequest defining the group name.
    class ArchiveWalletGroupRequest(BaseModel): group: str = Field(description="Name of the group to archive")
  • Pydantic container model for list of ArchiveWalletGroupRequest used as input schema for the tool.
    class ArchiveWalletGroupRequestContainer(BaseModel): archive_wallet_group_requests: List[ArchiveWalletGroupRequest]
  • Helper method in ArmorWalletAPIClient that performs the actual API call to archive wallet groups.
    async def archive_wallet_group(self, data: ArchiveWalletGroupRequestContainer) -> List[GroupArchiveOrUnarchiveResponse]: """Archive the specified wallet groups.""" # payload = json.dumps([{"group": group_name} for group_name in data.group_names]) payload = data.model_dump(exclude_none=True)['archive_wallet_group_requests'] return await self._api_call("POST", "wallets/group-archive/", payload)
  • Pydantic model for the response of archiving/unarchiving a wallet group.
    group: str = Field(description="name of the group")

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