list_single_group
Retrieve detailed information for a specific wallet group by providing its name. This tool enables users to access SingleGroupInfo for efficient blockchain operations within the Armor Crypto MCP environment.
Instructions
Retrieve details for a single wallet group.
Expects the group name as a parameter, returns SingleGroupInfo.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_single_group_requests | Yes |
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:258-271 (handler)MCP tool handler for 'list_single_group'. Registered via @mcp.tool() decorator. Delegates to armor_client.list_single_group and handles errors.@mcp.tool() async def list_single_group(list_single_group_requests: ListSingleGroupRequest) -> SingleGroupInfo: """ Retrieve details for a single wallet group. Expects the group name as a parameter, returns SingleGroupInfo. """ if not armor_client: return {"error": "Not logged in"} try: result: SingleGroupInfo = await armor_client.list_single_group(list_single_group_requests) return result except Exception as e: return {"error": str(e)}
- armor_crypto_mcp/armor_mcp.py:258-258 (registration)Registration of the 'list_single_group' tool using FastMCP @mcp.tool() decorator. Tool name derived from function name.@mcp.tool()
- Pydantic input schema/model for the list_single_group tool: expects group_name.class ListSingleGroupRequest(BaseModel): group_name: str = Field(description="Name of the group to retrieve details for")
- ArmorWalletAPIClient helper method implementing the API call to retrieve single group details.async def list_single_group(self, data: ListSingleGroupRequest) -> SingleGroupInfo: """Return details for a single wallet group.""" return await self._api_call("GET", f"wallets/groups/{data.group_name}/")
- Pydantic output schema/model for SingleGroupInfo returned by list_single_group.class SingleGroupInfo(GroupInfo): wallets: List[WalletInfo] = Field(description="list of wallets in the group")