Skip to main content
Glama

chain_admin_risk

Read-only

Contract admin / centralization risk — Who controls a smart contract? Reads owner, pendingOwner, EIP-1967 and ZeppelinOS proxy admin + implementation, beacon owner, AccessControl default admin and paused() on base, ethereum, arbitrum, optimism or polygon, then classifies each controller as EOA, EIP-7702 EOA, Safe or multisig (m-of-n), timelock (delay) or contract (follows a ProxyAdmin to its owner) and returns centralizationRisk NONE / LOW / MEDIUM / HIGH / CRITICAL (CRITICAL = one key can upgrade the code) with plain-English flags. Required: address. Optional: chain (default base). No contract code = 422. Price: $0.004 USDC (Base, via x402).

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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "chain_admin_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
addressYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly/openWorld/non-destructive, and the description adds substantial context beyond them: an explicit price of $0.004 USDC via x402 (a payment step the agent must anticipate), the 422 failure mode for non-contracts, and the classification taxonomy (EOA, EIP-7702 EOA, Safe/multisig m-of-n, timelock, else follow ProxyAdmin to owner). It does not mention rate limits or latency, which for a multi-chain RPC-plus-payment call would have been useful.

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?

Front-loaded with the core question and the data it reads, then the output shape, then required/optional parameters and cost — a sensible order. It is dense to the point of being a run-on and repeats the payment/chain detail at the tail, but essentially every clause carries information an agent needs.

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

Completeness5/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 the return contract itself and does so fully: a centralizationRisk enum of NONE/LOW/MEDIUM/HIGH/CRITICAL, the definition of the top severity, and the accompanying plain-English flags. Combined with supported chains, the default, the 422 case, and pricing, an agent has enough to call this correctly and interpret the result.

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%, but the schema descriptions are placeholders — 'chain' is documented only as 'base' and 'address' only as a sample hex string. The description therefore does real work: it enumerates the supported chains (base, ethereum, arbitrum, optimism, polygon) that are not captured in any enum, and states the default. It leaves one inconsistency with the schema, which marks both fields required while the description calls chain optional with a default.

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 first clause names a specific verb and resource ('Contract admin / centralization risk — Who controls a smart contract?') and then enumerates exactly what it reads: owner, pendingOwner, EIP-1967/ZeppelinOS proxy admin + implementation, beacon owner, AccessControl default admin, paused(). This is clearly distinct from neighbors like chain_contract_info or chain_code, so an agent can pick it without opening the schema.

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 a clear context of use (determining who can upgrade or administer a deployed contract) plus prerequisites: an address is required, a chain is selectable, and a contract without code returns 422. It stops short of naming an alternative tool or stating when a sibling such as a generic contract-info call would be preferable.

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