Skip to main content
Glama

Get Positions

get_positions
Read-only

Read a wallet's open/closed Spiral leverage positions from chain state (read-only). For each: collateral/loan, leveraged collateral, net equity, debt, current LTV vs liquidation LTV (with headroom), current leverage, net USD value, and current leveraged APY. No cost-basis / realized P&L (those need off-chain history). Newest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainIdNoChain to target. Supported: 1, 4663. Default: 1.
userAddressYesWallet address to read positions for.

Schema Changelog

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

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already set readOnlyHint=true, so the description reiterates read-only. However, it adds valuable behavioral context: the data fields returned (collateral/loan, leveraged collateral, net equity, debt, LTV, leverage, USD value, APY), the ordering (newest first), and the limitation (no cost-basis/realized P&L). This goes beyond what annotations provide.

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 concise and well-structured, with the most important information first. It consists of three sentences that pack a lot of detail without extraneous words. Every sentence adds value.

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?

No output schema is provided, but the description compensates by listing the data fields returned (collateral/loan, leveraged collateral, net equity, etc.). It also mentions ordering and limitations. For a read-only query tool with moderate complexity, this is sufficient.

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 coverage is 100%, and the parameter descriptions in the schema are clear (userAddress as wallet address, chainId with default). The description adds no additional parameter semantics beyond what the schema already provides, so baseline 3 is appropriate.

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 reads a wallet's open/closed leverage positions from chain state (read-only), specifies it's read-only, and lists the data returned. It distinguishes from siblings by explicitly stating what it does not provide (cost-basis/realized P&L), making the purpose unambiguous.

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 indicates when to use (to read positions) and explicitly mentions what it does not provide (cost-basis/realized P&L), implying those are handled elsewhere. It does not explicitly name alternative tools, but the list of siblings provides context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: building opening vs. managing transactions, reading positions, getting prices, listing/querying strategies, and simulating. No overlapping or ambiguous functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with underscores (e.g., build_leverage_tx, get_positions, list_strategies). The naming is predictable and uniform.

Tool Count5/5

7 tools is well-scoped for the domain of non-custodial leverage positions. It covers all essential operations without being too few or excessive.

Completeness5/5

The tool set covers the full lifecycle: preview (simulate), open (build_leverage_tx), manage (build_manage_tx with close/adjust actions), read positions, and explore strategies/prices. No obvious gaps for the intended purpose.