Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Token ids an address holds in one ERC-721 collection ($0.002)

get_nft_holdings

Lists the ERC-721 token IDs a wallet holds in one collection across Base, Ethereum, Arbitrum, Optimism, or Polygon, returning balance, collection name, and symbol from live chain data.

Instructions

Lists the token ids an address holds in one ERC-721 collection (up to 200), with balance, collection name and symbol, read live on Base, Ethereum, Arbitrum, Optimism or Polygon. Needs an ERC721Enumerable contract. Not charged for bad input, a non-enumerable contract, a non-ERC-721 address 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": {
      "owner": "<owner>",
      "contract": "<contract>"
    },
    "name": "get_nft_holdings"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoOne chain, any of: base,ethereum,arbitrum,optimism,polygon. Default: ethereum.
limitNoMax token ids to return, 1-200 (default 100)
ownerYesWallet address to list holdings for
contractYesERC-721 collection contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the $0.002 USDC x402 charge on Base, the X402_PRIVATE_KEY funding requirement, that no API key is needed, that data is read live, and that failed or invalid calls are free. This explains why readOnlyHint=false despite a read-only operation — the call has a payment side effect — which is exactly the kind of context annotations cannot convey.

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?

Front-loaded with purpose and cap, then progressively adds requirements, billing terms, and price. The non-charging policy is stated twice ('Not charged for bad input…' and '(not charged when the call fails)'), which is redundant but the description remains dense and readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, read-only lookup with no output schema, it covers everything an agent needs: what is returned, chain scope, the enumerable-contract prerequisite, authentication via an environment variable, and the exact cost and failure-billing behavior. Nothing material is left to inference.

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 description coverage is 100%, so the baseline is 3; the description only reinforces the chain list and the 200 cap already documented in the schema. It adds no format, default, or interaction detail beyond what the parameter descriptions already state.

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 and resource ('Lists the token ids an address holds in one ERC-721 collection'), plus the return cap (200), side data (balance, collection name and symbol), and supported chains. The ERC-721 scoping implicitly separates it from ERC-1155 balance and general NFT-owner style siblings, so an agent can route correctly without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition ('Needs an ERC721Enumerable contract') and enumerates the failure cases that are not billed, which effectively tells the agent when this call will return nothing useful. It stops short of naming an alternative tool for non-enumerable collections or ERC-1155 assets, so the exclusion side is implied rather than explicit.

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