Skip to main content
Glama

Tollkit Crypto

Pre-trade token check

pretrade_check
Read-only

Before trading a token on Base, Ethereum or Solana: its USD price and liquidity, plain warnings read from the chain, how big your planned trade is next to the pool (rough price impact), how much your wallet already holds, and recent web results about the token. Facts, not advice.

$0.01 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote.

When to use: Right before a trade, to see if the size is sane for the pool and what's being said about the token. Use instead: token_check when you aren't trading yet. Parameters: token is required. chain: base (default), ethereum or solana. amount_usd: your planned size, for price impact against pool depth. wallet: your address, to show what you already hold. Returns: price, liquidity, chain warnings, rough price impact for amount_usd, your current holding, and recent web results. Facts, not advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNo"base" (default), "ethereum" or "solana".
tokenYesToken to check: ERC-20 contract or SPL mint ("SOL" works on Solana).
walletNoYour wallet address, to see how much of the token it holds.
paymentNoBase64 x402 payment payload. Omit it to receive a quote; sign that and call again.
amount_usdNoPlanned trade size in USD, to compare with pool depth.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds material context the annotations cannot: $0.01 USDC per call over x402, failed calls are free, and the two-step quote-then-pay flow via the `payment` parameter. It stops short of saying whether results are cached or how stale the on-chain reads can be, so not a full 5.

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?

Purpose is front-loaded and the labeled When/Use-instead/Parameters/Returns blocks scan well. However 'Facts, not advice' appears twice and the Returns summary largely repeats the opening sentence's output list, which is avoidable duplication.

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 read-only, five-parameter tool with no output schema, the description covers everything an agent needs: what comes back, the payment handshake, chain defaults, and the one required field. Nothing material is left to inference.

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 description coverage is 100%, so the baseline is 3; the description goes slightly beyond by grouping the parameters into a usage narrative (amount_usd drives price impact against pool depth, wallet drives holdings display) and reminding that token is required. Much of that overlaps the schema text, which caps it at 4.

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 ('pre-trade check of a token on Base, Ethereum or Solana') and enumerates the concrete outputs: price, liquidity, chain warnings, price impact, holdings, web results. It also names the sibling token_check as the non-trading alternative, so the agent can separate the two 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 'When to use' line ties it to the moment right before a trade with a sizing question, and an explicit 'Use instead: token_check when you aren't trading yet' exclusion. Both the positive and negative conditions are stated.

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.