Skip to main content
Glama

x402, crypto, defi, base, usdc, evm, security, sec-edgar, news, web-search

EVM token contract risk scan with AI verdict

token_contract_audit
Read-onlyIdempotent

[$0.01] On-chain EVM token contract risk scan: proxy upgradeability, owner renouncement, mint/blacklist/fee/trading-toggle functions in bytecode, and DEX liquidity, scored 0-100 with a local qwen3.5:4b verdict and reasons. Do not use for token price/FDV/liquidity (use token_market_snapshot) or pre-tx simulation (use workflow_tx_guardian). chain accepts EVM networks (base, ethereum, arbitrum, optimism; not Solana), and expiring timeout_ms returns degraded=true omitting the LLM verdict. Live RPC bytecode + DEX, read-only; requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 30-60 req/min.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "token_contract_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimismbase
addressNoToken contract address (0x + 40 hex)
timeout_msNoOptional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data

Output Schema

NameRequiredDescriptionDefault
aiNo
as_ofNo
chainNo
tokenNo
cachedNo
addressNo
contractNo
degradedNo
endpointNo
liquidityNo
risk_bandNo
risk_scoreNo
risk_reasonsNo
schema_versionNo
checks_not_performedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past annotations (readOnlyHint, openWorldHint, idempotent, non-destructive) by disclosing data sources (live RPC bytecode + DEX), the LLM verdict component, and the degradation path where an expiring timeout_ms returns degraded=true and omits the LLM verdict. It also surfaces operational constraints annotations cannot express: x402 USDC or Stripe MPP payment, 10 free lifetime calls via /api/free/*, and a 30-60 req/min rate limit.

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

Conciseness5/5

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

Front-loads cost ($0.01) and purpose, then exclusions, then parameter behavior, then auth/rate context - a prioritized ordering with no filler. Every clause carries decision-relevant information despite the density.

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?

Covers everything an agent needs before calling: what is scanned, what is returned (score + verdict, with an output schema present so return shape needn't be restated), chain scope, timeout degradation, payment/auth requirements, and quota. Nothing material is missing for a read-only, paid, open-world scan.

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 is 3; the description adds real meaning by constraining `chain` to EVM networks and excluding Solana, and by clarifying that timeout_ms omits the LLM verdict rather than just returning non-LLM data as the schema states. It does not add format detail for `address` beyond the schema's 0x+40 hex, keeping it short of a 5.

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 ("On-chain EVM token contract risk scan") and enumerates exactly what is checked: proxy upgradeability, owner renouncement, mint/blacklist/fee/trading-toggle functions, and DEX liquidity, plus the scored 0-100 verdict. It also explicitly differentiates itself from token_market_snapshot and workflow_tx_guardian by naming what each covers instead.

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?

Gives explicit when-not-to-use guidance with named alternatives: "Do not use for token price/FDV/liquidity (use token_market_snapshot) or pre-tx simulation (use workflow_tx_guardian)." It further narrows scope by chain ("EVM networks... not Solana"), so an agent can route correctly without opening any schema.

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