Skip to main content
Glama

Eth nft metadata

eth_nft_metadata
Read-onlyIdempotent

Metadata for an ERC-721 or ERC-1155 token on Ethereum: 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": "eth_nft_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenIdYesToken id as a decimal string
contractYesNFT collection contract on Ethereum

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "eth"
ownerNostring, e.g. "0x46EFbAedc92067E6d60E84ED6395099723252496"
tokenIdNostring, e.g. "1"
contractNostring, e.g. "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"
imageUrlNostring, e.g. "https://nft2-cdn.alchemy.com/eth-mainnet/65558a4d0c5b0c56fb
metadataNoobject
standardNostring, e.g. "ERC-721"
tokenUriNostring, e.g. "ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/1"
collectionNostring, e.g. "BoredApeYachtClub"
fetchedFromNostring, e.g. "Alchemy NFT API cache (token URI host unavailable)"

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. \"eth\""
      +    },
      +    "collection": {
      +      "description": "string, e.g. \"BoredApeYachtClub\""
      +    },
      +    "contract": {
      +      "description": "string, e.g. \"0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D\""
      +    },
      +    "fetchedFrom": {
      +      "description": "string, e.g. \"Alchemy NFT API cache (token URI host unavailable)\""
      +    },
      +    "imageUrl": {
      +      "description": "string, e.g. \"https://nft2-cdn.alchemy.com/eth-mainnet/65558a4d0c5b0c56fb"
      +    },
      +    "metadata": {
      +      "description": "object"
      +    },
      +    "owner": {
      +      "description": "string, e.g. \"0x46EFbAedc92067E6d60E84ED6395099723252496\""
      +    },
      +    "standard": {
      +      "description": "string, e.g. \"ERC-721\""
      +    },
      +    "tokenId": {
      +      "description": "string, e.g. \"1\""
      +    },
      +    "tokenUri": {
      +      "description": "string, e.g. \"ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/1\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/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 bar is lower, yet the description still adds real context: the metadata is fetched and decoded from IPFS, Arweave, HTTPS or inline data URIs, the image URL is browser-loadable, and the call costs $0.008 USDC on Base via x402 — a payment requirement an agent must know before invoking. Gaps remain around failure modes (unset token URI, unreachable IPFS, nonexistent token).

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 front-loaded sentence that leads with what the tool returns, then sources, then cost — no filler. It is dense but each clause (asset standards, sources, image URL, price) contributes information an agent needs.

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?

An output schema exists, so return-value shape needn't be spelled out, and annotations cover the safety profile; the description's main added obligations — decoding sources and the x402 fee — are met. What's missing is error/edge behavior for tokens without metadata or with dead URIs, which matters for an open-world fetch 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% and both parameters are documented with patterns, so the schema carries the load and baseline 3 applies. The description adds a small amount of semantic value by clarifying that owner is only returned for ERC-721 (not ERC-1155) and that the contract must be on Ethereum, but it gives no extra detail on tokenId formatting or decimal-string expectations.

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?

States a specific verb and resource — metadata for an ERC-721 or ERC-1155 token on Ethereum — and enumerates the returned payload (collection name, owner, token URI, decoded metadata JSON, image URL). The chain qualifier ('on Ethereum') is what separates it from the arbitrum/base/optimism/polygon nft_metadata siblings, so an agent can route correctly, though no sibling is named explicitly.

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 strongly by the phrasing: fetch metadata for a given contract and tokenId. There is no explicit when-to-use/when-not guidance, no statement of prerequisites (e.g. token must exist and implement ERC-721/1155), and no routing away from the other chain variants or toward eth_contract_info for collection-level data.

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