Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Resolved metadata JSON, image and attributes for any ERC-721 or ERC-1155 token ($0.002)

get_nft_metadata

Resolves an NFT contract and token ID into full metadata in one call: fetches tokenURI and ipfs, arweave, data or http URIs, returning name, image URL, attributes and owner.

Instructions

Resolves an NFT to its metadata in one call: reads tokenURI or uri on-chain, fetches ipfs, arweave, data and http URIs (SSRF-safe), and returns name, description, image gateway URL, attributes, owner and collection name. ERC-721 and ERC-1155. Not charged for bad input, a missing token, an unreachable metadata URL or a chain outage. No API key. Price: $0.002 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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": "get_nft_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoOne chain, any of: base,ethereum,arbitrum,optimism,polygon. Default: ethereum.
tokenIdYesToken id, decimal or 0x hex
contractYesNFT contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false, and idempotentHint=false; the description adds genuine operational context on top: x402 payment of $0.002 USDC on Base drawn from X402_PRIVATE_KEY, no API key required, non-billing on bad input, missing tokens, unreachable metadata URLs, or chain outages, and SSRF-safe URI fetching. The readOnlyHint=false is consistent with a call that moves funds even though it fetches data. The only gap is that the exact response shape for partial or malformed metadata is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the capability and the return payload, then moves to the failure-billing matrix and the payment mechanism, in that order. One small redundancy exists in the double statement about not being charged on failure, but each sentence otherwise carries actionable information.

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 no output schema, the description effectively lists the return fields itself and explains billing and failure behavior, which is what an agent needs before spending USDC. It could be more complete by describing the response when metadata resolution partially fails (for example, a tokenURI that returns malformed JSON) or by naming the chain set inline. The definition is otherwise adequate for a three-parameter paid lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all three parameters are documented in the schema itself, including the chain enum values and default and the accepted tokenId formats, so the description does not need to repeat them. The description supplements this by noting the supported token standards (which constrains what contract may point at) and the returned owner and collection fields tied to the requested contract and tokenId. Because the schema already carries the heavy lifting, this is close to a baseline-3, with slight credit for the standards constraint.

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?

The description names a specific verb and resource ('Resolves an NFT to its metadata'), enumerates exactly what comes back (name, description, image gateway URL, attributes, owner, collection name), and scopes token standards to ERC-721 and ERC-1155. That is enough detail to separate it from siblings such as get_nft_owner or get_nft_holdings, which return narrower slices of data.

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 rather than stated: 'in one call' suggests this replaces a manual multi-step tokenURI→IPFS resolution, and 'any ERC-721 or ERC-1155 token' sets the input domain. However, there is no explicit when-to-use versus when-not guidance, and no named alternative for cases where the caller only needs ownership or balance data.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.