Skip to main content
Glama

blueDEX

build_swap_transaction

Build an unsigned transaction for a quoted swap. Returns EVM fields (to/data/value) or a Solana base64 transaction, plus a verification block: routerAllowlisted, decodedSummary, minBuyAmount, approvalTarget. VERIFY BEFORE SIGNING — sign only if routerAllowlisted is true and the addresses match the published allowlist from get_meta.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buyYes
sellYes
takerYesThe address that will sign and execute
amountYes
sourceYesVenue id from the quote (e.g. 'lifi', 'jupiter')
slippageBpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 burden, and it does a good job: it discloses that the transaction is unsigned, shows the verification block fields, and warns to verify before signing. It could go further by noting that it performs no on-chain mutation itself, but 'unsigned transaction' and the sign-only-if-allowlisted warning make the key behavior clear.

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 compact and front-loaded: purpose, return format, verification block, and signing warning all appear in two sentences. Every sentence adds essential information and there is no filler.

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?

This is a security-sensitive, multi-chain tool with no output schema and no annotations, yet the description leaves out key context such as the prerequisite of calling get_swap_quote, the meaning of minBuyAmount and approvalTarget, and how to handle amount units. The verification warning is valuable, but overall the description is incomplete for correct usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, and the description does not compensate. It does not explain the units of 'amount', the meaning of 'slippageBps', or how the source, buy, and sell fields relate to the quote. The nested buy/sell objects and the native token convention are only covered inside the schema, not in the description.

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 identifies the verb 'Build' and the resource: 'an unsigned transaction for a quoted swap.' It also distinguishes itself from get_swap_quote by focusing on transaction construction, and from plan_route by returning EVM/Solana unsigned transaction data.

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?

It clearly states that the tool is for a quoted swap, so the agent knows it must be preceded by quote generation. It provides an explicit safety precondition: sign only if routerAllowlisted is true and addresses match get_meta's allowlist. It does not explicitly enumerate when not to use it relative to siblings, but the 'quoted swap' context is sufficient.

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