Skip to main content
Glama

Optimism nft metadata

optimism_nft_metadata
Read-onlyIdempotent

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

Input Schema

NameRequiredDescriptionDefault
tokenIdYesToken id as a decimal string
contractYesNFT collection contract on OP Mainnet

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "optimism"
ownerNostring, e.g. "0xc2EEdF3bC7F93366c00c6074DF0e6F122fa2445c"
tokenIdNostring, e.g. "1043"
contractNostring, e.g. "0x4857DB576eE0e45F10525eC59527BfD10beeC60b"
imageUrlNostring, e.g. "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9I
metadataNoobject
standardNostring, e.g. "ERC-721"
tokenUriNostring, e.g. "data:application/json;base64,eyJuYW1lIjo…"
collectionNostring, e.g. "Slipstream V3 Deposit"
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. \"optimism\""
      +    },
      +    "collection": {
      +      "description": "string, e.g. \"Slipstream V3 Deposit\""
      +    },
      +    "contract": {
      +      "description": "string, e.g. \"0x4857DB576eE0e45F10525eC59527BfD10beeC60b\""
      +    },
      +    "fetchedFrom": {
      +      "description": "string, e.g. \"inline data URI\""
      +    },
      +    "imageUrl": {
      +      "description": "string, e.g. \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9I"
      +    },
      +    "metadata": {
      +      "description": "object"
      +    },
      +    "owner": {
      +      "description": "string, e.g. \"0xc2EEdF3bC7F93366c00c6074DF0e6F122fa2445c\""
      +    },
      +    "standard": {
      +      "description": "string, e.g. \"ERC-721\""
      +    },
      +    "tokenId": {
      +      "description": "string, e.g. \"1043\""
      +    },
      +    "tokenUri": {
      +      "description": "string, e.g. \"data:application/json;base64,eyJuYW1lIjo…\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the description's added value is the operational detail: metadata is fetched and decoded from IPFS, Arweave, HTTPS, or an inline data URI, an image URL is normalized to browser-loadable form, and the call costs $0.008 USDC on Base via x402 — real payment/auth context absent from structured fields. It stops short of disclosing failure modes such as unreachable metadata sources or fallback behavior.

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 that front-loads the chain and asset type before listing return fields, with the pricing note placed last. Every clause carries information; it is long but not padded.

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?

For a two-parameter read-only lookup with an output schema and full annotation coverage, the definition covers input scope, returned content, data-source breadth, and cost. Slightly incomplete on edge cases (missing/unresolvable token, unreachable metadata URI) that would change an agent's retry or fallback decision.

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 properties carry patterns and descriptions ('Token id as a decimal string', 'NFT collection contract on OP Mainnet'), so the schema does the heavy lifting. The description adds no parameter-level guidance — e.g. that tokenId must exist in the given collection or how ERC-1155 vs ERC-721 ids behave — so the 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+resource ('Metadata for an ERC-721 or ERC-1155 token on OP Mainnet') and enumerates exactly what is returned: collection name, current owner (ERC-721 only), token URI, decoded metadata JSON, and image URL. The chain qualifier ('OP Mainnet') is the exact axis that separates it from the eth_/base_/arbitrum_/polygon_ siblings.

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?

Scope implies usage — an agent can infer this is the OP Mainnet variant and that other chains are covered elsewhere — and the 'ERC-721 or ERC-1155' phrasing bounds applicability. However, there is no explicit when-to-use/when-not statement and no named alternative (e.g. optimism_contract_info) for contract-level rather than token-level lookups.

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