Skip to main content
Glama

Control-plane Scan

pacta_scan_control_plane
Read-onlyIdempotent

Scans an EVM address at a pinned block to assess counterparty control-plane risk before DeFi interactions, covering proxy/admin/timelock breakdowns and preflight verdicts.

Instructions

Gateway tool (requires PACTA_X402_URL; x402 $0.10 Base USDC when metered): pinned-block EVM control-plane scan. Free during the launch (the live gateway answers $0, no payment); x402 price applies only if metering is switched on.

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_scan_control_plane"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYes
nonceNo0x-prefixed 32-byte hex nonce.
payerNo0x payer address for 402 EIP-712 typedData.
addressYes
x402VersionNoPreferred x402 version for the 402 challenge (default 1). Both are validated under the same pins.
caller_agentNoIdentifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Optional attribution (omitted = 'unspecified'). Lowercase slug only; never include personal names, emails, or secrets.
caller_purposeNoOptional: operational workflow context for this pre-execution check (closed enum).
requester_roleNoOptional: high-level role category of the requester or system running this check (closed enum; no personal data).
xPaymentHeaderNoBase64 x402 v1 X-PAYMENT header (network base).
validBeforeSecondsNoTTL for the 402 typedData; clamped to the validated challenge's maxTimeoutSeconds.
paymentSignatureHeaderNoBase64 x402 v2 PAYMENT-SIGNATURE header (network eip155:8453). Send this OR xPaymentHeader, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.4
    • changedInput schema / properties / caller_agent / description
      Previous value: -"Identifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Required on the free MCP tier. Lowercase slug only; never include personal names, emails, or secrets."New value: +"Identifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Optional attribution (omitted = 'unspecified'). Lowercase slug only; never include personal names, emails, or secrets."
    • changedInput schema / properties / caller_purpose / description
      Previous value: -"Operational workflow context for this pre-execution check (closed enum)."New value: +"Optional: operational workflow context for this pre-execution check (closed enum)."
    • changedInput schema / properties / requester_role / description
      Previous value: -"High-level role category of the requester or system running this check (closed enum; no personal data)."New value: +"Optional: high-level role category of the requester or system running this check (closed enum; no personal data)."
    • changedInput schema / required
      Previous value: -[
      -  "chain",
      -  "address",
      -  "caller_agent",
      -  "requester_role",
      -  "caller_purpose"
      -]New value: +[
      +  "chain",
      +  "address"
      +]
  2. Addedv0.1.3

TDQS

B3.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: a required gateway env var, a concrete price point ($0.10 Base USDC), and the fact that the live gateway currently returns $0 without payment, plus the deterministic pinned-block nature of the read. It stops short of explaining the 402 challenge/retry flow the payment parameters imply.

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 sentences, front-loaded with the gateway requirement and cost model, with no filler. There is mild redundancy between the '$0.10 ... when metered' parenthetical and the following sentence restating that it is free unless metering is on, which keeps it from a 5.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eleven-parameter tool with no output schema and a payment-negotiation flow, the description never states what a control-plane scan returns or how the 402 retry sequence works end to end. The cost model is well covered, but the result shape and the boundary between this scan and its siblings are left to inference.

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 82% and four parameters carry enums, so the schema does most of the work, and the description adds nothing about any of the eleven parameters. A baseline of 3 is appropriate when the schema already explains fields like payer, x402Version and the two mutually exclusive payment headers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb-plus-resource framing ('pinned-block EVM control-plane scan'), which is more specific than a restatement of the name, but 'control-plane scan' is opaque jargon: it does not say what state is inspected or what the caller learns. It also never distinguishes this tool from nearby siblings such as pacta_check_preflight or pacta_scan_proposal_diff, so an agent must guess which scan to run.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this scan versus the preflight or proposal-diff siblings, and no stated prerequisites beyond the PACTA_X402_URL environment variable. The only conditional logic in the description concerns payment (free vs metered), not usage.

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