Skip to main content
Glama

unarchive_wallets

Restore archived cryptocurrency wallets to active status for wallet management operations. This tool accepts a list of wallet names and returns their unarchive status, enabling reactivation of previously archived wallets.

Instructions

Unarchive wallets. Expects a list of wallet names, returns a list of WalletArchiveOrUnarchiveResponse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unarchive_wallet_requestsYes

Implementation Reference

  • MCP tool handler for 'unarchive_wallets'. This is the main execution function registered via @mcp.tool(), handling the tool call by delegating to the ArmorWalletAPIClient.
    @mcp.tool() async def unarchive_wallets(unarchive_wallet_requests: UnarchiveWalletRequestContainer) -> List[WalletArchiveOrUnarchiveResponse]: """ Unarchive wallets. Expects a list of wallet names, returns a list of WalletArchiveOrUnarchiveResponse. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List[WalletArchiveOrUnarchiveResponse] = await armor_client.unarchive_wallets(unarchive_wallet_requests) return result except Exception as e: return [{"error": str(e)}]
  • Pydantic model defining the input schema for a single unarchive wallet request.
    class UnarchiveWalletsRequest(BaseModel): wallet: str = Field(description="Name of the wallet to unarchive")
  • Pydantic model for container holding a list of UnarchiveWalletsRequest, used as input to the MCP handler.
    class UnarchiveWalletRequestContainer(BaseModel): unarchive_wallet_requests: List[UnarchiveWalletsRequest]
  • Implementation in ArmorWalletAPIClient that performs the HTTP POST to '/wallets/unarchive/' API endpoint to unarchive wallets.
    async def unarchive_wallets(self, data: UnarchiveWalletsRequest) -> List[WalletArchiveOrUnarchiveResponse]: """Unarchive the wallets specified in the list.""" # payload = json.dumps([{"wallet": wallet_name} for wallet_name in data.wallet_names]) payload = data.model_dump(exclude_none=True)['unarchive_wallet_requests'] return await self._api_call("POST", "wallets/unarchive/", payload)
  • @mcp.tool() decorator registers the unarchive_wallets 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