Skip to main content
Glama

Sell a token to USDC (real money)

quick_sell
Destructive

Sell all or part of a held token to USDC at market. Real money. Full sells also cancel that token's open exits. Quote + execute in one call (no expired quotes): THE tool to close or trim. ⚠️ SPENDS REAL MONEY from the user's agent wallet; cannot be undone. Get an explicit yes on the exact amount and token BEFORE calling. pct = percent of the CURRENT on-chain balance (default 100 = all); proceeds land in USDC in the same wallet. Result: sold_amount, transaction_signature, quote_id; if fill_pending, call get_swap_status(quote_id=...). AMOUNTS: quote the _ui fields (whole tokens); un-suffixed amounts are the smallest unit. Null = unknown, never zero; fill_pending: true = fill not booked yet (get_swap_status). fee_usd / fee_pct_of_trade = Moby's fee. A full sell cancels all lots' resting TP/SL (cancelled_order_ids; cancel_failed_order_ids / cancel_pending_order_ids + cancel_note are retried). Never blocked by market cap, safety tier or trade limits; the market switch applies.

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_address": "<token_address>"
    },
    "name": "quick_sell"
  }
}

Input Schema

NameRequiredDescriptionDefault
pctNoPercent of the current balance to sell, 1-100. Default 100 = close it.
levelsNoOptional. Your chart levels as numbers; images are not accepted. Stored with the trade and shown back to you.
thesisNoOptional. Your own note on this trade, 2–4 lines: why this coin, why now, what breaks it. Stored with the trade and shown back to you; ≤500 chars.
confidenceNoOptional. How sure you are.
expected_holdNoOptional. How long you expect to hold.
token_addressYesContract address of the HELD token to sell. Get it from `get_my_balances`.
max_slippage_bpsNoSlippage tolerance in basis points (100 = 1%). Omit for Moby's default.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • removedInput schema / $defs / TradeLevelsParam / properties / entry_price / title
      Removed value: -"Entry Price"
    • removedInput schema / $defs / TradeLevelsParam / properties / invalidation / title
      Removed value: -"Invalidation"
    • removedInput schema / $defs / TradeLevelsParam / properties / risk_reward / title
      Removed value: -"Risk Reward"
    • removedInput schema / $defs / TradeLevelsParam / properties / stop_price / title
      Removed value: -"Stop Price"
    • removedInput schema / $defs / TradeLevelsParam / properties / target_price / title
      Removed value: -"Target Price"
    • removedInput schema / $defs / TradeLevelsParam / properties / timeframe / title
      Removed value: -"Timeframe"
    • removedInput schema / $defs / TradeLevelsParam / title
      Removed value: -"TradeLevelsParam"
    • changedInput schema / properties / confidence / description
      Previous value: -"Optional. How sure you are: `low`, `medium` or `high`."New value: +"Optional. How sure you are."
    • removedInput schema / properties / confidence / title
      Removed value: -"Confidence"
    • changedInput schema / properties / expected_hold / description
      Previous value: -"Optional. How long you expect to hold: `minutes`, `hours`, `days` or `weeks`."New value: +"Optional. How long you expect to hold."
    • removedInput schema / properties / expected_hold / title
      Removed value: -"Expected Hold"
    • changedInput schema / properties / levels / description
      Previous value: -"Optional. Your chart levels as numbers: entry_price, stop_price, target_price (USD), timeframe (1m/5m/15m/1h/4h/1d), risk_reward, invalidation (one line, <=140 chars). Pass `levels` when you have them; images are not accepted. Stored with the trade and shown back to you."New value: +"Optional. Your chart levels as numbers; images are not accepted. Stored with the trade and shown back to you."
    • removedInput schema / properties / max_slippage_bps / title
      Removed value: -"Max Slippage Bps"
    • removedInput schema / properties / pct / title
      Removed value: -"Pct"
    • changedInput schema / properties / thesis / description
      Previous value: -"Optional. Your own note on this trade, 2–4 lines: why this coin, why now, who's in it, what breaks it. Stored with the trade and shown back to you; ≤500 chars."New value: +"Optional. Your own note on this trade, 2–4 lines: why this coin, why now, what breaks it. Stored with the trade and shown back to you; ≤500 chars."
    • removedInput schema / properties / thesis / title
      Removed value: -"Thesis"
    • removedInput schema / properties / token_address / title
      Removed value: -"Token Address"
    • removedInput schema / title
      Removed value: -"quick_sellArguments"
  2. Changed5 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "TradeLevelsParam": {
      +    "properties": {
      +      "entry_price": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Entry price in USD.",
      +        "title": "Entry Price"
      +      },
      +      "invalidation": {
      +        "anyOf": [
      +          {
      +            "maxLength": 140,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "One line: what breaks the idea.",
      +        "title": "Invalidation"
      +      },
      +      "risk_reward": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Reward divided by risk, e.g. 3.0.",
      +        "title": "Risk Reward"
      +      },
      +      "stop_price": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Stop price in USD.",
      +        "title": "Stop Price"
      +      },
      +      "target_price": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Target price in USD.",
      +        "title": "Target Price"
      +      },
      +      "timeframe": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "1m",
      +              "5m",
      +              "15m",
      +              "1h",
      +              "4h",
      +              "1d"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Chart timeframe the levels come from.",
      +        "title": "Timeframe"
      +      }
      +    },
      +    "title": "TradeLevelsParam",
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / confidence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "low",
      +        "medium",
      +        "high"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. How sure you are: `low`, `medium` or `high`.",
      +  "title": "Confidence"
      +}
    • addedInput schema / properties / expected_hold
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "minutes",
      +        "hours",
      +        "days",
      +        "weeks"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. How long you expect to hold: `minutes`, `hours`, `days` or `weeks`.",
      +  "title": "Expected Hold"
      +}
    • addedInput schema / properties / levels
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/TradeLevelsParam"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. Your chart levels as numbers: entry_price, stop_price, target_price (USD), timeframe (1m/5m/15m/1h/4h/1d), risk_reward, invalidation (one line, <=140 chars). Pass `levels` when you have them; images are not accepted. Stored with the trade and shown back to you."
      +}
    • addedInput schema / properties / thesis
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. Your own note on this trade, 2–4 lines: why this coin, why now, who's in it, what breaks it. Stored with the trade and shown back to you; ≤500 chars.",
      +  "title": "Thesis"
      +}
  3. Changed1 schema field changed
    • removedInput schema / properties / network
      Removed value: -{
      -  "const": "solana",
      -  "default": "solana",
      -  "title": "Network",
      -  "type": "string"
      -}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive/non-idempotent/open-world, and the description goes well beyond them: it warns that it spends real money and cannot be undone, that a full sell cancels all lots' resting TP/SL, and that failed/pending cancels are retried with specific result fields. That is exactly the side-effect detail an agent cannot infer from `destructiveHint: true` alone.

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?

