Skip to main content
Glama

check_token_honeypot

Read-onlyIdempotent

Stage 1 Free ($0.00) static DEX token bytecode scanner that detects blacklist traps (isBlacklisted, setBlacklist), 100% sell-tax modifiers (setTax, setFee), trading freezes (pause), and SELFDESTRUCT opcodes. Fetches live token_address bytecode on chain_id unless bytecode_override (0x hex) is provided for offline execution; returns safe EOA status if bytecode is empty. Returns JSON with is_contract, is_honeypot_suspect (bool), risk_score (0.0-10.0), threat_categories, risk_flags, and recommendation.

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": {
      "token_address": "<token_address>"
    },
    "name": "check_token_honeypot"
  }
}

Input Schema

NameRequiredDescriptionDefault
chain_idNoEVM Chain ID (8453 for Base Mainnet)
token_addressYesHex EVM address of token contract to inspect for honeypot traps
bytecode_overrideNoOptional raw token runtime bytecode hex string (0x...) for offline analysis

Output Schema

NameRequiredDescriptionDefault
toolNo
stageNo
chain_idNo
cost_usdNo
risk_flagsYes
risk_scoreYes
is_contractNo
llm_invokedNo
token_addressYes
recommendationNo
threat_categoriesYes
bytecode_size_bytesNo
categories_detectedNo
is_honeypot_suspectYes
upsell_recommendationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / categories_detected
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / llm_invoked
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / upsell_recommendation
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bytecode_size_bytes": {
      +      "type": "integer"
      +    },
      +    "chain_id": {
      +      "type": "integer"
      +    },
      +    "cost_usd": {
      +      "type": "number"
      +    },
      +    "is_contract": {
      +      "type": "boolean"
      +    },
      +    "is_honeypot_suspect": {
      +      "type": "boolean"
      +    },
      +    "recommendation": {
      +      "type": "string"
      +    },
      +    "risk_flags": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "risk_score": {
      +      "type": "number"
      +    },
      +    "stage": {
      +      "type": "integer"
      +    },
      +    "threat_categories": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "token_address": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "token_address",
      +    "is_honeypot_suspect",
      +    "risk_score",
      +    "threat_categories",
      +    "risk_flags"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the description adds real substance on top: the cost ($0.00), the static-only analysis boundary, the network fetch versus offline override behavior, and the EOA short-circuit when bytecode is empty. These are behavior-relevant traits an agent could not derive from the annotations alone.

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?

Two dense sentences, front-loaded with the tool's identity and detector scope, then parameter behavior, then return shape — no sentence is padding. The parenthetical pricing and the enumerated traps each carry selection-relevant information.

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?

For a read-only, three-parameter scanner with full schema coverage and an output schema, the definition covers purpose, mechanics, and edge cases (empty bytecode) thoroughly. The minor gap is that the return-field listing partly duplicates the output schema and it never states chain coverage limits.

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, and the description pushes past it by explaining the interplay between token_address live fetching and bytecode_override offline execution rather than just restating each field. The chain_id default is left to the schema, which is acceptable at this coverage level.

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?

The description states a specific verb and resource — a static DEX token bytecode scanner that detects named trap classes (blacklist, 100% sell-tax, trading freeze, SELFDESTRUCT). The 'Stage 1 Free ... static' framing implicitly separates it from the deeper sibling audit, so an agent can tell what this tool does and roughly where it sits in the tiering.

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 clear usage conditions: it fetches live bytecode on the given chain by default, and bytecode_override is for offline execution, with empty bytecode returning a safe EOA status. What it does not do is name an alternative (e.g. deep_semantic_audit) and say when to escalate to it, so the when-not guidance is only implied by 'Stage 1'/'static'.

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.