Skip to main content
Glama

solana swap quote

solana_swap_quote
Read-only

Best Solana swap price via the Jupiter aggregator: output amount, minimum after slippage, USD value, price impact and the route (Raydium, Orca, Meteora...). Tokens by symbol (SOL, USDC, USDT, JUP, BONK, JTO) or mint. Costs $0.003 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
to_tokenYes
from_tokenYes
slippage_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=true, openWorldHint=true), and the description adds genuinely new behavioral context beyond them: the per-call cost ($0.003 USDC via x402) and the concrete return fields (output amount, minimum after slippage, USD value, price impact, route). It does not mention rate limits or freshness/latency of the quote, but the cost disclosure is meaningful for an agent deciding whether to call.

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?

Three sentences, fully front-loaded: what the tool returns, then accepted token formats, then cost. Every clause carries information the agent needs and none is redundant.

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?

With no output schema, the description correctly enumerates return values; with 0% parameter coverage it supplies token-format and slippage hints and discloses the payable cost. The gaps are the amount-unit semantics and the missing routing to solana_swap_build for the follow-on transaction step.

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 0%, so the description carries the full burden. It does clarify token identification (symbol set or mint) for from_token/to_token and implies slippage_percent via the 'minimum after slippage' phrasing, but it says nothing about the required 'amount' string's units (raw lamports vs decimal token amount), leaving a critical ambiguity unresolved.

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 states a specific verb+resource: fetching the best Solana swap price via the Jupiter aggregator, and enumerates the returned quantities. It implicitly distinguishes the read-only quote from the write-side sibling (solana_swap_build) but never names it, so differentiation is left to the agent's inference.

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 explicit when/when-not guidance and no mention of alternatives such as solana_swap_build, swap_quote, or swap_build, despite those sitting in the sibling list. The agent must infer that a quote precedes execution and that this is the Solana/Jupiter-specific variant.

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