The safety warning and the core action are front-loaded, and the field glossary is compact. It is somewhat overstuffed, with `fill_pending` and the `get_swap_status` routing stated twice and result-field detail crowding the invocation guidance.

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 an irreversible money-moving tool with a nested-free 7-parameter schema, the description covers the confirmation requirement, side effects on resting orders, slippage defaulting, failure/pending states, and unit conventions. Even though an output schema exists, the field notes (`_ui` vs smallest unit, null semantics, fee fields) remove ambiguity that would otherwise require opening it.

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 the schema documents every parameter including `pct`, `max_slippage_bps`, and the optional trade-journal fields. The description restates `pct` as percent of the CURRENT on-chain balance rather than adding syntax or edge-case detail, and its AMOUNTS guidance concerns reading results rather than supplying inputs. Baseline 3 is appropriate here.

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?

"Sell all or part of a held token to USDC at market" names a specific verb, resource, and target asset, and "THE tool to close or trim" positions it against the sibling buy/swap tools. An agent can tell what it does and what it is for without reading the schema.

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 gives explicit pre-call gating ("Get an explicit yes on the exact amount and token BEFORE calling"), defines the default behavior ("pct default 100 = all" closes the position), states what happens to existing exits on a full sell, and routes the agent to `get_swap_status(quote_id=...)` when `fill_pending`. It also states what does NOT block the trade (market cap, safety tier, trade limits).

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