Skip to main content
Glama

check_contract_code_changed

Read-onlyIdempotent

FREE Upgrade Watch. Has this deployed contract's code changed since you checked it? Returns the current code fingerprint (proxy-aware: follows the proxy to its current implementation) for a chain (base, ethereum, bnb, arbitrum, optimism, polygon; default base) and address. Pass the code_fingerprint from an earlier Kestrova check as fingerprint to get changed: true when the code or the implementation behind the proxy changed (an upgrade). Call it before each approve, call or payment to a contract you checked earlier; when it changed, run scan_contract_address_preview again. RPC reads only, no scan, no key, no wallet. Code only: storage changes (owner, pause, fees) are not detected. Not an audit.

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": "check_contract_code_changed"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase
addressYes
fingerprintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish readOnlyHint, idempotentHint and openWorldHint, but the description adds substantial context beyond them: RPC reads only, no scan, no key, no wallet, proxy-following semantics, and the explicit limitation that only code (not storage state) is compared. It also frames itself as 'Not an audit', preventing over-trust.

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?

Front-loaded with the core question, then scope, then usage, then caveats — a logical order with no filler sentences. The chain enumeration is necessary given the schema lacks enums, though the parenthetical list makes the second sentence dense and slows parsing slightly.

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?

For a three-parameter, no-output-schema read tool, nothing material is missing: inputs are explained, the return contract (fingerprint, changed) is described, and the proxy/upgrade caveat plus the storage-state blind spot are both disclosed. An agent could invoke it correctly on the first attempt.

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

Parameters5/5

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

With 0% schema description coverage, the description carries the full burden and delivers: the chain parameter's accepted values and default (base), the address parameter's role, and the fingerprint parameter's exact provenance ('code_fingerprint from an earlier Kestrova check') and effect (yields changed). It even documents the returned field changed in the absence of an output schema.

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?

Specific verb and resource: reports whether a deployed contract's code changed since a prior check, returning a proxy-aware code fingerprint. The opening question plus the 'FREE Upgrade Watch' framing makes it immediately distinguishable from scan_contract_address_preview, which it explicitly routes back to on change.

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

Usage Guidelines5/5

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

Explicit when-to-use: 'Call it before each approve, call or payment to a contract you checked earlier', with a concrete follow-up action ('run scan_contract_address_preview again') when changed is true. It also states the boundary condition — storage changes like owner, pause, or fees are not detected — so the agent knows when this tool is insufficient.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources