Skip to main content
Glama

SpendPreflight

Token safety check — Base contract signals

check_token
Read-only

Use when you need a bounded Base token assessment with explicit unassessed areas. Token safety check for Base tokens and contracts before further review. Basic: dated deployed-bytecode and OFAC SDN address-match signals from bounded public-chain reads. Deep adds standard owner(), paused(), totalSupply(), decimals() and ERC-1967 storage observations, exact ERC-1167 minimal-proxy target detection, a Sourcify runtime-verification claim matched to current bytecode, and direct-deployment age when independently supported by the creation receipt. Assessment stays incomplete: honeypot/sellability, full mint/blacklist powers, liquidity locks, holder concentration and non-OFAC scam lists are NOT assessed. Missing data is unknown; never a safe-to-buy verdict or full audit. Informational, not financial advice. Basic 0.02 USDC; deep 0.05 USDC. Shared trial first. Example arguments: {"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"eip155:8453","tier":"basic"}. Example only; no safety endorsement. Price: 0.02 basic; 0.05 deep USDC. Minimal input example: {"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"eip155:8453","tier":"basic"}. Illustrative output excerpt: {"verdict":"unknown","assessment_complete":false,"unassessed":["honeypot_and_sellability","mint_and_blacklist_privileges","liquidity_lock_or_removability","holder_concentration","non_OFAC_scam_lists","complete_owner_privilege_and_proxy_analysis"]}. Illustrative output excerpt, not a live result, signature, approval or guarantee. Freshness/data/availability checks still apply. How to pay (MCP): First use the existing shared allowance of 3 eligible calls per IP per UTC day, without payment metadata. This is shared with eligible HTTP trials, not a new allowance. Use an x402-capable MCP client. A generic MCP connector without payment support cannot complete a paid continuation. On payment required, STOP. Inspect the exact accepts amount, asset, network and payTo; obtain explicit wallet/budget approval before continuing. Only after approval, let the configured x402 MCP client attach its signed payload in _meta["x402/payment"] and retry the same tools/call arguments. Never send a separate USDC transfer or paste keys into tool arguments. Never silently fall back from free access to payment. If a signed attempt has an unknown outcome, inspect that authorization/transaction; do not create another automatically.

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": {
      "address": "<address>"
    },
    "name": "check_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoOptional. Assessment tier enum string: basic or deep. Example: basic. Defaults to basic; existing prices and incomplete-assessment limits apply.basic
chainNoOptional. CAIP-2 chain identifier string; only Base eip155:8453 is supported. Example: eip155:8453. Defaults to Base when omitted.
addressYesRequired. 0x-prefixed 20-byte Base token or contract address string. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. An example address is not a safety endorsement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / address / description
      Previous value: -"Required. 0x-prefixed 20-byte Base address string. Example: 0xBf4164e07552e4c1b1B1597E72C7acAA3F0a1c58."New value: +"Required. 0x-prefixed 20-byte Base token or contract address string. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. An example address is not a safety endorsement."
  2. Changed3 schema fields changed
    • addedInput schema / properties / address / description
      Added value: +"Required. 0x-prefixed 20-byte Base address string. Example: 0xBf4164e07552e4c1b1B1597E72C7acAA3F0a1c58."
    • addedInput schema / properties / chain / description
      Added value: +"Optional. CAIP-2 chain identifier string; only Base eip155:8453 is supported. Example: eip155:8453. Defaults to Base when omitted."
    • addedInput schema / properties / tier / description
      Added value: +"Optional. Assessment tier enum string: basic or deep. Example: basic. Defaults to basic; existing prices and incomplete-assessment limits apply."
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, non-destructive, open-world): it discloses cost per tier, the shared 3-call-per-IP-per-UTC-day trial, the x402 payment handshake with an explicit STOP/approval protocol, that missing data means unknown, and that an ambiguous signed attempt must be inspected rather than retried. That is exactly the operational 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.

Conciseness2/5

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

Front-loaded and organized, but heavily redundant: pricing appears twice, the example arguments are printed twice, and the illustrative output excerpt is repeated with three separate disclaimers, alongside a long embedded payment-protocol walkthrough. A large fraction of the text could be cut without losing an agent-relevant fact.

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 paid, no-output-schema tool this is essentially complete: it shows an illustrative response shape with verdict/assessment_complete/unassessed, lists excluded analyses, covers cost and free-trial limits, and warns that freshness and availability still apply. Nothing an agent needs in order to invoke it or interpret the answer is conspicuously absent.

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 the baseline would be 3, but the description adds real semantic content by defining what each tier actually returns (basic vs. deep adding owner(), paused(), totalSupply(), ERC-1967 and ERC-1167 detection, Sourcify match, deployment age) and restating the Base-only chain constraint. It does not add syntax details for address beyond the schema's pattern.

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?

States a specific resource (Base tokens and contracts) and action (safety check from bytecode, OFAC match, verification and storage signals), and scopes it with "bounded... with explicit unassessed areas." It is distinguishable from siblings like check_payee or check_endpoint by its on-chain contract focus, though no sibling is named explicitly.

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 when-to-use signals ("before further review") and a strong when-not-to-trust boundary via the enumerated unassessed areas (honeypot/sellability, mint powers, liquidity locks, holder concentration) plus "never a safe-to-buy verdict or full audit." It also spells out the basic-vs-deep choice. What is missing is routing to alternative tools when a full assessment is actually needed.

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