Skip to main content
Glama

Build a trade (unsigned)

build_trade

Build an unsigned buy or sell for the user's own wallet to sign: the trade higher.fun's own site would build, with Highwire's memo and its 0.3% fee added. Quote first with quote_trade and show the user the quote. Set confirm_trade to true only after the user has approved this exact trade (coin, side, amount, slippage). The transaction is checked instruction by instruction, simulated, and returned as base64 with a plain-language summary and a sign_url for the user to review and sign in their own wallet. It carries Highwire's 0.3% trade fee, one transfer to Highwire's wallet shown in the summary: on top of a buy, or from a sell's SOL. Tell the user. Highwire never signs and never needs a private key.

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": {
      "wallet": "<wallet>",
      "mint": "<mint>",
      "side": "<side>",
      "max_slippage_bps": "<max_slippage_bps>",
      "max_sol": "<max_sol>",
      "confirm_trade": "<confirm_trade>"
    },
    "name": "build_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
solNoFor a buy: SOL to spend.
mintYesThe coin's mint address (base58). higher.fun mints usually end in 'high'.
sideYesbuy spends SOL for tokens; sell spends tokens for SOL.
tokensNoFor a sell: whole tokens to sell (supply is 1B).
walletYesThe wallet that will sign and pay (public key only).
max_solYesCap: a buy may spend at most this much SOL; a sell may return at most this much. At most 10.
confirm_tradeYesSet to true only after the user approved this exact trade.
max_slippage_bpsYesSlippage tolerance in bps, at most 1500 (15%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-idempotent, non-destructive, open-world. The description goes well beyond: instruction-by-instruction validation, simulation, base64 return with a plain-language summary and sign_url, and a 0.3% fee taking one transfer from a buy's SOL or a sell's proceeds. It also states Highwire never signs and needs no private key, which is exactly the trust boundary an agent must convey.

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?

Front-loaded with the action and the quote-first directive, then the fee and signing model. The 0.3% fee is stated twice ("its 0.3% fee added" and later "It carries Highwire's 0.3% trade fee"), and the wallet-transfer detail is repeated, which costs it a point.

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

Completeness5/5

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

For a mutating, open-world tool with no output schema, the description covers the return shape (base64 transaction, summary, sign_url), the safety path (simulation and instruction checks), and the fee side effect. An agent has everything needed to call it and explain the result to a user.

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 coverage is 100%, so the schema already defines wallet, mint, side, max_slippage_bps, max_sol and confirm_trade, establishing a baseline of 3. The description adds real meaning beyond that by defining what "approved this exact trade" covers and reinforcing that confirm_trade is an approval attestation rather than a routing flag.

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 buy or sell for the user's own wallet to sign" states a specific verb and resource, and immediately positions it against the sibling quote_trade ("Quote first with quote_trade"). The added framing (higher.fun's trade plus Highwire memo and fee) tells an agent exactly what artifact comes back.

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

Usage Guidelines5/5

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

It explicitly orders the workflow: quote first, show the user the quote, then build only after the user approves this exact trade (coin, side, amount, slippage). The when-to-use condition for the confirm_trade gate is spelled out, and the alternative (quote_trade) is named with its selecting condition.

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