Skip to main content
Glama

Governance Proposal Pinned-vs-Live Diff

pacta_scan_proposal_diff
Read-onlyIdempotent

Re-run a tracked DeFi governance proposal's pinned control-plane reads live and return pinned-vs-live diffs, revealing changes since the proposal snapshot before execution.

Instructions

Gateway tool (requires PACTA_X402_URL; x402 $0.15 Base USDC when metered): re-run a tracked governance proposal's pinned control-plane reads live and return pinned-vs-live diffs. The proposal must be listed in https://pacta.wtf/api/v1/proposals.json as -. 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": {
      "forum": "<forum>",
      "topicId": "<topicId>"
    },
    "name": "pacta_scan_proposal_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
forumYes
nonceNo0x-prefixed 32-byte hex nonce.
payerNo0x payer address for 402 EIP-712 typedData.
topicIdYesForum topic id (positive integer, at most 10 digits), as in pacta_list_proposals topic_id.
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: -[
      -  "forum",
      -  "topicId",
      -  "caller_agent",
      -  "requester_role",
      -  "caller_purpose"
      -]New value: +[
      +  "forum",
      +  "topicId"
      +]
  2. Addedv0.1.3

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description adds gateway and payment context: PACTA_X402_URL is required, the cost is $0.15 Base USDC when metered, and the call is free during launch. The gaps are around the returned diff shape, which no output schema documents.

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?

It opens with the operation, then states the eligibility rule, then the payment condition, so the important facts come first. It is dense but not padded; the payment detail takes up more room than its importance warrants.

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?

For an 11-parameter tool with no output schema and strong annotations, the description covers the cost and auth model and the eligibility gate. It would be stronger if it said whether the free mode makes the payment headers optional and what the diff response contains.

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 coverage is 91%, so the description's role is small. It does clarify the <forum>-<topicId> key format that maps to the forum and topicId parameters, but it says nothing about the payment headers, nonce/payer, or version parameters beyond what the schema states.

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 uses a specific verb and resource: 're-run a tracked governance proposal's pinned control-plane reads live and return pinned-vs-live diffs.' This is distinguishable from siblings like pacta_scan_control_plane or pacta_list_proposals because it requires an already-tracked proposal and produces a diff. It does not explicitly name a sibling, which keeps it from a 5.

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?

It states a real precondition: the proposal must already be listed in the proposals.json feed as <forum>-<topicId>. That implies when the tool applies (drift checks on tracked proposals), but it never says when to prefer pacta_scan_control_plane or pacta_check_preflight instead.

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