Skip to main content
Glama

inspect_proxy_and_source

Read-onlyIdempotent

Inspect EIP-1967/Beacon proxy implementation, admin, beacon, owner, and paused states, then resolve verified Solidity source metadata without LLM calls.

Instructions

Stage 1 Free ($0.00) EIP-1967/Beacon proxy slot inspector and verified Solidity source resolver. Probes on-chain implementation, admin, beacon, owner(), and paused() states via AsyncWeb3 and retrieves verified source metadata from Sourcify/Etherscan v2 without invoking any LLM. Supports offline_mode=True for deterministic dry-run or network-free verification.

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": {
      "target_address": "<target_address>"
    },
    "name": "inspect_proxy_and_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
chain_idNoEVM Chain ID (8453 for Base Mainnet, 84532 for Base Sepolia, 42161 for Arbitrum One)
offline_modeNoIf true, returns a deterministic clean offline structure without making RPC or HTTP calls
target_addressYesHex EVM address of smart contract or proxy to inspect
fetch_verified_sourceNoWhether to query Sourcify/Etherscan v2 for verified Solidity source metadata

Output Schema

NameRequiredDescriptionDefault
toolYes
stageYes
chain_idNo
cost_usdYes
is_proxyYes
is_pausedNo
llm_invokedYes
admin_addressNo
owner_addressNo
beacon_addressNo
contract_namesNo
recommendationNo
target_addressYes
source_providerNo
source_verifiedYes
security_warningsNo
upsell_recommendationNo
implementation_addressNo
effective_audit_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description still earns credit by disclosing behavior annotations cannot: it names the exact storage slots and getters probed, identifies the external data sources (AsyncWeb3, Sourcify, Etherscan v2), guarantees no LLM is invoked, and explains that offline_mode yields a deterministic structure with no RPC or HTTP calls.

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?

Two front-loaded sentences that pack the inspected fields and the offline escape hatch, with no filler beyond the decorative 'Stage 1 Free ($0.00)' pricing tag. Structure is dense but readable.

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?

An output schema exists, so return-shape explanation is unnecessary, and the description covers inputs, data sources, and the deterministic mode. Gaps remain around failure behavior (non-proxy targets, unverified contracts, Etherscan rate limits or missing API keys), which matter for an open-world tool that hits external APIs.

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 all four parameters including chain_id examples and offline_mode are already documented in the schema; baseline 3 applies. The description's mention of offline_mode and source fetching restates schema semantics rather than adding format or edge-case detail.

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 names a specific verb and resource set: EIP-1967/Beacon proxy slot inspection plus verified Solidity source resolution, and enumerates exactly what is probed (implementation, admin, beacon, owner(), paused()). This is far more specific than the sibling names suggest, but it never explicitly contrasts itself with a sibling such as scan_contract_selectors or deep_semantic_audit, so it stops short of full differentiation.

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?

Usage is only implied: the 'Stage 1' framing and the note that offline_mode enables a deterministic dry-run or network-free verification hint at when the tool fits, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool for deeper analysis.

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