Skip to main content
Glama

inspectContractInfo

Read-only

Inspect smart contract bytecode size, proxy implementation slots, EIP-7702 delegation, and verified selectors to audit Base and Solana contracts.

Instructions

MANDATORY SECURITY GATE: Inspects Base EVM smart contract bytecode size, EIP-1967/UUPS proxy implementation slots, EIP-7702 delegation designators, and verified function selectors. Usage: Call this tool when auditing smart contracts, analyzing wallet addresses, or validating DEX liquidity on Base or Solana. Returns verified safety metrics: EVM contract bytecode size, proxy/EIP-7702 status & verified selectors. Price: 0.010 USDC on Base.

Input Schema

NameRequiredDescriptionDefault
chain_idNoTarget blockchain ecosystem to analyze ('base' or 'solana')
contract_addressYesSmart contract address on Base (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / chain_id / description
      Added value: +"Target blockchain ecosystem to analyze ('base' or 'solana')"
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly=true, openWorld=true, non-destructive, so safety profile is covered. The description adds genuinely useful context beyond annotations: it discloses a per-call cost (0.010 USDC on Base), frames itself as a security gate, and summarizes what is returned. It omits error/rate-limit behavior and the default chain_id handling.

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

Conciseness3/5

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

Front-loads the purpose, but 'MANDATORY SECURITY GATE' and 'Returns verified safety metrics' are marketing/redundant restatements of the first sentence, and the returns description duplicates the inspection targets. Some padding dilutes an otherwise compact definition.

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 carries return-value burden and does so by naming the metrics returned. It also adds pricing. The remaining gap is a mild internal inconsistency: chain_id is described as 'base or solana' while contract_address is framed as a Base 0x address, leaving the Solana path ambiguous.

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 coverage is 100%, so the schema already documents both parameters, establishing the baseline of 3. The description reinforces the 'Base or Solana' ecosystem scope and the bytecode/proxy/selector outputs but adds no syntax or formatting detail beyond what the schema provides.

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 (Inspects) and resource (smart contract bytecode size, EIP-1967/UUPS proxy slots, EIP-7702 delegation, verified selectors), which is more precise than generic siblings like inspectBaseToken or checkSmartContractHoneypot. It does not explicitly differentiate itself from those siblings, but the enumerated artifacts give a clear picture of the tool's scope.

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?

Provides explicit when-to-use triggers (auditing smart contracts, analyzing wallet addresses, validating DEX liquidity), which is more than implied guidance. However, it names no alternatives or exclusions despite many overlapping siblings (checkSmartContractHoneypot, inspectUniswapPoolState), and 'analyzing wallet addresses' conflicts with a schema that only accepts a contract_address.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.