Skip to main content
Glama

Polygon contract info

polygon_contract_info
Read-onlyIdempotent

Identify what lives at a Polygon PoS 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 POL 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": "polygon_contract_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesAny address on Polygon PoS

Output Schema

NameRequiredDescriptionDefault
kindNostring, e.g. "ERC-20 token"
nameNostring, e.g. "USD Coin"
chainNostring, e.g. "polygon"
proxyNoobject
symbolNostring, e.g. "USDC"
addressNostring, e.g. "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
decimalsNonumber, e.g. 6
standardsNoobject
isContractNoboolean, e.g. true
totalSupplyNostring, e.g. "586295089.86576"
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. \"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359\""
      +    },
      +    "bytecodeBytes": {
      +      "description": "number, e.g. 1852"
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"polygon\""
      +    },
      +    "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. \"586295089.86576\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is carried by structured data. The description adds genuinely new context: a concrete price of $0.005 USDC on Base settled via x402, which an agent must know before calling. It does not discuss failure behavior for addresses with no code or rate limits, keeping it short of a 5.

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?

Two sentences, front-loaded with the core question and followed by the cost disclosure. The output enumeration is long but each item is a distinct capability an agent may need to decide whether this tool answers its question. No filler wording, though the field list borders on spec-dumping that the output schema already covers.

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?

With an output schema present, the description needn't explain return values, yet it still tells an agent roughly what comes back, and it covers the non-obvious payment requirement. Remaining gaps are edge cases (address with no code, non-Polygon addresses) and sibling routing, which are minor for a single-parameter read-only lookup.

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% and the single required parameter is fully documented with a 0x-pattern and the note "Any address on Polygon PoS". The description reinforces that scope implicitly ("what lives at a Polygon PoS address", EOA or contract), but adds no format or edge-case detail beyond the schema, so the high-coverage baseline of 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ("Identify what lives at a Polygon PoS address") and enumerates the concrete payload: EOA vs contract, token standard, name/symbol, proxy implementation and admin, bytecode size, nonce, POL balance. That is far more than a restatement of the name. What it lacks is explicit routing against close siblings such as polygon_wallet_profile or polygon_token_snapshot, so an agent must infer which tool to pick when it only wants balance or token metadata.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use statement, no prerequisites, and no named alternative. The classification use case is implied by the phrasing, but nothing tells an agent whether to reach for this versus polygon_wallet_profile or polygon_token_snapshot when those would be cheaper or more focused.

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