Skip to main content
Glama

SiteCheck Crypto & Finance

Ready-to-sign transaction that swaps a token into USDC

crypto_swap_to_usdc
Read-only

Ready-to-sign transaction that swaps a token into USDC on Base, Arbitrum, Polygon (0x Swap API) or Solana (Jupiter), built for your own address (taker). Returns USDC out and the guaranteed minimum, the approve step if needed, balance warnings, fees (0.25% SiteCheck plus the router's own) and gas. Never signed or sent by SiteCheck: you sign it. Quotes are valid about 30 seconds. Price: $0.005 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "sellToken": "<sellToken>",
      "taker": "<taker>"
    },
    "name": "crypto_swap_to_usdc"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase, arbitrum, polygon or solana (default base)
takerYesYour wallet address that will sign and send the transaction (0x + 40 hex; Solana: base58 public key)
amountNoAmount to sell in whole units, e.g. 0.001 (or give sellAmount)
sellTokenYesToken to sell: contract address (Solana: mint), ETH/POL/SOL/native for the chain's coin, or WETH
sellAmountNoAmount to sell in the token's base units (wei, lamports), instead of amount
slippageBpsNoAllowed slippage in basis points, 1 to 300 (default 50 = 0.5%)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavior beyond them: the return payload (USDC out plus guaranteed minimum, approve step, balance warnings, fees, gas), the 0.25% SiteCheck fee on top of router fees, quote lifetime, and that SiteCheck never signs or sends. It also discloses commercial terms ($0.005 per successful call via x402, failures not charged), which is exactly the kind of context annotations cannot carry.

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 action and chain coverage, followed by returns, safety posture, quote validity, and pricing in a logical order. It is dense with long clause-heavy sentences (the returns sentence lists five items in one breath), but nearly every clause carries decision-relevant information.

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 multi-chain, paid, transaction-producing tool, the description covers everything an agent needs before calling: supported chains, signing responsibility, quote expiry, fee structure, billing and failure billing, and the shape of the result. Return values are also summarized despite an output schema existing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already self-documenting. The description still adds modest meaning by tying the taker parameter to the signing address and linking slippage to the returned 'guaranteed minimum', clarifying what the slippage setting actually affects in the response.

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 precise verb+resource: build a ready-to-sign swap transaction converting a token into USDC. It enumerates the supported chains and routers (Base/Arbitrum/Polygon via 0x, Solana via Jupiter) and defines scope as being for the caller's own address (taker), which separates it from the sibling analytics tools in the catalog.

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?

Gives clear operating context: the caller is the taker and must sign and send the result themselves, and quotes expire in about 30 seconds, which implies a use-it-immediately workflow. It does not name an alternative tool or state an explicit when-not-to-use condition, 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.

Resources