Skip to main content
Glama

Prepare a sell

polypad_prepare_sell
Read-only

Prepares a sale of a launch token for ETH, with the exact-amount approval step if needed. Simulates step 1 on-chain. Returns unsigned transactions, a summary, and a signing link. Accepts an amount or a percent of the wallet balance.

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": {
      "token": "<token>",
      "from": "<from>"
    },
    "name": "polypad_prepare_sell"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoAttribution tag for traffic measurement. Default "grok".
fromYesThe wallet address that will sign (0x...). Never a private key. Omit it when a walletToken is passed — the wallet is resolved from the token instead.
tokenYesSymbol, name, token address, or launch address.
amountNoToken base units (18 decimals) as a decimal string.
returnUrlNoOptional https:// link back to your agent flow. The signing page shows it as a button after the transaction confirms, with ?tx=<hash>&status=confirmed added. Anything that is not an https:// URL is ignored.
slippageBpsNoSlippage limit in basis points. Default 100, maximum 1000.
walletTokenNoA wallet token from /sign?connect=1: connect once, store the token, and pass it instead of from on every prepare call. The wallet is resolved from the token (signature-checked, 90-day expiry). When both are passed they must name the same wallet.
percentOfBalanceNoPercent of the wallet balance, 1 to 100. Use instead of amount.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with that — it says the tool simulates on-chain and returns unsigned transactions rather than executing. It adds useful disclosure about the approval step and the three return artifacts, but leaves the multi-step flow ('step 1' presumes a step 2) and any auth/expiry behavior unstated.

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?

Four short sentences, each carrying distinct information: purpose, behavior, return shape, and sizing options. Front-loaded with the operation and free of filler.

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

Completeness3/5

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

There is no output schema, and the description does the right thing by naming the returned artifacts, but for an 8-parameter transaction-preparation tool it omits the chain/asset assumptions and the sequencing implied by 'step 1'. An agent knows what it gets back but not fully how to proceed afterward.

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 coverage is 100%, so each parameter is already documented, including the amount-vs-percentOfBalance exclusivity and the walletToken substitution. The description only restates the amount/percent choice at a high level, adding no format, precision, or edge-case meaning beyond the schema.

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?

States a specific verb and resource ('Prepares a sale of a launch token for ETH') and names the distinguishing behavior (exact-amount approval step, simulation). It implicitly separates itself from polypad_prepare_buy but never names or contrasts a sibling such as polypad_quote_trade, so the agent must infer routing.

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?

Implied usage is clear enough for a prepare-then-sign flow, and the last sentence tells the agent it can size the order by amount or percent. However, there is no explicit when-to-use / when-not-to-use guidance and no pointer to the follow-up step after the signing link is returned.

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.