Skip to main content
Glama

LiveLaunch

Build sell transaction

build_sell_tx

Build an UNSIGNED sell transaction. Pass tokenAmount, tokenAmountRaw, or percent (1–100) of the wallet balance. Sign locally with wallet. Does not broadcast.

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": {
      "mint": "<mint>",
      "wallet": "<wallet>"
    },
    "name": "build_sell_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintYesBase58 Solana address. A public key, never a private key.
amountNoAlias of tokenAmount.
walletYesSeller public key. This wallet must sign.
percentNoSell this percent of the wallet balance.
slippageBpsNoSlippage in basis points. 300 = 3%. Default 300.
tokenAmountNoTokens to sell, decimal UI amount.
tokenAmountRawNoToken amount in base units.
skipSimulationCheckNoReturn the unsigned transaction even if simulation fails.
priorityFeeMicroLamportsNoPriority fee override in micro-lamports per compute unit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false). The description adds the operationally important fact that the output is unsigned and must be signed locally, and that nothing is broadcast — behavior the annotations cannot convey. It does not mention the default simulation step or what a simulation failure looks like, which keeps it from a 5.

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 short sentences, front-loaded with the core verb and resource, then amount options, then the signing/broadcast contract. No filler and nothing repeated from the schema or annotations.

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 9-parameter transaction builder with no output schema, the definition covers the essential workflow: what it returns (an unsigned tx), who must sign, and that nothing is sent. The main remaining gap is the default simulation behavior implied by skipSimulationCheck, which an agent would only discover from the schema field name.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds genuine meaning by framing tokenAmount, tokenAmountRaw, and percent as interchangeable alternatives for expressing the sell size — a relationship the schema does not encode with anyOf/oneOf. It does not cover slippageBps, skipSimulationCheck, or priorityFeeMicroLamports, leaving some room above baseline rather than full marks.

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?

"Build an UNSIGNED sell transaction" gives a specific verb (build), resource (sell transaction), and an explicit qualifier (UNSIGNED) that separates it from any broadcast/submit tool. The sell direction also distinguishes it cleanly from build_buy_tx without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description tells the agent how to specify the amount (tokenAmount, tokenAmountRaw, or percent 1-100) and what to do next (sign locally with wallet), which is usable context. It stops short of stating when to prefer this over alternatives or prerequisites such as fetching a quote first, so guidance is implied rather than explicit.

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.