Skip to main content
Glama

Scroll is-contract check

scroll_is_contract
Read-only

Check whether a 0x address on Scroll is a smart contract or a plain wallet: bytecode size, whether it is an EIP-1167 minimal proxy and which implementation it points to, and whether it is a wallet that delegates to contract code (EIP-7702; delegatedTo names the code, isContract stays false). Use before sending funds or approving a spender; for a fuller risk verdict use check_counterparty. A malformed address is rejected with 400, uncharged. Example: address=0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
addressYes0x address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations: pricing ($0.01/call, first 10 free, failed calls free), the 400-on-malformed-address behavior with no charge, and the fact that each call is charged so repeats aren't free (which explains the idempotentHint=false). It also discloses subtle output semantics such as isContract staying false for EIP-7702 delegated wallets while delegatedTo names the code.

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-loads the core purpose and keeps every sentence substantive, including pricing and failure behavior. It is dense and somewhat run-on with parenthetical asides, which costs a little readability but no sentence is 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?

No output schema exists, so the description carries return-value burden and does it: bytecode size, proxy status and implementation, delegatedTo, isContract semantics. Combined with cost and error behavior, an agent has everything needed to call it correctly and interpret the result.

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

Parameters4/5

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

Schema coverage is 100% for the single address parameter, so the baseline is 3; the description adds a concrete example address and the validation consequence (malformed address rejected with 400, uncharged), which is meaning beyond the bare '0x address' schema text. It stops short of describing accepted address forms (checksummed vs lowercase).

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?

States a specific verb and resource: check whether a 0x address on Scroll is a smart contract or a plain wallet, and enumerates what the answer covers (bytecode size, EIP-1167 minimal proxy + implementation, EIP-7702 delegation). This distinguishes it cleanly from siblings like scroll_proxy (proxy detail) and check_counterparty (fuller risk verdict).

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?

Gives an explicit when-to-use ('before sending funds or approving a spender') and names the alternative for a different need ('for a fuller risk verdict use check_counterparty'). The boundary between this tool and that one is unambiguous.

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