Skip to main content
Glama

Polygon nft metadata

polygon_nft_metadata
Read-onlyIdempotent

Metadata for an ERC-721 or ERC-1155 token on Polygon PoS: collection name, current owner (ERC-721), token URI, and the metadata JSON fetched and decoded from IPFS, Arweave, HTTPS or an inline data URI, with a browser-loadable image URL. Costs $0.008 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": {
      "contract": "<contract>",
      "tokenId": "<tokenId>"
    },
    "name": "polygon_nft_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenIdYesToken id as a decimal string
contractYesNFT collection contract on Polygon PoS

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "polygon"
ownerNostring, e.g. "0x7241DDDec3A6aF367882eAF9651b87E1C7549Dff"
tokenIdNostring, e.g. "5"
contractNostring, e.g. "0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d"
imageUrlNostring, e.g. "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53M
metadataNoobject
standardNostring, e.g. "ERC-721"
tokenUriNostring, e.g. "data:application/json;base64,eyJuYW1lIjo…"
collectionNostring, e.g. "Lens Protocol Profiles"
fetchedFromNostring, e.g. "inline data URI"

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": {
      +    "chain": {
      +      "description": "string, e.g. \"polygon\""
      +    },
      +    "collection": {
      +      "description": "string, e.g. \"Lens Protocol Profiles\""
      +    },
      +    "contract": {
      +      "description": "string, e.g. \"0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d\""
      +    },
      +    "fetchedFrom": {
      +      "description": "string, e.g. \"inline data URI\""
      +    },
      +    "imageUrl": {
      +      "description": "string, e.g. \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53M"
      +    },
      +    "metadata": {
      +      "description": "object"
      +    },
      +    "owner": {
      +      "description": "string, e.g. \"0x7241DDDec3A6aF367882eAF9651b87E1C7549Dff\""
      +    },
      +    "standard": {
      +      "description": "string, e.g. \"ERC-721\""
      +    },
      +    "tokenId": {
      +      "description": "string, e.g. \"5\""
      +    },
      +    "tokenUri": {
      +      "description": "string, e.g. \"data:application/json;base64,eyJuYW1lIjo…\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-obvious context beyond that: the metadata is fetched and decoded from IPFS, Arweave, HTTPS or an inline data URI, the owner field applies only to ERC-721, and each call costs $0.008 USDC on Base via x402 — a paid-call detail an agent must know before invoking. It stops short of describing failure behavior when a metadata URI is unreachable.

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?

A single dense sentence, front-loaded with purpose and returned fields, with the cost note trailing where it belongs. Every clause is substantive, though the packed appositive listing of metadata sources and return fields is slightly heavy for one sentence.

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?

An output schema exists, so return-value detail is optional, yet the description still previews the key fields an agent would select on. Combined with the payment disclosure and metadata-source coverage, nothing an agent needs to call this correctly is missing for a two-parameter read tool.

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%, with both parameters documented (contract address pattern and decimal-string tokenId), so the schema carries the load and the baseline is 3. The description adds only mild meaning: that the contract must be on Polygon PoS and that both ERC-721 and ERC-1155 are accepted, with owner relevant only for the former.

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 resource ('Metadata for an ERC-721 or ERC-1155 token on Polygon PoS') with a concrete verb-implied outcome and enumerates the returned fields (collection name, owner, token URI, decoded metadata JSON, image URL). The chain and token-standard scoping makes it distinguishable from the eth_/base_/arbitrum_ nft_metadata siblings 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 Guidelines3/5

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

Usage is implied by the scope: an agent can infer this is the tool for NFT metadata specifically on Polygon PoS. However, there is no explicit when-to-use/when-not guidance relative to neighbors like polygon_token_snapshot or polygon_contract_info, nor any statement about what happens for a non-existent token or an unsupported standard.

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