get_new_owners
Retrieve the count of new NFT owners to analyze wallet adoption trends, returning a string value or error message if data is unavailable.
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:123-136 (handler)The main handler function for the 'get_new_owners' MCP tool. It is decorated with @mcp.tool() for registration and uses get_latest_result to fetch data from Dune Analytics query ID 5140497, returning the new_wallets count or handling errors.@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)