Skip to main content
Glama

rename_wallets

Change wallet names in cryptocurrency ecosystems to improve organization and identification. This tool allows users to update wallet labels for better management across multiple chains.

Instructions

Rename wallets. Expects a RenameWalletRequestContainer, returns a list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rename_wallet_requestsYes

Implementation Reference

  • MCP tool handler function that implements the core logic of the 'rename_wallets' tool by invoking the ArmorWalletAPIClient.rename_wallet method.
    @mcp.tool() async def rename_wallets(rename_wallet_requests: RenameWalletRequestContainer) -> List: """ Rename wallets. Expects a RenameWalletRequestContainer, returns a list. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List = await armor_client.rename_wallet(rename_wallet_requests) return result except Exception as e: return [{"error": str(e)}]
  • The @mcp.tool() decorator registers the 'rename_wallets' function as an MCP tool.
    @mcp.tool() async def rename_wallets(rename_wallet_requests: RenameWalletRequestContainer) -> List: """ Rename wallets. Expects a RenameWalletRequestContainer, returns a list. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List = await armor_client.rename_wallet(rename_wallet_requests) return result except Exception as e: return [{"error": str(e)}]
  • Pydantic model defining the input schema for a single RenameWalletRequest.
    class RenameWalletRequest(BaseModel): wallet: str = Field(description="Name of the wallet to rename") new_name: str = Field(description="New name of the wallet")
  • Pydantic container model for list of RenameWalletRequests, used as input type for the tool.
    class RenameWalletRequestContainer(BaseModel): rename_wallet_requests: List[RenameWalletRequest]
  • Helper method in ArmorWalletAPIClient that handles the API call to rename wallets on the backend server.
    async def rename_wallet(self, data: RenameWalletRequestContainer) -> List: """Rename a wallet.""" payload = data.model_dump(exclude_none=True)['rename_wallet_requests'] return await self._api_call("POST", "wallets/rename/", payload)

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