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
| Name | Required | Description | Default |
|---|---|---|---|
| archive_wallet_group_requests | Yes |
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:354-368 (handler)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")