Skip to main content
Glama

get_solana_dex_price

Retrieve live Solana DEX spot prices and swap estimates for supported pairs on Raydium and Orca, with real-time slot and token decimals.

Instructions

    [Cost: $0.0010 USDC on Base & Solana] Live on-chain Solana DEX spot price oracle and swap calculator.
    Quotes real-time prices across Raydium & Orca with live slot height and token decimals.

    Supported pairs: 'SOL-USDC', 'BONK-USDC', 'JUP-USDC', 'RAY-USDC', 'WIF-USDC', 'SOL-USDT'.

    Args:
        pair: Target trading pair (e.g. 'SOL-USDC', 'BONK-USDC').
        amount: Token input amount to estimate output for (default: 1.0).
        dex: Target DEX liquidity protocol (default: 'Raydium (Solana Mainnet)').
        payment_signature: Optional x402 transaction hash (defaults to developer mock key).
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dexNoRaydium (Solana Mainnet)
pairNoSOL-USDC
amountNo
payment_signatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does a good job: it discloses a hard cost ($0.0010 USDC), live on-chain behavior, live slot height, token decimals, and that payment_signature defaults to a developer mock key. It doesn't discuss failure modes or side effects beyond payment, but the cost and x402 payment context are significant transparency wins.

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: cost and purpose come first, followed by supported pairs and a compact Args list. Each line earns its place, though it does restate some schema defaults like pair='SOL-USDC' and amount=1, which adds slight redundancy.

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 4-parameter tool with no annotations and no output schema, the description covers the tool's purpose, supported pairs, all parameters, and payment/cost considerations. It only hints at the output shape via 'live slot height and token decimals', but the information needed to make a correct call is largely present.

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?

Since schema description coverage is 0%, the Args block must compensate, and it mostly does: pair is explained with examples, amount is described as the input token amount, dex gets its default and role, and payment_signature is explained as an optional x402 transaction hash. It could be stronger by enumerating valid dex values and clarifying amount units, but every parameter receives meaningful semantic guidance.

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 clearly identifies the tool as a 'live on-chain Solana DEX spot price oracle and swap calculator' that 'quotes real-time prices across Raydium & Orca' and lists supported pairs. This gives a specific verb+resource and separates it from the more generic sibling get_dex_spot_price by emphasizing Solana-specific scope. It doesn't explicitly name the sibling, so it stops just short of full differentiation.

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

Usage Guidelines3/5

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

The description implies when to use it: for Solana DEX spot prices and swap estimates with the listed pairs. It provides supported pairs and defaults, giving clear context, but it never explicitly says when not to use it or which alternative tool to choose instead, such as get_dex_spot_price for non-Solana or generic DEX pricing.

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