Pacta, by Fractal Neurons

v0.1.8
io.github.Fractal-Neurons/pacta Checked 1 day ago Published 4 days ago

Control, dependency and wallet-memory facts for agents on Ethereum and Base.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pacta_lookup_protocol Lookup Protocol or Token by Name

look up a DeFi protocol, token or contract by name, symbol, slug or 0x address (Aave, Ethena, USDe, Moonwell, kUSD): Pacta's verified record with canonical slug and page URL, checksummed primary contract and controller, classification with its evidence basis (Base-EAS-attested vs RPC-observed only), and ready-to-use preflightArgs {chain, address} for pacta_check_preflight. Start here when you have only a name, symbol or slug: it returns the chain and address for the next call. 324 protocols + 18 briefs, answered in memory; a 0x address Pacta does not index is answered inline with a who_control…

ParameterTypeDescription
chainstringOptional chain filter.
kindstringprotocol pages, briefs, or all (default).
limitintegerDefault 10 (20 when listing).
querystringProtocol or token name, symbol, slug or 0x address (e.g. 'Aave', 'Ethena', 'USDe', 'Moonwell', 'kUSD'). Empty or '*' lists what Pacta tracks.

who_controls Who Controls This Contract

Who can upgrade, pause or change this contract, and what is queued to change: admin, multisig signers and threshold, timelock delay, pending operations. Ethereum and Base, any address, pinned to a block.

ParameterTypeDescription
address *stringContract or token address: 0x followed by 40 hex characters.
chain *stringChain of the contract: ethereum or base.

pacta_check_preflight Pre-execution safety check

rug check, smart contract security, who controls this contract before an agent approves, deposits into or calls it: Use for a verdict and a 0-100 score before approving, depositing or calling, or for a past block. For facts without a score use pacta_who_controls_contract. One-call pre-execution safety check of a contract before an agent interacts with it: verdict (no controller found / timelock / zero-delay timelock / multisig / EOA admin / unclassified / undeployed) with the checks run, 0-100 risk score (null when not determined: no contract, or NO_CONTROLLER_FOUND), proxy + implementation, c…

ParameterTypeDescription
address *string0x-prefixed 20-byte address (EIP-55 checksum enforced when mixed-case)
blockstringBlock to pin: "latest" (default), a decimal block number or 0x-hex
chainstringEVM chain

pacta_scan_wallet_exposure Wallet & Safe DeFi control-plane exposure scan

wallet risk, DeFi exposure of a wallet or Safe multisig: Use when you hold a wallet or Safe address and want its positions checked. For one contract use pacta_who_controls_contract. Read-only Multicall3 wallet & Gnosis Safe DeFi control-plane exposure scan across Ethereum and Base: Safe threshold/owners detection, ERC-20 / ERC-4626 / MetaMorpho balanceOf + symbol/decimals verification across 926 contracts in 316 of Pacta's 324 indexed protocols, portfolio 0-100 risk score, shortest exit window, position roster, and the #1 highest-urgency flagged control-plane gap breakdown with Base EAS UID. F…

ParameterTypeDescription
address *stringWallet or Gnosis Safe 0x address to scan (read-only Multicall3; never logged in public telemetry)
chainstringChains to scan: all (default, Ethereum + Base in parallel), ethereum, or base

pacta_scan_control_plane Control-plane scan

who controls this contract, in full: upgradeable proxy, owner, admin, multisig, timelock: Use for the raw structure (proxy slots, Safe owners and threshold, timelock delay) or a past block. For the short answer use pacta_who_controls_contract. Live control-plane scan of an EVM contract: EIP-1967 implementation/admin/beacon, owner(), Safe threshold/owners/guard, timelock delay, code size and deterministic risk flags at the latest (or a given) block. Free (no key, no payment).

ParameterTypeDescription
address *string0x-prefixed 20-byte address (EIP-55 checksum enforced when mixed-case)
blockstringBlock to pin: "latest" (default), a decimal block number or 0x-hex
chainstringEVM chain

