Skip to main content
Glama
alekskram

dydx-agent-gateway

Trader Profile

trader_profile
Read-only

Get a snapshot of any dYdX subaccount's equity, open positions, and PnL curve statistics over a window. Use it to evaluate trader performance and exposure from a single address.

Instructions

Snapshot of any trader's subaccount: equity, open positions, and PnL curve statistics (all-time window from up to 1000 history points). Returns equity_now / totalPnl_now / totalPnl_delta_window (USD), window_start / window_end, and open_positions (market, side, size, entry, unrealizedPnl in USD). Pair with trader_pnl_stats for deeper statistics. Example: trader_profile(address="dydx1m9hg73dtn5ku8ulmj8rjmdqh0hk7uuhawc69cn")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
subaccountNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description aligns with them by presenting a read-only snapshot. The description adds useful behavioral detail beyond annotations, including the 'all-time window from up to 1000 history points' and the specific PnL/open-position fields returned.

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

Conciseness5/5

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

The description is compact and front-loaded with the core purpose. The output list and the example are valuable without adding fluff, and every sentence earns its place.

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

Completeness4/5

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

For a simple two-parameter read-only tool with an output schema and safety annotations, the description is largely complete: it covers purpose, output shape, window behavior, and the relevant sibling tool. The main gap is subaccount semantics, but the schema default and example partially mitigate that.

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

Parameters2/5

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

The input schema has 0% description coverage, so the description needed to compensate. It provides an example address but never explains what the address represents or what the subaccount parameter means beyond being an integer with a default. The agent must infer the semantics from the parameter names and tool context.

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 opens with 'Snapshot of any trader's subaccount', which clearly identifies the resource and the action. It enumerates the exact returned fields and explicitly distinguishes itself from trader_pnl_stats with 'Pair with trader_pnl_stats for deeper statistics.'

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

Usage Guidelines4/5

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

The description implies this tool is for a quick snapshot view and points to trader_pnl_stats for deeper analysis, giving the agent a routing signal. It does not spell out exhaustive when-to-use/when-not-to-use conditions, but the sibling guidance is clear enough.

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

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/alekskram/dydx-agent-gateway'

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