Skip to main content
Glama

get_top_sales

Retrieve highest-value sales data for Axie Infinity tokens within specified timeframes to analyze market trends and pricing.

Instructions

Get the top sales for a given token type (Axie, Land, Item, etc.) over a specified time period.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenTypeYesThe type of token to get top sales for.
periodTypeYesThe time period to look back.
sizeNoNumber of top sales to return. Default 10.

Implementation Reference

  • The handler for the 'get_top_sales' tool, which parses arguments, executes the GraphQL query using the client, and returns the top sales data.
    case "get_top_sales": {
      const schema = z.object({
        tokenType: TokenTypeEnum,
        periodType: PeriodTypeEnum,
        size: z.coerce.number().int().min(1).max(100).default(10),
      });
      const parsed = schema.parse(args);
      const data = await client.query<{ topSales: unknown }>(
        queries.GET_TOP_SALES,
        {
          tokenType: parsed.tokenType,
          periodType: parsed.periodType,
          size: parsed.size,
        }
      );
      return jsonContent(data.topSales);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jackdlogan/axie-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server