Skip to main content
Glama

scan_contract_selectors

Stage 1 Free deterministic inspection of smart contract bytecode on Base or EVM chains. Discovers 4-byte function selectors and flags high-risk administrative capabilities (ownership transfer, proxy upgrade, unconstrained minting, selfdestruct).

Input Schema

NameRequiredDescriptionDefault
chain_idNoEVM Chain ID (8453 for Base Mainnet, 84532 for Base Sepolia, 42161 for Arbitrum One)
target_addressYesHex EVM address of smart contract to inspect (e.g. '0x4200000000000000000000000000000000000006')
bytecode_overrideNoOptional raw contract runtime bytecode hex string (0x...) for offline analysis without RPC calls

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It usefully discloses that the scan is deterministic and free and enumerates the risk categories it detects, but it never states whether the tool performs network/RPC reads, whether it is strictly read-only against the contract, or what the result payload looks like, leaving meaningful gaps for an unannotated tool.

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 sentences, both front-loaded and dense: the first frames the stage, cost, method, and domain; the second enumerates exactly what is discovered and flagged. No filler or repetition.

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

Completeness3/5

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

With only three parameters, no annotations, and no output schema, the description does the core job of saying what is scanned and what is detected. It is still thin on result shape and execution behavior (RPC vs. offline, read-only guarantees), which matter more here precisely because no annotations or output schema exist to cover them.

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%, so chain_id, target_address, and bytecode_override are already fully documented in the schema, including the offline-analysis purpose of the override. The description's mention of 'Base or EVM chains' aligns with chain_id but adds no new parameter semantics, 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 uses a specific verb and resource: 'inspection of smart contract bytecode', and it names concrete outputs (4-byte function selectors, high-risk administrative capabilities: ownership transfer, proxy upgrade, unconstrained minting, selfdestruct). 'Stage 1' implicitly positions it ahead of the deeper audit sibling, but it never names 'deep_semantic_audit' or any other sibling 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?

'Stage 1' and 'Free deterministic' imply this is the cheap first-pass to run before deeper analysis, which is useful implied guidance. There is no explicit when-to-use/when-not statement and no named alternative directing the agent to check_token_honeypot or deep_semantic_audit for follow-up.

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.