Skip to main content
Glama

usdc_buy_with_native

Destructive

Buy a token by paying with the chain's native token (ETH, BNB, SOL). Auto-bridge from other chains is on by default for cross-chain purchases.

Instructions

Buy a token paying with the chain's native token (ETH, BNB, SOL...). Auto-bridge from other chains is on by default, as on gdex.pro.

Input Schema

NameRequiredDescriptionDefault
apiKeyNoGDEX API key for AES encryption
chainIdYesChain ID: 1, 10, 56, 146, 8453, 42161 or 622112261 (Solana). No USDC on Robinhood 4663 or Fraxtal 252
accountRefNoConnected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat
autoBridgeNoAutomatic funding (default true, as on gdex.pro): bridge USDC and top up native gas from the user's other chains, within maxSourceSpendRaw
tokenAddressYesToken to buy
walletAddressNoControl wallet address
minTokenOutRawYesMinimum token out, raw integer units
nativeAmountRawYesNative amount to spend (18 decimals EVM, 9 Solana), raw integer units
maxSourceSpendRawNoSigned cap on total source spend for auto-funding (default ceil(amount x 1.2)), raw integer units
sessionPrivateKeyNoSession private key from sign-in

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.12.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the agent knows this is an irreversible spend. The description adds that auto-bridge is on by default and that behavior mirrors gdex.pro, which is useful context beyond the annotations, but says nothing about slippage protection, bridge failure, or how to disable auto-bridge beyond what the schema's autoBridge/maxSourceSpendRaw fields already state.

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?

Two tight sentences, front-loaded with the action and payment asset. 'as on gdex.pro' is a mildly external reference that earns little on its own, but nothing is bloated or buried.

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?

For a 10-parameter, real-funds destructive trade with no output schema, the description leaves failure modes, slippage/minTokenOut expectations, and the accountRef/gdex_connect prerequisite to the schema. The rich schema and destructive annotation keep it at minimum viable rather than inadequate, but a financial trade tool should do more.

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 description coverage is 100% and every one of the 10 parameters is documented inline, including accountRef's dependency on gdex_connect and the autoBridge cap semantics. The description adds no parameter-level detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb+resource+payment mode: buying a token funded by the chain's native token, with examples of which natives (ETH, BNB, SOL). It implicitly separates itself from USDC-funded siblings like usdc_buy, but never names those siblings, so an agent must infer the distinction rather than being told it.

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?

Usage is only implied: pay with native instead of USDC. There is no explicit when-to-use/when-not statement and no mention of the closest alternatives (usdc_buy, buy_token, usdc_convert_native), nor any prerequisite such as connecting via gdex_connect. The auto-bridge default is a behavioral note, not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools