Skip to main content
Glama

Base nft metadata

base_nft_metadata
Read-onlyIdempotent

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

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "base"
ownerNostring, e.g. "0x2211d1D0020DAEA8039E46Cf1367962070d77DA9"
tokenIdNostring, e.g. "20339294690710288616623341905746354430592698944139542544116
contractNostring, e.g. "0x03c4738Ee98aE44591e1A4A4F3CaB6641d95DD9a"
imageUrlNostring, e.g. "https://www.base.org/api/basenames/jesse.base.eth/assets/ca
metadataNoobject
standardNostring, e.g. "ERC-721"
tokenUriNostring, e.g. "https://base.org/api/basenames/metadata/2033929469071028861
collectionNostring, e.g. "Basenames"
fetchedFromNostring, e.g. "https://base.org/api/basenames/metadata/2033929469071028861

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. \"base\""
      +    },
      +    "collection": {
      +      "description": "string, e.g. \"Basenames\""
      +    },
      +    "contract": {
      +      "description": "string, e.g. \"0x03c4738Ee98aE44591e1A4A4F3CaB6641d95DD9a\""
      +    },
      +    "fetchedFrom": {
      +      "description": "string, e.g. \"https://base.org/api/basenames/metadata/2033929469071028861"
      +    },
      +    "imageUrl": {
      +      "description": "string, e.g. \"https://www.base.org/api/basenames/jesse.base.eth/assets/ca"
      +    },
      +    "metadata": {
      +      "description": "object"
      +    },
      +    "owner": {
      +      "description": "string, e.g. \"0x2211d1D0020DAEA8039E46Cf1367962070d77DA9\""
      +    },
      +    "standard": {
      +      "description": "string, e.g. \"ERC-721\""
      +    },
      +    "tokenId": {
      +      "description": "string, e.g. \"20339294690710288616623341905746354430592698944139542544116"
      +    },
      +    "tokenUri": {
      +      "description": "string, e.g. \"https://base.org/api/basenames/metadata/2033929469071028861"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/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 genuinely adds value beyond them by disclosing that metadata is fetched and decoded from IPFS, Arweave, HTTPS or inline data URIs, that owner is only returned for ERC-721, and that the call costs $0.008 USDC via x402; however it says nothing about failure behavior when a URI is unreachable or malformed.

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?

Two sentences: the first front-loads what is returned, the second carries the payment detail. The field list is dense but each item is informative; the sentence is long but not padded with filler.

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 shape needn't be documented, yet the description still summarizes it helpfulfully. Coverage of sources, cost, and ERC-721 vs ERC-1155 differences makes it largely complete for a simple two-parameter read tool; only unreachable-metadata handling is unaddressed.

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%, so both parameters (contract, tokenId with a decimal-string pattern) are already fully documented in the schema. The description only restates that the contract is an NFT collection on Base and adds no format, range, or edge-case meaning.

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?

The description names a specific verb and resource ('Metadata for an ERC-721 or ERC-1155 token on Base') and enumerates the returned fields (collection name, owner, token URI, decoded metadata JSON, image URL). The chain qualifier 'on Base' implicitly separates it from eth_nft_metadata / polygon_nft_metadata siblings, 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 rather than stated: the 'on Base' qualifier signals chain selection and the pricing sentence signals a paid call, but there is no explicit when-to-use/when-not guidance or pointer to the other chain variants or to base_contract_info for non-NFT contracts.

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