Skip to main content
Glama

Get Swap Quote

get_swap_quote

Get a price quote and unsigned transaction for swapping tokens on SunSwap DEX. Returns an unsigned TX for client-side signing. After signing, submit via execute_swap. Requires API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toTokenYesToken to buy — symbol or TRC-20 contract address
amountInYesAmount to swap in smallest unit (SUN for TRX, base units for tokens)
fromTokenYesToken to sell — symbol (USDT, TRX, SUN, ...) or TRC-20 contract address
slippageBpsNoSlippage tolerance in basis points (default: 50 = 0.5%)

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool returns an unsigned transaction for client-side signing and that signing precedes submission via execute_swap. It also notes the API key requirement. It does not cover edge cases like no liquidity or fee structures, but for a quote tool the core behavior is well described.

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?

The description is two sentences, immediately states what the tool does, and provides the necessary workflow hints without any filler. It is front-loaded with the key action and resource, making it easy to parse.

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 tool with no output schema and no annotations, the description adequately conveys the full flow: quote generation, unsigned TX, client signing, and follow-up via execute_swap. It also covers the API key requirement. It does not detail return values, but that is expected for a simple quote tool.

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 the schema already documents each parameter. The description does not add any additional parameter-specific meaning about formatting (e.g., base units) or default slippage, but those are already in the schema. The addition of 'Requires API key' is a prerequisite rather than a parameter semantic.

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?

The description clearly states the tool gets a price quote and unsigned transaction for a token swap on SunSwap DEX. It uses the specific verb 'Get' with a concrete resource and distinguishes itself from execute_swap by explicitly noting the next step is to sign and submit via that sibling tool.

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?

The description provides clear context: use this to get a quote/unsigned TX, sign it client-side, then submit via execute_swap. It also mentions the API key requirement. It does not explicitly state when not to use this tool, but the workflow is unambiguous.

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.

TDQS

A3.8/5.0
Disambiguation4/5

Most tools have distinct purposes, but some overlap exists: get_prices and get_market_overview both provide pricing info, and get_available_resources, get_pool_delegations, and get_onchain_status all relate to resource status. Descriptions clarify these distinctions adequately.

Naming Consistency4/5

Tool names follow a consistent verb_noun pattern with underscores (e.g., get_balance, register_pool, configure_auto_selling). Minor inconsistency: 'broadcast_signed_permission_tx' uses the abbreviation 'tx' while 'broadcast_transaction' uses the full word 'transaction'.

Tool Count2/5

27 tools is excessive for a server with this scope, exceeding the 25-tool threshold. Several tools could be consolidated (e.g., get_prices and get_market_overview, or the various resource-status getters). The high count makes the tool surface harder to navigate.

Completeness4/5

The server covers the core domain well: registration, balance management, pool registration and configuration, energy purchase, order tracking, swap, and voting. Minor gaps exist, such as no explicit tool for configuring auto actions (stake/claim) or cancelling orders, but these do not severely hinder core workflows.