Skip to main content
Glama
Solana MCP Server

Solana MCP Server

by dynamolabs

get_swap_quote

Fetch a Jupiter swap quote to preview the expected output for swapping Solana tokens before executing a trade.

Instructions

Get Jupiter swap quote - check how much you would get for a swap

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": {
      "input_mint": "<input_mint>",
      "output_mint": "<output_mint>",
      "amount": "<amount>"
    },
    "name": "get_swap_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to swap (in smallest unit, e.g., lamports for SOL)
slippageNoSlippage tolerance in percent (default: 1)
input_mintYesInput token mint (use So11111111111111111111111111111111111111112 for SOL)
output_mintYesOutput token mint address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden, and it discloses almost nothing: not whether quotes expire, whether the returned route is executable, whether the call costs anything, or whether slippage is embedded in the quote. 'Check how much you would get' hints at a read-only simulation but is not explicit. For a tool with zero annotation coverage this is a substantial gap.

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?

Two short clauses, front-loaded with the tool's core action. The second clause largely restates the first ('get quote' / 'check how much you would get'), so it is slightly redundant, but there is no bloat or noise.

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

Completeness2/5

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

With no output schema, no annotations, and four parameters, the description should at minimum indicate what the quote response contains (output amount, route, price impact) and that it is a preview rather than an executable transaction. Neither is present, leaving the agent unable to anticipate the result shape or the tool's side-effect profile.

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%, so all four parameters including the SOL mint shortcut and slippage default are already documented in structured data. The description adds nothing beyond that and correctly does not duplicate it. Baseline 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?

States a specific verb and resource: 'Get Jupiter swap quote', and clarifies with 'check how much you would get for a swap'. An agent knows this is a pricing/preview operation on Jupiter. It does not distinguish itself from any sibling, but the sibling list contains no other quote tool, so the distinction matters less.

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?

The description gives no when-to-use conditions, no prerequisites (e.g., valid mint addresses), and no exclusions. Crucially it never says this is a non-executing preview versus an actual swap, which is the single most important usage distinction for a quote tool. The agent must infer that from the name alone.

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