Skip to main content
Glama

Wallet & Safe DeFi Control-Plane Exposure Scan

pacta_scan_wallet_exposure
Read-onlyIdempotent

Scan a wallet or Gnosis Safe on Ethereum and Base to assess DeFi exposure, risk score, custody, positions, and shortest exit window before acting.

Instructions

Wallet risk / DeFi exposure of a wallet or Gnosis Safe on Ethereum and Base: read-only Multicall3 Safe custody detection, ERC-20 / ERC-4626 / MetaMorpho balanceOf + symbol/decimals verification across 313 indexed protocols, 0-100 risk score, shortest exit window, position roster, and #1 adverse gap preview. Free: 100 calls per caller per UTC day (no key, no payment), then $0.01 Base USDC per call 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": {
      "address": "<address>"
    },
    "name": "pacta_scan_wallet_exposure"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNo
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds material context beyond that: the Multicall3 Safe custody detection mechanism, 313 indexed protocols, and a concrete rate-limit/payment profile (100 free calls per caller per UTC day, then $0.01 Base USDC via x402) that an agent must know before retrying or batching. It does not discuss failure modes or behavior for unsupported inputs.

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?

Purpose and scope are front-loaded, and the pricing tail is useful rather than padding. The single sentence is heavily overloaded with specification fragments and undefined jargon such as '#1 adverse gap preview' and 'control-plane', which cost readability without adding callable information.

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 does the work of describing return content (risk score, exit window, position roster, adverse gap preview), which is what an agent needs to decide to call it. For a two-parameter tool with full annotation coverage, the remaining gap is minor: the 'all' chain option and error behavior are unstated.

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 0%, so the description must carry parameter meaning. It clarifies that 'address' may be a wallet or Gnosis Safe and that the supported chains are Ethereum and Base, which is real added meaning. However, it never explains the 'all' enum value, address formatting, or whether multi-chain is aggregated in one response.

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 resource and scope: risk/DeFi exposure of a wallet or Gnosis Safe on Ethereum and Base, listing concrete outputs (0-100 risk score, shortest exit window, position roster). An agent can tell this is an exposure/risk read tool rather than a proposal, timelock, or verdict tool. It stops short of explicitly contrasting with the closest sibling, pacta_scan_control_plane.

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 by the phrase 'Wallet risk / DeFi exposure' — an agent can infer this is the tool for assessing a wallet's on-chain exposure. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g., pacta_scan_control_plane, pacta_verdict) to route between.

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