Skip to main content
Glama

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
NameRequiredDescriptionDefault
unarchive_wallet_group_requestsYes

Implementation Reference

  • 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")

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