Skip to main content
Glama

token-trap-detector

On-Chain Bytecode & Unverified Token Trap Detector — Reads live Base bytecode, proxy slots (EIP-1967/beacon/zeppelinos/EIP-1822/EIP-1167), ERC-20 state, and privileged selectors to score honeypot and rug risk in code: SAFE | CAUTION | HONEYPOT_RUG | INSUFFICIENT_EVIDENCE. Adds honeypot.is buy/sell simulation and GoPlus tax and honeypot flags, disclosed per source, and degrades to a lower-confidence bytecode-only score when they fail.

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-trap-detector"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceCodeNoOptional Solidity source claimed for the token.
tokenAddressYesToken contract address on Base.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the network (Base), the concrete data sources (proxy patterns, ERC-20 state, privileged selectors, honeypot.is simulation, GoPlus flags), per-source disclosure of results, and a degradation path to a lower-confidence bytecode-only score when external sources fail. It stops short of stating read-only/side-effect guarantees or latency/rate-limit behavior, which keeps it from a 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?

A single front-loaded sentence that leads with the core identity and then layers in data sources, output enum, and fallback behavior; every clause carries information. It is dense to the point of being run-on, with the em-dash parentheticals making it harder to scan, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description appropriately enumerates the four possible score outcomes, which is the most important thing an agent needs to interpret results. Combined with disclosed data sources and failure degradation, the definition is complete for a two-parameter read-only analyzer; only caller-facing concerns like latency or prerequisite network access are unstated.

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 description coverage is 100% for both parameters, so tokenAddress format and sourceCode's optionality are already documented in structured data. The description adds only indirect meaning — that source material may be absent or unverified — and says nothing about how a supplied sourceCode affects the score versus bytecode-only analysis. Baseline 3 applies when the schema does the heavy lifting.

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 verb and resource — reads live Base bytecode, proxy slots, ERC-20 state, and privileged selectors — to score honeypot/rug risk, and names the exact output categories (SAFE | CAUTION | HONEYPOT_RUG | INSUFFICIENT_EVIDENCE). The emphasis on unverified tokens and bytecode analysis implicitly separates it from a generic due-diligence or screening tool, but no sibling is ever 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context of use is strongly implied by 'Unverified Token Trap Detector' and the bytecode-first approach, so an agent can infer this is for on-chain risk scoring of a token on Base. However, there is no explicit when-to-use/when-not statement and no routing to alternatives such as token-due-diligence or screen-tokens, leaving the agent to infer selection.

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