Skip to main content
Glama
sv

MCP Paradex Server

by sv

paradex_filters_model

Get detailed schema information to build precise data filters for Paradex trading tools. Understand available fields, data types, and formats to construct accurate JMESPath queries and filter expressions.

Instructions

Get detailed schema information to build precise data filters.

Use this tool when you need to:
- Understand exactly what fields are available for filtering
- Learn the data types and formats for specific fields
- Build complex JMESPath queries with correct syntax
- Create sophisticated filtering and sorting expressions

Knowing the exact schema helps you construct precise filters that
return exactly the data you need, avoiding trial and error.

Example use cases:
- Learning what fields exist in market data responses
- Finding the correct property names for filtering
- Understanding data types for numerical comparisons
- Building complex multi-criteria filters for large datasets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tool_nameYesThe name of the tool to get the filters for.

Implementation Reference

  • The handler function `get_filters_model` decorated with `@server.tool(name="paradex_filters_model")`. It takes a `tool_name` parameter and returns the JSON schema (model_json_schema()) of the corresponding data model for various Paradex tools, enabling precise JMESPath filtering.
    @server.tool(name="paradex_filters_model")
    async def get_filters_model(
        tool_name: Annotated[str, Field(description="The name of the tool to get the filters for.")],
    ) -> dict:
        """
        Get detailed schema information to build precise data filters.
    
        Use this tool when you need to:
        - Understand exactly what fields are available for filtering
        - Learn the data types and formats for specific fields
        - Build complex JMESPath queries with correct syntax
        - Create sophisticated filtering and sorting expressions
    
        Knowing the exact schema helps you construct precise filters that
        return exactly the data you need, avoiding trial and error.
    
        Example use cases:
        - Learning what fields exist in market data responses
        - Finding the correct property names for filtering
        - Understanding data types for numerical comparisons
        - Building complex multi-criteria filters for large datasets
        """
        tool_descriptions = {
            "paradex_markets": models.MarketDetails.model_json_schema(),
            "paradex_market_summaries": models.MarketSummary.model_json_schema(),
            "paradex_open_orders": models.OrderState.model_json_schema(),
            "paradex_orders_history": models.OrderState.model_json_schema(),
            "paradex_vaults": models.Vault.model_json_schema(),
            "paradex_vault_summary": models.VaultSummary.model_json_schema(),
        }
        return tool_descriptions[tool_name]
  • The @server.tool decorator registers the `get_filters_model` function as the MCP tool named 'paradex_filters_model'.
    @server.tool(name="paradex_filters_model")
  • Pydantic input schema definition for the tool using Annotated Field for validation and description.
    tool_name: Annotated[str, Field(description="The name of the tool to get the filters for.")],
Behavior3/5

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

No annotations are provided, so the description carries full burden. It describes the tool's purpose and benefits but doesn't disclose behavioral traits like whether it's read-only, potential rate limits, authentication requirements, or what the output format looks like. The description adds value by explaining the utility of schema information but lacks operational details.

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 guidelines, example use cases) and uses bullet points effectively. While slightly verbose, every sentence adds value by explaining when and why to use the tool. The front-loaded purpose statement is strong.

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?

Given the tool's complexity (schema/metadata retrieval) and lack of annotations or output schema, the description does a good job explaining purpose and usage but leaves gaps about behavioral characteristics and output format. It's adequate for understanding when to use the tool but incomplete for understanding what to expect from its execution.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents the single 'tool_name' parameter. The description doesn't add specific meaning about this parameter beyond implying it's needed to identify which tool's schema to retrieve. With high schema coverage, the baseline score of 3 is appropriate as the description doesn't significantly enhance parameter understanding.

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 detailed schema information', 'build precise data filters') and distinguishes it from sibling tools that appear to be data retrieval or trading operations. It explicitly identifies this as a schema/metadata tool rather than a data-fetching tool.

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 with bullet points listing specific scenarios ('when you need to understand fields', 'learn data types', 'build JMESPath queries', 'create filtering expressions'). It also includes example use cases that reinforce appropriate contexts for tool selection.

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