Skip to main content
Glama

Position performance

position_get_performance
Read-onlyIdempotent

Compute holding-period return and realized fee APR for a Raydium CLMM position NFT from finalized history and current on-chain state (not Raydium pool 24h feeApr). Prefer token-native metrics: for same-asset RWA wrap pairs (e.g. SPCXx/SPCX) report TE in the plain/base ticker using current tick mid (1.0001^tick×10^(decA−decB)), plus raw A/B inventory, holdingDays, feeOnlyAprPct and annualizedReturnPct (HPR×365/days; feeOnlyAprPct = feesEarned ÷ time-weighted average capital (Σ capital×days) × 365, the running net principal between on-chain events, so a later add counts only from its own time). USD is optional/secondary (Jupiter Price v3 / Raydium stable-leg, labeled current — not historical). metrics.usdPerRawUnitA/B (alias metrics.priceUsdA/B, same values) and pricing.usdPerRawUnitA/B are USD per (raw / 10^decimals) token unit, ScaledUiAmount multiplier already applied; pricing.sharePriceUsdA/B is the per-share price and pricing.guard the cross-check against the pool price. Discovers open/increase/decrease txs via personal-position signatures + Anchor events + current equity. After submitting a position transaction, use refreshHistory=true and historyAfterSignatures to require its finalized history. Read-only. No token needed: wallet is optional (public on-chain data). Limited to 12 position reads per minute per IP.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "positionMint": "<positionMint>"
    },
    "name": "position_get_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletNoOptional wallet to verify NFT ownership (does not change math)
skipPricingNoIf true, skip Jupiter/Raydium USD pricing (token-native / TE metrics still computed)
positionMintYesPosition NFT mint address (from positions_list)
maxSignaturesNoMax personal-position signatures to scan (1-500, default 100)
refreshHistoryNoForce a fresh history read after a transaction
historyAfterSignaturesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses that no token is needed, the wallet is optional (public data), the 12-reads-per-minute-per-IP rate limit, that discovery uses personal-position signatures plus Anchor events plus current equity, and that USD prices are labeled current rather than historical. It also warns that 'finalized history' is required after a transaction, which is exactly the operational caveat an agent needs.

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

Conciseness3/5

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

Purpose and the key caveat are front-loaded, but the body is a dense run-on of formulas and field aliases ('metrics.usdPerRawUnitA/B (alias metrics.priceUsdA/B, same values)', '1.0001^tick×10^(decA−decB)') that is hard to parse on first read. Much of the return-field detail is necessary given no output schema, but the alias and guard cross-check minutiae push past what a caller needs to invoke the tool correctly.

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

Completeness5/5

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

With no output schema, the description carries the burden of explaining return contents and does so (TE in base ticker, raw A/B inventory, holdingDays, feeOnlyAprPct, annualizedReturnPct with its capital-weighting formula, USD fields). It also covers auth (none), rate limits, and the post-transaction refresh path, so an agent has enough to call it correctly and interpret results.

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?

Schema coverage is already 83%, so most parameters are self-documenting; the description adds the workflow meaning for refreshHistory and historyAfterSignatures ('require its finalized history' after submitting a position tx) that the schema alone does not convey. It adds little for maxSignatures or skipPricing beyond what the schema states, so it clears the baseline without fully compensating everywhere.

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?

States a specific verb+resource: 'Compute holding-period return and realized fee APR for a Raydium CLMM position NFT from finalized history and current on-chain state', and explicitly disambiguates from the pool-level metric ('not Raydium pool 24h feeApr'), which separates it from pool_get_range_apr. An agent can tell what this returns without opening the schema.

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?

Gives concrete usage context: prefer token-native/TE metrics for same-asset RWA wrap pairs, treat USD as optional/secondary, and use refreshHistory=true plus historyAfterSignatures after submitting a position transaction. It excludes the pool-APR alternative, but never explicitly names which sibling to call instead for pool-level or range-status questions, leaving some routing to inference.

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.

Resources