Skip to main content
Glama

Timelock Operation State

pacta_scan_timelock_op
Read-onlyIdempotent

Check OpenZeppelin TimelockController operation state at a pinned block to verify governance execution readiness before interacting with DeFi contracts.

Instructions

Gateway tool (requires PACTA_X402_URL; x402 $0.25 Base USDC when metered): pinned-block OZ TimelockController operation state. 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": {
      "timelock": "<timelock>",
      "opId": "<opId>"
    },
    "name": "pacta_scan_timelock_op"
  }
}

Input Schema

NameRequiredDescriptionDefault
opIdYes
chainNo
nonceNo0x-prefixed 32-byte hex nonce.
payerNo0x payer address for 402 EIP-712 typedData.
timelockYes
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: -[
      -  "timelock",
      -  "opId",
      -  "caller_agent",
      -  "requester_role",
      -  "caller_purpose"
      -]New value: +[
      +  "timelock",
      +  "opId"
      +]
  2. Addedv0.1.3

TDQS

B3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-structured context: a required gateway env var (PACTA_X402_URL), a $0.25 Base USDC metered price, and the fact that the live gateway currently answers $0 so no payment is needed during launch — exactly the operational detail an agent needs before invoking. It loses a point for not describing what the returned state actually contains or what happens on an unknown opId.

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?

Only two sentences, so it is compact, but the balance is poor: roughly two-thirds of the text hedges payment mechanics ('free during the launch ... applies only if metering is switched on') while the functional purpose is compressed into a single eight-word clause. Front-loading the gateway requirement before saying what the tool does is backwards for tool selection.

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

Completeness2/5

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

This is a 12-parameter tool with a payment handshake, yet there is no output schema, and the description does not say what the returned operation state looks like or how the pinned block is chosen. Coverage is limited to environment and pricing; the read semantics, error behaviour, and chain default are all undeclared.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description mentions no parameter at all — not opId, not timelock, not chain, and not the mutually exclusive xPaymentHeader / paymentSignatureHeader pair. With 12 parameters and only 75% schema description coverage, the schema does most of the work, but the description contributes nothing to clarify required inputs or defaults.

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 core clause 'pinned-block OZ TimelockController operation state' names a specific resource (an OpenZeppelin TimelockController operation) and a specific read scope (state at a pinned block). It is not a tautology of the title, and it is concrete enough to distinguish this from generic proposal tools. It stops short of a 5 because there is no verb ('returns/fetches') and no differentiation from siblings like pacta_live_timelocks or pacta_scan_control_plane, which an agent must infer.

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 statement of when to use this tool versus alternatives, no prerequisites beyond the environment variable, and no exclusions. The only workflow hints ('pre_trade_safety', 'collateral_due_diligence') live in the caller_purpose parameter enum, not in the description, so the reader gets no routing guidance.

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