Skip to main content
Glama

watch_contract

Monitors a specified contract for 30 days and sends a signed webhook event when its code, proxy, owner, or pause status changes.

Instructions

Watch one contract for 30 days and get told when it changes. About once an hour verify402 re-reads its code, its proxy implementation (and that code), who can upgrade it, owner() and paused(); on any change it POSTs one signed JSON event (type contract_changed, old and new value per field) to YOUR public https webhookUrl. Use it for a contract your agent depends on: a token, a vault, a router, a bridge. Detection after the fact, not prevention; role grants, timelock queues and multisig changes are not watched. Costs $0.50 per watch (30 days). The default per-payment cap is $0.25, so set MAX_PAYMENT_USD=0.50 to use it.

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": {
      "chainId": "<chainId>",
      "address": "<address>",
      "webhookUrl": "<webhookUrl>"
    },
    "name": "watch_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name echoed back in events
addressYesThe contract to watch (0x address)
chainIdYesREQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche.
webhookUrlYesYour public https URL; change events are POSTed here, signed with the key at /.well-known/verify402-signing-key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.6

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so thoroughly: hourly re-read cadence, exact fields verified, webhook delivery with a single signed JSON event (type contract_changed, old/new per field), and where the signing key lives. It also discloses the mutation-free nature of the operation and the concrete cost ($0.50 per 30-day watch) plus the MAX_PAYMENT_USD=0.50 prerequisite that would otherwise cause a failed call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the action and duration, then the mechanism, the use case, the limits, the price and the payment-cap fix. Every sentence adds a fact an agent needs; nothing is repeated or padding.

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

Completeness5/5

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

With no annotations or output schema, the description still fully prepares an agent: it explains success signaling (a signed webhook POST), the event payload shape, coverage gaps, and the payment-cap setting that otherwise blocks invocation. Nothing material for correct invocation is missing.

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 100%, so chainId, address, webhookUrl and label are already documented, and the description adds little per-parameter meaning. The one genuine addition is characterizing webhookUrl as 'YOUR public https' endpoint receiving signed events, and it mentions MAX_PAYMENT_USD, which is an environment prerequisite rather than a parameter.

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

Purpose5/5

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

Names a precise verb and resource with explicit scope: 'Watch one contract for 30 days and get told when it changes.' It then concretizes what 'changes' means (code, proxy implementation, upgrader, owner(), paused()), which distinguishes it from one-shot inspection siblings like check_token_safety or preflight_gate.

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

Usage Guidelines4/5

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

Gives a clear use case ('a contract your agent depends on: a token, a vault, a router, a bridge') and explicit exclusions ('detection after the fact, not prevention; role grants, timelock queues and multisig changes are not watched'). What it lacks is a named alternative for one-off checks versus continuous watching, so it stops short of full when/when-not/alternatives routing.

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