Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

get_positions

Retrieve all active positions with Greeks, profit and loss, margin, and liquidation prices for a specified subaccount, so you can monitor portfolio risk and exposure.

Instructions

Get all active positions with Greeks, PnL, margin, and liquidation prices.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
subaccount_idNoSubaccount ID (defaults to configured)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. "Get" plus "active positions" implies a read-only, current-state query, and listing Greeks/PnL/margin/liquidation prices usefully signals the payload's contents, but nothing is said about auth requirements, behavior when no positions exist, or whether results are paginated.

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?

A single front-loaded sentence with no filler; every clause enumerates a distinct data category the caller receives. Nothing could be removed without losing information.

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?

This is a simple one-optional-parameter read with no output schema, and the description compensates by naming the returned fields. The main residual gap is the absence of any note on authentication or empty-result behavior, which is minor for a read tool.

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%, and subaccount_id is fully documented in the schema including its default. The description adds no syntax or filtering detail beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

The description names a specific verb and resource ("Get all active positions") and enumerates the data returned (Greeks, PnL, margin, liquidation prices), so an agent can tell it apart from account-level siblings like get_account or get_portfolio_summary. It stops short of naming a sibling explicitly, which keeps it out of the top band.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites such as an authenticated session, and no statement about when to prefer get_portfolio_summary or get_margin instead. The only scoping cue is the word "active", which the agent must interpret on its own.

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