Skip to main content
Glama

get_user_staking_summary

Retrieve staking summary for any Hyperliquid user account, displaying staked amounts and current status with account address input.

Instructions

Fetch the staking summary for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the staking summary, including staked amounts and status. Returns a JSON string with an error message if the query fails.

Input Schema

NameRequiredDescriptionDefault
account_addressYes

Input Schema (JSON Schema)

{ "properties": { "account_address": { "title": "Account Address", "type": "string" } }, "required": [ "account_address" ], "type": "object" }

Implementation Reference

  • main.py:237-254 (handler)
    The handler function for the 'get_user_staking_summary' tool, registered via @mcp.tool() decorator. It takes account_address and ctx, calls info.user_staking_summary(account_address), and returns the JSON-serialized result or error.
    @mcp.tool() async def get_user_staking_summary(account_address: str, ctx: Context) -> str: """ Fetch the staking summary for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the staking summary, including staked amounts and status. Returns a JSON string with an error message if the query fails. """ try: data = info.user_staking_summary(account_address) return json.dumps(data) except Exception as e: return json.dumps({"error": f"Failed to fetch user staking summary: {str(e)}"})

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/kukapay/hyperliquid-info-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server