Skip to main content
Glama

get_sports

Retrieve upcoming sports events including football, cricket, and golf for any location, providing stadium details, tournament names, and start times.

Instructions

Get upcoming sports events (football/soccer, cricket, golf) for a location, with stadium, country, tournament name, and start time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesLocation query — city name, lat/lon, zip, postcode, or IATA.

Implementation Reference

  • The handler for 'get_sports' calls weatherRequest with '/sports.json' and the provided location query.
    case "get_sports": {
      const { q } = args as { q: string };
      result = await weatherRequest("/sports.json", { q });
      break;
    }
  • The definition and input schema for the 'get_sports' tool.
    {
      name: "get_sports",
      description:
        "Get upcoming sports events (football/soccer, cricket, golf) for a location, with stadium, country, tournament name, and start time.",
      inputSchema: {
        type: "object",
        properties: {
          q: {
            type: "string",
            description: "Location query — city name, lat/lon, zip, postcode, or IATA.",
          },
        },
        required: ["q"],
      },
    },

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/weatherapicom/weatherapi-mcp'

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