pacta_scan_timelock_op Timelock operation state

timelock queued operation, when it can execute: Use when you have a timelock address and an operation id or calldata; to see what is queued across indexed protocols now use pacta_get_live_timelocks. Live OpenZeppelin TimelockController operation state: isOperation/Pending/Ready/Done, getTimestamp (ETA), getMinDelay at the latest block. Free (no key, no payment).

ParameterTypeDescription
timelock *stringOpenZeppelin TimelockController address
chainstringEVM chain
datastringCalldata (default 0x)
opIdstringbytes32 operation id (hashOperation / CallScheduled id); or give target + value + data (+ predecessor + salt)
predecessorstringbytes32 predecessor (default 0x00..00)
saltstringbytes32 salt (default 0x00..00)
targetstringScheduled call target (to compute opId)
valuestringCall value in wei (default 0)

pacta_scan_proposal_diff Governance proposal pinned-vs-live diff

governance proposal check, what a DAO proposal changes: Re-runs the pinned contract reads of a Pacta-tracked governance proposal (Aave, Euler, Morpho, Sky) at the live block and returns pinned-vs-live diffs. Free (no key, no payment).

ParameterTypeDescription
forum *stringGovernance forum
topicId *stringForum topic id; the proposal must be listed in https://pacta.wtf/api/v1/proposals.json as <forum>-<topicId>

pacta_get_live_timelocks Live tracked timelock operations

pending timelock operations, upcoming DeFi upgrades: Use to see queued timelock operations across indexed protocols right now; for one operation id or calldata use pacta_scan_timelock_op. Live state of the public pending timelock operations tracked in https://pacta.wtf/api/v1/radar.json, each re-checked at the latest block (getTimestamp, isOperationPending, isOperationDone). Free (no key, no payment).

ParameterTypeDescription
protocolstringOptional case-insensitive protocol filter (radar.json item protocol)

pacta_verdict Contract control-plane verdict

token safety, rug check, contract risk score: Same scan as pacta_check_preflight at the latest block, plus a letter grade and a one-line summary; also takes a protocol slug (with an address only, start with pacta_who_controls_contract). Fast contract / token control-plane safety verdict: verdict, riskScore 0-100 and grade A-F (both null when not determined, e.g. NO_CONTROLLER_FOUND), a one-line verdict, upgrade / owner / pause / blacklist / mint capability flags, the controller (EOA, Safe threshold, timelock delay), the indexed Pacta record when there is one, and a shareable scan URL. One pinn…

