Skip to main content
Glama

Pacta, by Fractal Neurons — DeFi Control & Dependency Checks

Inspect Contract Control Plane (Raw Chain Facts)

pacta_inspect_controls
Read-onlyIdempotent

Read raw block-pinned EVM control-plane facts for any contract or token on Ethereum or Base: EIP-1967/beacon/UUPS proxy & implementation, owner/admin, Gnosis Safe multisig signers & Safe threshold, TimelockController delay, mint/pause selectors, and reproducible Foundry cast commands, cross-checked across two independent RPC providers. Never guesses or assigns a risk score. When to call: when you want ungraded, block-pinned authority facts for a specific {chain, address}. When NOT to call: call pacta_get_verdict if you want a 0-100 riskScore and A-F grade, or pacta_trace_dependencies for upstream collateral/oracle dependencies. Read-only; free: 100 calls per caller per UTC day (no API key, no wallet).

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": "pacta_inspect_controls"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesTarget EVM chain: 'ethereum' (chainId 1) or 'base' (chainId 8453).
addressYes40-hex-character 0x contract or token address.

Output Schema

NameRequiredDescriptionDefault
blockYes
chainYes
factsYes
meterYes
schemaYes
addressYesEIP-55
canMintYesfalse only without contract code; null on contracts (static bytecode and getter reads alone do not prove or rule out a mint path)
chainIdYes
canPauseYestrue when paused() returns true; false only without contract code; null otherwise
codeKindYes
isPausedYes
blockTextNo
codeBytesNo
alsoCheckedNogetters read on this contract that it does not expose
controllersYes
delegatesToNoEIP-7702 delegation target (codeKind 7702 only)
upgradeableYestrue: a standard proxy slot (EIP-1967 implementation / beacon, EIP-1822, ZeppelinOS) or comptrollerImplementation() holds an address; false only without contract code (none / 7702); null otherwise (custom upgrade logic not ruled out, or a slot could not be read)
castCommandsYes
canSupplyGrowYes
behindTimelockYesfalse when a path from this address reaches a terminal controller's non-cancel power without passing a timelock; true when every such path, every unresolved end and every unenumerated role is behind a timelock; null otherwise (nothing resolved, or an unresolved end outside any timelock). A renounced holder's power (0x...dEaD, the zero address) is left out: it can no longer be used
controllerTypeYes
controllerChainYesthe controller read-through at the answer's block: every link followed from this address (its controller getters, upgrade admin and beacon slots and enumerable role holders, then up to 3 more read stages through timelocks and plain contracts: owner(), admin(), governance(), authority(), getGovernance(), vetoAdmin(), queueAdmins() and the enumerable PROPOSER_ROLE, CANCELLER_ROLE, DEFAULT_ADMIN_ROLE and TIMELOCK_ADMIN_ROLE holders), and every node reached once with its figures; links with basis indexed_record come from /api/v1/controller-chains.json at their own block
enumerationStatusYescomplete: every path ends at a terminal controller; requires_event_log_replay: a role's holders could not be enumerated by view calls and no indexed record lists them; could_not_read; step_limit_reached (controllerChain.stoppedBy); contract_endpoint: a path ends at a contract exposing none of the followed getters; no_controller_observed; not_applicable (no contract code)
pending_operationsYesqueued timelock operations that target this contract or are queued on a timelock that governs it, each citing the timelock contract and a block: the compiled queue snapshot (status as of snapshot_block) and the radar feed; this call adds no chain read for them
terminalControllersYeswhere the followed paths end: a Safe, legacy or Avocado multisig (threshold, ownerCount), an on-chain vote governor, a single key (eoa, eip7702_delegated) or a renounced holder, each with every power it holds (via, on, the path from this address, cancelOnly, behindTimelock, the shortest timelock delay on the path)
upgradeDelaySecondsYesthe delay of a verified timelock that is the standard upgrade admin (or that admin's owner()); null otherwise
standardProxyDetectedYesfalse only when all 6 standard proxy / admin / beacon slots and comptrollerImplementation() read cleanly as empty
indexedControllerChainNopresent when the address belongs to an indexed record of /api/v1/controller-chains.json: that record's links and terminal controllers, each at its own block
mintIndicatorsObservedYes
pauseIndicatorsObservedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, yet the description adds substantial context beyond them: results are block-pinned and reproducible, cross-checked across two independent RPC providers, include raw Foundry cast commands, and never synthesize a score. It also discloses the operational envelope – free, 100 calls per caller per UTC day, no API key or wallet – which an agent cannot learn from the annotations.

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 verb and resource, then structured into explicit when/when-not blocks, with the operational limits last – a sensible ordering with no filler sentences. The middle enumeration of proxied/authority facts is dense and slightly long, but each item is a genuine capability rather than padding.

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?

For a two-parameter read tool with full schema coverage, an output schema, and complete annotations, nothing an agent needs is missing: target scope, determinism guarantees (block-pinned, dual-RPC cross-check), rate limits, authentication requirements, and routing to siblings are all present. Return-value detail is correctly left to the output schema.

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% with an enum on chain and a hex pattern on address, so the baseline is 3. The description adds a modest amount of meaning beyond the schema: the address may be a contract OR a token (broadening what an agent might assume), and both parameters are framed as the {chain, address} pair that pins the block context. It stops short of describing anything the schema doesn't already constrain.

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 opens with a specific verb+resource ('Read raw block-pinned EVM control-plane facts') and enumerates exactly what is returned: EIP-1967/beacon/UUPS proxies, owner/admin, Safe signers and threshold, timelock delay, mint/pause selectors. It also scopes the target ('any contract or token on Ethereum or Base') and explicitly states what the tool does NOT do ('Never guesses or assigns a risk score'), which separates it cleanly from the verdict sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It contains explicit 'When to call' (ungraded, block-pinned authority facts for a specific {chain, address}) and 'When NOT to call' sections that name the correct alternatives with their distinguishing conditions: pacta_get_verdict for a 0-100 riskScore and A-F grade, pacta_trace_dependencies for upstream collateral/oracle dependencies. No inference about routing is required.

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.