list_single_group
Retrieve details for a specific wallet group by providing the group name, enabling management of cryptocurrency assets within the Armor Crypto MCP server.
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 function for 'list_single_group', decorated with @mcp.tool() for registration, which proxies to armor_client.list_single_group@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)}
- Pydantic input schema model ListSingleGroupRequest defining the group_name parameterclass ListSingleGroupRequest(BaseModel): group_name: str = Field(description="Name of the group to retrieve details for")
- ArmorWalletAPIClient helper method implementing the API call to fetch single group detailsasync 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}/")