get_new_owners
Retrieve the count of new wallet owners for NFT collections to track adoption and growth metrics using analytics data.
Instructions
Retrieve count of new NFT owners.
Returns:
str: Count of new wallet owners as a string, or "N/A" if no data is available,
or error message if the query fails.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_new_owners"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:123-137 (handler)The main handler function for the get_new_owners tool. It is registered via the @mcp.tool() decorator. Fetches data from Dune Analytics query ID 5140497 using the helper get_latest_result and extracts the count of new wallets from the first row of results.
@mcp.tool() def get_new_owners() -> str: """ Retrieve count of new NFT owners. Returns: str: Count of new wallet owners as a string, or "N/A" if no data is available, or error message if the query fails. """ try: data = get_latest_result(5140497) return data[0].get("new_wallets", "N/A") except Exception as e: return str(e)