ParameterTypeDescription
addressstringChecksummed or lowercase 0x + 40-hex contract address on ethereum or base when checking by chain + address; omit when slug is given (use either slug or chain + address, not both: HTTP and free-launch…
chainstringTarget chain ("ethereum" or "base") when checking by chain + address; omit when slug is given (use either slug or chain + address, not both: HTTP and free-launch MCP reject conflicting inputs as bad_r…
slugstringOptional lowercase-hyphen protocol slug (https://pacta.wtf/api/v1/lookup.json); or pass chain + address (not both; omitting all checks ethereum 0xA35b1B31Ce002FBF2058D22F30f95D405200A15b on free-launc…

pacta_dossier Protocol control-plane dossier

protocol due diligence, who controls this protocol, Safe multisig signers: Use for a whole protocol: every controller Safe's signers, and signers shared with other protocols. For one contract or an address only, use pacta_who_controls_contract. Machine-readable protocol control-plane dossier: live EIP-1967 / owner / Safe reads, every controller Safe's signers and threshold, Safe signers shared with other indexed protocols (read live at the same block), and the Base EAS attestation proof. With no arguments it checks the built-in default (aave-v3-gho). Free: 100 calls per caller per UTC day (no…

ParameterTypeDescription
addressstringChecksummed or lowercase 0x + 40-hex contract address on ethereum or base when looking up by chain + address; omit when slug is given (use either slug or chain + address, not both: HTTP and free-launc…
chainstringTarget chain ("ethereum" or "base") when looking up by chain + address; omit when slug is given (use either slug or chain + address, not both: HTTP and free-launch MCP reject conflicting inputs as bad…
slugstringOptional lowercase-hyphen protocol slug (https://pacta.wtf/api/v1/lookup.json); or pass chain + address of an indexed contract (not both; omitting all returns aave-v3-gho on free-launch MCP or paid GE…

trace_dependencies Trace Dependencies

What this vault, market or token depends on: its collateral assets, who can mint them, where its price comes from and who verifies its bridge. Each link cites a contract and a block.

ParameterTypeDescription
address *string
chain *string
depthintegerhow many levels to follow (default 2)

remember Remember a Position

Save a position, an entry block or a rule under your wallet, tied to the contracts it depends on. Only your wallet can read it back. Up to 200 items per wallet, notes up to 500 characters; forget frees room.

ParameterTypeDescription
chain *string
contract_address *string
depends_onarraycontracts this position depends on
item_idstringyour name for this item; saving the same item_id again replaces it (default pos:<chain>:<contract>)
keystringsame as item_id
notestringup to 500 characters; no contact details, keys or secrets
saved_at_blockintegerthe entry block; later what_changed_since calls start here
wallet_authobject
wallet_session_tokenstringthe wallet_session_token from an earlier answer (valid 1 hour); use instead of wallet_auth

what_changed_since What Changed Since

Since a block or your last check: every control, minter, price source or bridge change under your saved positions or a list of contracts, including changes that are queued and have not run yet.

ParameterTypeDescription
chainstringrequired with contracts
contractsarraycheck these instead of your saved positions
since_blockintegerdefault: your last check, else each item's saved_at_block
wallet_authobject
wallet_session_tokenstringthe wallet_session_token from an earlier answer (valid 1 hour); use instead of wallet_auth

forget Forget Saved Items

Erase one saved item, or everything saved under your wallet. After the erase nothing you saved can be recalled. What remains in backups and records is in our privacy notice.

ParameterTypeDescription
chainstring
contract_addressstring
item_idstringone saved item_id, or "all" to erase everything saved under your wallet
wallet_authobject
wallet_session_tokenstringthe wallet_session_token from an earlier answer (valid 1 hour); use instead of wallet_auth

pacta_submit_request Submit Pacta Coverage or Feature Request

request coverage or a feature (opt-in): queue a coverage or feature request with Pacta when a target is not indexed, a chain or check is unsupported, or data looks wrong (coverage_gap_hint). Ask the user first. An identical request_type + target_subject upvotes the existing request (same request_id). Returns request_id, status, demand_votes and an optional fast_track_url. Never opens a GitHub issue. Pass contact_handle ONLY when the user explicitly asks for follow-up or an invoice. For a general tool or data wish not tied to one target, use request_feature. Free in every pricing mode, 5 per ho…

ParameterTypeDescription
request_type *stringWhat is missing: a protocol, a chain, a check surface, a doc/data discrepancy, or an MCP/API feature.
requested_capability *stringOne sentence: the specific data, check or feature needed. No secrets, keys or personal data.
target_subject *stringProtocol / token slug, chain name, or chain:0xAddress the request is about (e.g. 'pendle-v2', 'arbitrum', 'base:0x...').
urgency_track *stringcommunity_queue_free (default, free; also takes a re-check after a fix), active_due_diligence, issuer_urgent_review (custom control-plane dossier, scoped by arrangement), api_high_volume_sla.
contact_handlestringOptional work email, Telegram @handle, or GitHub handle ONLY if the human user explicitly asks for follow-up or an invoice. NEVER guess or populate without explicit user consent; never pass keys or se…
forum_proposal_urlstringOptional https:// link to the governance forum proposal this request concerns.

request_feature Request a Pacta Feature or Tool

Tell Pacta what tool or data your agent needs; we read every request daily.

ParameterTypeDescription
text *stringWhat tool, chain, check, or data your agent needs (max 1000 characters).
use_casestringOptional: how your agent would use it (max 500 characters).