Skip to main content
Glama

Optimism contract info

optimism_contract_info
Read-onlyIdempotent

Identify what lives at a OP Mainnet address: wallet (EOA, including EIP-7702 delegation) or contract, which token standard it implements (ERC-20, ERC-721, ERC-1155), name and symbol, upgradeable-proxy implementation and admin, smart-wallet proxies, bytecode size, nonce and ETH balance. Costs $0.005 USDC on Base via x402.

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

Input Schema

NameRequiredDescriptionDefault
addressYesAny address on OP Mainnet

Output Schema

NameRequiredDescriptionDefault
kindNostring, e.g. "ERC-20 token"
nameNostring, e.g. "USD Coin"
chainNostring, e.g. "optimism"
proxyNoobject
symbolNostring, e.g. "USDC"
addressNostring, e.g. "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
decimalsNonumber, e.g. 6
standardsNoobject
isContractNoboolean, e.g. true
totalSupplyNostring, e.g. "141636562.037185"
bytecodeBytesNonumber, e.g. 1852
nativeBalanceNostring, e.g. "0"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "address": {
      +      "description": "string, e.g. \"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85\""
      +    },
      +    "bytecodeBytes": {
      +      "description": "number, e.g. 1852"
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"optimism\""
      +    },
      +    "decimals": {
      +      "description": "number, e.g. 6"
      +    },
      +    "isContract": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "kind": {
      +      "description": "string, e.g. \"ERC-20 token\""
      +    },
      +    "name": {
      +      "description": "string, e.g. \"USD Coin\""
      +    },
      +    "nativeBalance": {
      +      "description": "string, e.g. \"0\""
      +    },
      +    "proxy": {
      +      "description": "object"
      +    },
      +    "standards": {
      +      "description": "object"
      +    },
      +    "symbol": {
      +      "description": "string, e.g. \"USDC\""
      +    },
      +    "totalSupply": {
      +      "description": "string, e.g. \"141636562.037185\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive behavior. The description adds important behavior beyond annotations: the tool costs $0.005 USDC on Base via x402, which is a material prerequisite for calling it.

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?

The description is front-loaded with the core purpose and then lists relevant capabilities, with the payment cost placed at the end. It is dense but efficient, with no obvious filler.

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?

The output schema exists, so the description need not explain return values, but it still helpfully enumerates the kinds of information returned. It covers chain scope and payment cost; the main missing details are around payment mechanics or failure behavior, which are secondary.

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 100% for the single address parameter, and the schema already documents the expected 0x address format. The description restates that the address is on OP Mainnet but adds no further parameter semantics beyond the 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?

The description uses a specific verb and resource: identify what lives at an OP Mainnet address, then enumerates wallet/contract status, token standard, proxy details, bytecode size, nonce, and ETH balance. It clearly scopes to OP Mainnet, distinguishing it from sibling contract-info tools for Arbitrum, Base, Ethereum, and Polygon.

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?

The chain scope is explicit, making it clear this tool is for OP Mainnet addresses. However, it does not explicitly state when-not to use it or name a sibling alternative for other chains or wallet-profile use cases.

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