Skip to main content
Glama

Token check before buying ($0.01 via x402)

token_check
Read-only

Paid ($0.01 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, in RLUSD on the XRP Ledger or in USD₮0 on X Layer): call this before your agent buys, holds or accepts a token, when it needs one answer to act on. Send tokenAddress (an EVM token contract 0x..., a Solana mint, an XRPL CURRENCY.rIssuer or an Algorand asset id) and chain (default base). Get back everything token_verdict returns (green/orange/red, grade SAFE/CAUTION/RISKY/AVOID, reason codes, one-line summary, market data), plus decision (buy, small_only or do_not_buy, from the grade), take (one or two plain sentences for whoever is about to buy), sell_check (can_sell yes, limited, no or unknown, one entry per check with its source; on Base a sell transfer into the token's pool is simulated on chain, simulated true only when it ran; missing data is unknown, never no) and share (a signed link to a page and a 1200x630 card, to show a person). Do not buy on do_not_buy or when can_sell is no. Same as POST /v1/token/verdict. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.

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": {
      "tokenAddress": "<tokenAddress>"
    },
    "name": "token_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain the token lives on (default base)
tokenAddressYesSolana mint address (base58), EVM token contract (0x...), an XRPL token as CURRENCY.rIssuer (e.g. RLUSD.rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De), or an Algorand asset id (e.g. 31566704)

Output Schema

NameRequiredDescriptionDefault
takeNoOne or two plain sentences for someone about to buy
gradeNo
shareNoA signed link to a page and a 1200x630 card for this verdict (null without a receipt signer)
acceptsNoOnly on an unpaid call: the x402 payment options
reasonsNo
receiptNo
verdictNogreen: go ahead; orange: ask the user; red: do not sign or buy (absent on the payment requirement)
versionNo
decisionNoFrom the grade: SAFE buy, CAUTION small_only, RISKY or AVOID do_not_buy
one_linerNoOne-line summary
sell_checkNoCan a holder sell it back? One entry per check, with its source

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations only say readOnly/openWorld/non-destructive, while the description discloses the crucial behaviors: it is paid ($0.01 via x402) with a specific list of accepted chains and currencies, it returns a signed EIP-191 receipt bound to the arguments, and on Base a sell transfer is simulated on chain with 'unknown' instead of 'no' for missing data. That is substantive operational context the annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The body is effectively one enormous run-on sentence with nested parentheticals listing nine chains and eleven payment assets before the purpose appears. Content is dense and much of it is valuable, but the front-loading is inverted and the structure makes it hard to scan, which hurts an agent parsing it quickly.

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?

Given a paid, two-parameter tool with an output schema, everything an agent needs is present: cost and payment rails, accepted address formats, defaults, the returned decision/take/sell_check/share fields, the buy/no-buy rule, and receipt semantics. The output schema means return values need not be fully restated, and the description still covers the decision-relevant ones.

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% and the schema descriptions already enumerate the accepted tokenAddress forms (EVM 0x..., Solana mint, XRPL CURRENCY.rIssuer, Algorand asset id) and the chain default of base. The description largely restates those formats, adding little semantic meaning 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?

The description states a specific verb and resource (check a token before an agent buys, holds or accepts it) and precisely distinguishes itself from token_verdict by saying it returns everything token_verdict returns plus decision, take, sell_check and share. The core purpose is however buried behind a long payment-rail enumeration in the opening clause, so an agent must read past ~60 words before learning what the tool actually does.

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?

It gives a clear triggering condition ('call this before your agent buys, holds or accepts a token, when it needs one answer to act on') and an explicit decision rule ('Do not buy on do_not_buy or when can_sell is no'). It implies but never explicitly states when to pick token_quick_verdict or token_verdict instead (the cheapest/full-detail alternatives), so routing among siblings still requires inference.

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.