Skip to main content
Glama

Agent Data API

optimism_nft_metadata

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.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that metadata is fetched from external storage (IPFS, Arweave, HTTPS, inline data URI), that the owner field only applies to ERC-721 (ERC-1155 has no owner), and that the call costs $0.008 USDC on Base via x402 — a prerequisite an agent must satisfy before invoking. It stops short of describing failure modes for unresolvable URIs or malformed metadata.

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?

One dense sentence enumerating return fields followed by a short payment sentence — front-loaded and free of filler. The enumeration is long but every item is a distinct return field an agent would otherwise have to discover by calling.

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?

There is no output schema, so the description correctly compensates by listing the returned fields and their shapes (owner only for ERC-721, image as browser-loadable URL). Combined with the payment prerequisite, an agent has enough to decide and call. Minor gap: no statement of behavior when a token does not exist or metadata is unreachable.

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 described with patterns, so the schema does the heavy lifting. The description adds only the constraint that `contract` must be an OP Mainnet collection; it says nothing new about tokenId formatting or edge cases.

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 (fetch ERC-721/ERC-1155 token metadata) and enumerates exactly what comes back: collection name, current owner, token URI, decoded metadata JSON, and image URL. The chain scope ('on OP Mainnet') cleanly separates it from the eth_/base_/arbitrum_/polygon_nft_metadata siblings without needing to name them.

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?

The chain qualifier implicitly tells an agent to pick this tool only for OP Mainnet tokens, which is the primary routing decision among the five nft_metadata siblings. However, there is no explicit when-to-use/when-not guidance, no mention of what to do for unsupported chains, and no note that this is a paid call versus the free-looking siblings.

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