Skip to main content
Glama

Buy a token with USDC (real money)

quick_buy
Destructive

Buy a Solana token or tokenized stock with USDC in one step. Real money. Confirm token and amount first. Checked server-side against max per trade, daily buy volume and market-cap range. ⚠️ SPENDS REAL MONEY from the user's agent wallet; cannot be undone. Get an explicit yes on the exact amount and token BEFORE calling. No quote step, so the user sees no price first: prefer get_swap_quote + execute_swap when they may want it. Exactly one of amount_usd or amount_in. Red safety tier buys are refused. The result has quote_id; when 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. Moby attaches no exits: place this position's TP/SL yourself with create_order.

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": {
      "output_token": "<output_token>"
    },
    "name": "quick_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
amount_inNoHow much to spend in whole units of USDC, the only funding asset — SOL is a position, never spent by a buy. Mutually exclusive with `amount_usd`.
amount_usdNoHow much to spend in US DOLLARS. Mutually exclusive with `amount_in`.
confidenceNoOptional. How sure you are.
output_tokenYesContract address of the token to BUY. Get it from `search_tokens`.
expected_holdNoOptional. How long you expect to hold.

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"
    • removedInput schema / properties / amount_in / title
      Removed value: -"Amount In"
    • removedInput schema / properties / amount_usd / title
      Removed value: -"Amount Usd"
    • 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 / output_token / title
      Removed value: -"Output Token"
    • 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 / title
      Removed value: -"quick_buyArguments"
  2. Changed6 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."
      +}
    • removedInput schema / properties / rationale
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maxLength": 500,
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Optional. Your 2–4 line thesis: why this coin, why now, who's in it, what breaks it. Stored with the trade and shown to the user; ≤500 chars.",
      -  "title": "Rationale"
      -}
    • 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.4/5.0
Behavior4/5

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

Well beyond the annotations (destructive, non-idempotent, open world): the description discloses that real money is spent irreversibly, that server-side caps exist on per-trade size, daily volume and market cap, and that no exits are attached so TP/SL must be placed with `create_order`. The only shortfall is that it partly spends words explaining return fields already covered by the output schema.

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 money-spending warning and the confirmation requirement, which is the right priority order for a destructive financial tool. It is dense but mostly earns its length, with minor redundancy such as `fill_pending` being explained twice and the amount mutual-exclusivity repeated from the schema.

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 real-money mutation with a follow-up state machine, it covers everything needed to call correctly: confirmation, safety-tier refusal, one-of amount selection, the `quote_id` return and the `fill_pending` → `get_swap_status` recovery path. Return-format detail is arguably surplus given the output schema, but nothing an agent needs is missing.

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 baseline is 3. The description restates the mutual exclusivity of `amount_usd` and `amount_in` rather than adding new meaning, and says nothing about `levels`, `thesis`, `confidence` or `expected_hold` beyond what the schema already documents.

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?

"Buy a Solana token or tokenized stock with USDC in one step" names a specific verb, both asset classes, and the funding asset. It also distinguishes itself from the quote-then-swap path, so an agent can separate quick_buy from execute_swap without opening either 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?

Explicit routing is given: prefer `get_swap_quote` + `execute_swap` when the user may want to see a price first, since quick_buy has no quote step. It also states a hard prerequisite (explicit yes on the exact amount and token before calling) and a refusal condition (red safety tier buys are refused).

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