computeRarity
Calculate the rarity score of an NFT in its collection by entering the contract address and token ID on supported networks. Useful for assessing NFT uniqueness within a set.
Instructions
Compute the rarity score for a specific NFT within its collection
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": {
"contractAddress": "<contractAddress>",
"tokenId": "<tokenId>"
},
"name": "computeRarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network ID. Call listSupportedNetworks for all options. e.g. "eth-mainnet", "base-mainnet" | eth-mainnet |
| contractAddress | Yes | Contract address of the NFT collection. | |
| tokenId | Yes | Token ID of the NFT to compute rarity for. |