unarchive_wallet_group
Restore archived wallet groups on Armor Crypto MCP by specifying group names. Returns a response confirming the unarchiving process for each group.
Instructions
Unarchive wallet groups.
Expects a list of group names, returns a list of GroupArchiveOrUnarchiveResponse.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unarchive_wallet_group_requests | Yes |
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:370-383 (handler)MCP tool handler and registration for 'unarchive_wallet_group'. This is the entry point for the tool, decorated with @mcp.tool(), handling input validation via type hints and delegating to the Armor client.@mcp.tool() async def unarchive_wallet_group(unarchive_wallet_group_requests: UnarchiveWalletGroupRequestContainer) -> List[GroupArchiveOrUnarchiveResponse]: """ Unarchive 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.unarchive_wallet_group(unarchive_wallet_group_requests) return result except Exception as e: return [{"error": str(e)}]
- Pydantic schema for individual unarchive wallet group request, defining the 'group' field.class UnarchiveWalletGroupRequest(BaseModel): group: str = Field(description="Name of the group to unarchive")
- Pydantic container schema for the tool input, wrapping a list of UnarchiveWalletGroupRequest objects.class UnarchiveWalletGroupRequestContainer(BaseModel): unarchive_wallet_group_requests: List[UnarchiveWalletGroupRequest]
- Helper method in ArmorWalletAPIClient that prepares the payload and makes the POST API call to unarchive wallet groups.async def unarchive_wallet_group(self, data: UnarchiveWalletGroupRequestContainer) -> List[GroupArchiveOrUnarchiveResponse]: """Unarchive the specified wallet groups.""" # payload = json.dumps([{"group": group_name} for group_name in data.group_names]) payload = data.model_dump(exclude_none=True)['unarchive_wallet_group_requests'] return await self._api_call("POST", "wallets/group-unarchive/", payload)
- Pydantic schema for the output response, containing the group name.group: str = Field(description="name of the group")