Skip to main content
Glama

get_marine_weather

Retrieve marine weather forecasts for nautical planning, including wave height, swell data, and optional tide information for coastal or ocean coordinates.

Instructions

Get marine and sailing weather forecast including significant wave height, swell height, swell direction, swell period, and optionally tide data. Useful for nautical and coastal planning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesCoastal or ocean coordinates as lat,lon (e.g. 51.5,-1.8).
daysNoForecast days (1–7 depending on plan). Default: 1.
tidesNoInclude tide data (Pro+ plan and above). Default: no.

Implementation Reference

  • The handler implementation for the get_marine_weather tool, which processes arguments and calls the weatherRequest helper function.
    case "get_marine_weather": {
      const { q, days = 1, tides = "no" } = args as {
        q: string;
        days?: number;
        tides?: string;
      };
      result = await weatherRequest("/marine.json", { q, days, tides });
      break;
    }
  • The tool registration and schema definition for get_marine_weather, outlining the expected input parameters and description.
    {
      name: "get_marine_weather",
      description:
        "Get marine and sailing weather forecast including significant wave height, swell height, swell direction, swell period, and optionally tide data. Useful for nautical and coastal planning.",
      inputSchema: {
        type: "object",
        properties: {
          q: {
            type: "string",
            description: "Coastal or ocean coordinates as lat,lon (e.g. 51.5,-1.8).",
          },
          days: {
            type: "number",
            description: "Forecast days (1–7 depending on plan). Default: 1.",
          },
          tides: {
            type: "string",
            enum: ["yes", "no"],
            description: "Include tide data (Pro+ plan and above). Default: no.",
          },
        },
        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