Skip to main content
Glama

remove_wallets_from_group

Delete specific wallets from a defined group within the MCP server. Provide the group name and wallet list to manage blockchain operations efficiently.

Instructions

Remove wallets from a specified group. Expects the group name and a list of wallet names, returns a list of RemoveWalletFromGroupResponse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
remove_wallets_from_group_requestsYes

Implementation Reference

  • MCP tool handler for 'remove_wallets_from_group'. Decorated with @mcp.tool() for registration. Executes by calling armor_client.remove_wallets_from_group and handles errors.
    @mcp.tool() async def remove_wallets_from_group(remove_wallets_from_group_requests: RemoveWalletsFromGroupRequestContainer) -> List[RemoveWalletFromGroupResponse]: """ Remove wallets from a specified group. Expects the group name and a list of wallet names, returns a list of RemoveWalletFromGroupResponse. """ if not armor_client: return [{"error": "Not logged in"}] try: result: List[RemoveWalletFromGroupResponse] = await armor_client.remove_wallets_from_group(remove_wallets_from_group_requests) return result except Exception as e: return [{"error": str(e)}]
  • Input container schema for the tool: wraps list of RemoveWalletsFromGroupRequest for batch operations.
    class RemoveWalletsFromGroupRequestContainer(BaseModel): remove_wallets_from_group_requests: List[RemoveWalletsFromGroupRequest]
  • Pydantic schema for single remove wallets from group request (input model). Note: wallet field typed as str but description suggests list.
    class RemoveWalletsFromGroupRequest(BaseModel): group: str = Field(description="Name of the group to remove wallets from") wallet: str = Field(description="List of wallet names to remove from the group")
  • Client method implementing the API call to remove wallets from group, called by the MCP handler.
    async def remove_wallets_from_group(self, data: RemoveWalletsFromGroupRequestContainer) -> List[RemoveWalletFromGroupResponse]: """Remove wallets from a group.""" # payload = json.dumps([{"wallet": wallet_name, "group": data.group_name} for wallet_name in data.wallet_names]) payload = data.model_dump(exclude_none=True)['remove_wallets_from_group_requests'] return await self._api_call("POST", "wallets/remove-wallet-from-group/", payload)
  • Output response schema for remove wallet from group operation.
    wallet: str = Field(description="name of the wallet to remove from the group") group: str = Field(description="name of the group to remove the wallet from")

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