Skip to main content
Glama

sell_coin

Read-only

Sells a position in a pump.fun coin: with a wallet, an unsigned Solana transaction (base64) to sign and send yourself or with send_tx (pumpdata never holds a key); without one, the coin's sell page already open on the right amount (tokens: "all", a share such as "50%", or an exact raw amount), where a person signs with their own wallet. pumpdata's 0.4% fee (the answer's fee_compare sets it beside fomo, Axiom, Photon, GMGN and Trojan: tell the person). For: sell all, sell this coin, take my bag off.

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>"
    },
    "name": "sell_coin"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintYesthe coin's mint (base58)
tokensNothe raw whole units to sell (pump.fun tokens have 6 decimals, so 1,500.5 tokens is 1500500000), a share such as "50%", or "all" (default)
walletNothe address that signs and pays; leave it out to get the signing page instead of a transaction
slippage_bpsNodefault 1000 (10%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only cover the safety flags; the description adds substantive behavior: pumpdata never holds a key, the transaction is returned unsigned as base64, the signing page is pre-filled at the right amount, and a 0.4% fee applies with a `fee_compare` field naming competitors. The readOnlyHint is defensible because the tool builds a transaction rather than submitting one, and the description makes that explicit. Missing only failure modes (e.g. insufficient balance, mint not found).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The mode split is front-loaded and nothing is sheer filler, but it is one dense run-on sentence stitched with parentheses and quotes ('tokens: "all"', 'the answer's `fee_compare`'), which makes the fee/competitor aside harder to parse than it needs to be. It would read better as two or three short sentences.

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 4-parameter mutation-adjacent tool with no output schema, the description covers both execution paths, defaults, the fee, and the existence of a `fee_compare` return field. Only error conditions and confirmation of what the transaction call returns in practice are absent.

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 baseline is 3. The description restates the `tokens` formats and the wallet-present/absent switch that the schema already documents, adding little syntax or meaning beyond it, though the signing-page consequence of omitting `wallet` is reinforced usefully.

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?

States a specific verb and resource ('Sells a position in a pump.fun coin') and immediately splits the operation into its two real modes: transaction-building with a wallet, or a pre-filled signing page without one. An agent can distinguish it from buy_coin or quote_coin from the text alone.

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?

Names the concrete selection rule (wallet present -> unsigned tx or send_tx; wallet absent -> sign page) and routes to the send_tx sibling for the send step. It also lists trigger phrases ('sell all, sell this coin, take my bag off'). No explicit when-not-to-use or error/edge-case guidance, so it stops short of a 5.

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.