Skip to main content
Glama

Base contract info

base_contract_info
Read-onlyIdempotent

Identify what lives at a Base 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": "base_contract_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesAny address on Base

Output Schema

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

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. \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\""
      +    },
      +    "bytecodeBytes": {
      +      "description": "number, e.g. 1852"
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"base\""
      +    },
      +    "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.009800646158085843\""
      +    },
      +    "proxy": {
      +      "description": "object"
      +    },
      +    "standards": {
      +      "description": "object"
      +    },
      +    "symbol": {
      +      "description": "string, e.g. \"USDC\""
      +    },
      +    "totalSupply": {
      +      "description": "string, e.g. \"4291989037.45169\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/true, idempotent/true, destructive/false and openWorld/true, so the safety profile is covered. The description contributes context the annotations do not: the $0.005 USDC cost on Base via x402, a paid-call detail the agent must know before invoking, plus the exact informational payload it returns.

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 classification purpose, then the enumerated outputs, then cost. Dense but every clause carries distinct information; the long enumeration list is efficient rather than padded, though a stricter split into 'returns' vs 'cost' lines would read slightly cleaner.

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 an output schema present, return-value explanation is optional, and annotations cover safety. For a single-parameter read tool the description supplies everything needed: chain scoping, the full set of fields probed, and the payment requirement. Nothing an agent needs to call it correctly 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?

Only one parameter, and schema coverage is 100% with a pattern constraint and the description 'Any address on Base'. The description's phrase 'at a Base address' merely echoes the chain scoping already in the schema, so it adds no new syntax or format meaning; baseline 3 applies.

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 ('Identify') and resource ('what lives at a Base address') and then enumerates the concrete determinations: EOA vs contract, EIP-7702 delegation, token standard, name/symbol, proxy implementation and admin, bytecode size, nonce, ETH balance. An agent can distinguish this from siblings like base_wallet_balances or base_nft_metadata without opening any schema.

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 scope is clear: any address on Base, used to classify an address before deciding on a more specialized tool. It does not explicitly name alternatives (e.g., eth_contract_info for other chains, base_wallet_profile for deeper wallet analysis) or state when not to use it, so it falls short of the top band.

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