Skip to main content
Glama

chain_nft_holdings

Read-only

NFT holdings for a wallet in a collection — Which ERC-721 tokens a wallet holds in one collection: balance, token ids (ERC721Enumerable, up to 25 via limit) and tokenURI with an IPFS gateway link, plus collection name/symbol/totalSupply and ERC-165 interface flags. contract + owner; optional chain (ethereum default, base, arbitrum, optimism, polygon), limit (1-25, default 10), uris=false to skip tokenURIs. Flags ERC-1155 and ERC-20 contracts with 422. Price: $0.003 USDC (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>",
      "owner": "<owner>"
    },
    "name": "chain_nft_holdings"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
contractYes0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only, open-world, non-destructive, but the description adds material behavior the agent could not infer: a concrete price ($0.003 USDC on Base via x402), a 422 failure mode for wrong token standards, the 25-token cap on enumeration, and that tokenURIs are rewritten through an IPFS gateway.

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 the core purpose, then progressively adds detail; every clause carries information. It is dense — the em-dash run-on and inline chain enumeration take some parsing — but there is no wasted wording.

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?

With no output schema, the description carries the full burden of describing return shape and does so (balance, token ids, tokenURIs, collection name/symbol/totalSupply, interface flags). Combined with pricing and error behavior, an agent has everything needed to call it correctly.

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

Parameters5/5

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

The schema only names owner and contract and its property descriptions are bare example addresses. The description supplies the real semantics, documenting optional chain values (ethereum default, base, arbitrum, optimism, polygon), the limit range and default (1–25, default 10), and the uris=false flag — none of which appear in the schema at all.

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 ('NFT holdings for a wallet in a collection') and immediately narrows scope with 'one collection', which separates it from portfolio-wide lookups such as chain_nft_owner. It also enumerates exactly what is returned (balance, token ids, tokenURI, collection metadata, ERC-165 flags).

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 useful selection context: use it for ERC-721 collections, and it explicitly warns that ERC-1155 and ERC-20 contracts return 422, so the agent knows when not to call it. It also offers the uris=false tradeoff for skipping tokenURIs. It never names an alternative sibling tool, so it stops short of full routing guidance.

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