Skip to main content
Glama
sv

MCP Paradex Server

by sv

paradex_account_summary

Retrieve your account's current financial status, including balances, margin utilization, P&L, and trading capacity, to make informed trading decisions and manage risk.

Instructions

Get a snapshot of your account's current financial status and trading capacity.

Use this tool when you need to:
- Check your current available and total balance
- Understand your margin utilization and remaining trading capacity
- Verify your account health and distance from liquidation
- Get an overview of realized and unrealized P&L

This provides the essential financial information needed to make informed
trading decisions and manage risk appropriately.

Example use cases:
- Checking available balance before placing new orders
- Monitoring account health during volatile market conditions
- Assessing realized and unrealized P&L for performance tracking
- Verifying margin requirements and utilization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for paradex_account_summary tool. It fetches the account summary via Paradex API, validates the response using AccountSummary model, and formats the output with schema and results.
    @server.tool(name="paradex_account_summary")
    async def get_account_summary(ctx: Context) -> dict:
        """
        Get a snapshot of your account's current financial status and trading capacity.
    
        Use this tool when you need to:
        - Check your current available and total balance
        - Understand your margin utilization and remaining trading capacity
        - Verify your account health and distance from liquidation
        - Get an overview of realized and unrealized P&L
    
        This provides the essential financial information needed to make informed
        trading decisions and manage risk appropriately.
    
        Example use cases:
        - Checking available balance before placing new orders
        - Monitoring account health during volatile market conditions
        - Assessing realized and unrealized P&L for performance tracking
        - Verifying margin requirements and utilization
        """
        client = await get_authenticated_paradex_client()
        response = await api_call(client, "account")
        result = {
            "description": AccountSummary.__doc__.strip() if AccountSummary.__doc__ else None,
            "fields": AccountSummary.model_json_schema(),
            "results": account_summary_adapter.validate_python(response),
        }
        return result
  • Pydantic BaseModel defining the schema for the account summary data, used for validation and JSON schema generation in the tool response.
    class AccountSummary(BaseModel):
        """Model representing an account summary response from Paradex."""
    
        account: Annotated[str, Field(description="User's starknet account")]
        account_value: Annotated[str, Field(description="Current account value [with unrealized P&Ls]")]
        free_collateral: Annotated[
            str,
            Field(
                description="Free collateral available (Account value in excess of Initial Margin required)"
            ),
        ]
        initial_margin_requirement: Annotated[
            str, Field(description="Amount required to open trade for the existing positions")
        ]
        maintenance_margin_requirement: Annotated[
            str, Field(description="Amount required to maintain exisiting positions")
        ]
        margin_cushion: Annotated[
            str, Field(description="Acc value in excess of maintenance margin required")
        ]
        seq_no: Annotated[
            int,
            Field(
                description="Unique increasing number (non-sequential) that is assigned to this account update. Can be used to deduplicate multiple feeds"
            ),
        ]
        settlement_asset: Annotated[str, Field(description="Settlement asset for the account")]
        status: Annotated[str, Field(description="Status of the acc - like ACTIVE, LIQUIDATION")]
        total_collateral: Annotated[str, Field(description="User's total collateral")]
        updated_at: Annotated[int, Field(description="Account last updated time")]
  • The @server.tool decorator registers the get_account_summary function as the 'paradex_account_summary' tool.
    @server.tool(name="paradex_account_summary")
  • TypeAdapter for AccountSummary used to validate the API response in the handler.
    account_summary_adapter = TypeAdapter(AccountSummary)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes what information is returned (balances, margin utilization, P&L) but lacks details on data freshness, rate limits, authentication requirements, or error conditions, which are important for a financial tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (purpose, usage scenarios, example cases) and avoids redundancy. While slightly verbose, every sentence adds value by clarifying different aspects of the tool's application in trading contexts.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a financial status tool with no annotations and no output schema, the description does a good job explaining what information is returned. However, it lacks details on response format, data granularity (e.g., currency units), or potential limitations, leaving some gaps in completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so no parameter documentation is needed. The description appropriately focuses on the tool's purpose and usage without unnecessary parameter details, meeting the baseline expectation for parameterless tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('Get a snapshot') and resources ('account's current financial status and trading capacity'), distinguishing it from siblings like paradex_account_positions or paradex_account_transactions by focusing on overall financial health rather than specific components.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool through bullet points (e.g., 'Check your current available and total balance') and example use cases (e.g., 'Checking available balance before placing new orders'), clearly differentiating it from alternatives without being misleading.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/sv/mcp-paradex-py'

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