Skip to main content
Glama

get_land

Retrieve detailed information for specific Axie Infinity land plots using grid coordinates to access ownership, terrain, and plot data.

Instructions

Get details for a specific land plot by its grid coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colYesColumn coordinate of the land plot.
rowYesRow coordinate of the land plot.

Implementation Reference

  • Handler implementation for the get_land tool, including input schema validation and GraphQL query execution.
    case "get_land": {
      const schema = z.object({
        col: z.coerce.number().int(),
        row: z.coerce.number().int(),
      });
      const { col, row } = schema.parse(args);
      const data = await client.query<{ land: unknown }>(queries.GET_LAND, {
        col,
        row,
      });
      return jsonContent(data.land);
    }
  • GraphQL query definition for retrieving land data.
    export const GET_LAND = `
      query GetLand($col: Int!, $row: Int!) {
        land(col: $col, row: $row) {
          tokenId
          owner
          col
          row
          landType
          minPrice
          order {
            id
            currentPrice
            currentPriceUsd
            paymentToken
            status
          }

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