Skip to main content
Glama

Swap Quote

get-swap-quote
Read-onlyIdempotent

Swap Quote. Calls only GET /v4/trading/swap-quote and returns that response. Solana API endpoint for fetching Solana swap quotes. Returns expected output, price impact, slippage bounds, and full route plan for any token pair.

Input Schema

NameRequiredDescriptionDefault
amountYesAmount of input token to swap (in UI units, e.g., 0.1 for 0.1 SOL)
slippageNoSlippage tolerance in percentage (default: 0.5)
accountAddressNoWallet address (used for personalized routing)
inputMintAddressYesTyped Solana public key identifier used across request parameters and response fields.
outputMintAddressYesTyped Solana public key identifier used across request parameters and response fields.

Output Schema

NameRequiredDescriptionDefault
bodyNo
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds value by saying it hits exactly one endpoint and returns expected output, price impact, slippage bounds and route plan — useful context beyond annotations, though it omits whether quotes expire or are cached.

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?

Four sentences where the first two are largely redundant — 'Calls only GET /v4/trading/swap-quote and returns that response' and 'Solana API endpoint for fetching Solana swap quotes' restate each other. The informative content (returned fields) is present but not front-loaded.

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 read-only quote endpoint with complete schema coverage and an output schema, the definition covers endpoint scope and returned data well enough to call correctly. The main gap is workflow context relative to build-swap, which the description leaves unstated.

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 five parameters (amount in UI units, slippage default 0.5, optional accountAddress, mint addresses) are already documented in the schema. The description adds no parameter-level detail beyond that, so 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?

Clear specific verb+resource: fetches a swap quote from a named endpoint and enumerates what comes back (expected output, price impact, slippage bounds, route plan). It does not, however, distinguish itself from the sibling build-swap, which an agent might reasonably confuse with quoting vs. executing.

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?

No statement of when to use this versus build-swap or how it fits a quote-then-build workflow, and no prerequisites (e.g., wallet required only for personalized routing). Usage is only loosely implied by the word 'quote'.

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.