Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TIDEWISE_OFFLINENoSet to "1" to use the bundled sample data instead of the live service.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tide and water level data from Fisheries and Oceans Canada (IWLS). Start with find_stations unless you already know a station code. Heights are metres above chart datum. Times are returned in UTC and in the station's local time. A date with no time, like 2026-11-26, means that whole local day. Weather tools (marine forecast, hourly weather) come from Environment and Climate Change Canada; they take the same station codes and names.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_stationsA

Find tide gauge stations by place name, or the nearest ones to a point.

    Give `query` (for example "Halifax" or "Saint John"), or both `latitude`
    and `longitude`. With coordinates, results are sorted by distance. Each
    result has the station `code` to use in the other tools, its time zone,
    and which data series it has: wlo (observed water level), wlp (predicted
    water level), wlp-hilo (predicted high and low tides).

    Args:
        query: Part of a station name. Case does not matter.
        latitude: Degrees north, -90 to 90. Needs longitude.
        longitude: Degrees east, -180 to 180 (west is negative). Needs latitude.
        limit: How many stations to return, 1 to 20.
        max_distance_km: Drop stations farther than this from the point.
        include_inactive: Also list stations that are not operating.
    
get_water_levelsA

Get observed (measured) water levels for a station over a time range.

    Returns a summary (highest, lowest, mean) and the points. Some stations
    do not report observed levels, and a station can go quiet for a while;
    the error says so. For the future, use get_tide_predictions instead.

    Args:
        station: Station code like "07735" or a name like "Vancouver".
        start: Start time. "2026-11-24" (whole local day), "2026-11-24T08:00"
            (station local time), "2026-11-24T16:00:00Z" (UTC) or "now".
        end: End time, same formats. A date alone means the end of that day.
            At most 7 days after start.
        resolution_minutes: 15 or 60. At most 200 points are returned.
    
get_tide_predictionsA

Get predicted water levels (the tide table curve) for a station.

    Same inputs and output shape as get_water_levels. Predictions come from
    harmonic analysis and do not include weather. To find just the next high
    and low tides, next_high_low_tide is shorter.

    Args:
        station: Station code like "00490" or a name like "Halifax".
        start: Start time. "2026-11-26" (whole local day), "2026-11-26T08:00"
            (station local time), "2026-11-26T12:00:00Z" (UTC) or "now".
        end: End time, same formats. A date alone means the end of that day.
            At most 7 days after start.
        resolution_minutes: 15 or 60. At most 200 points are returned.
    
next_high_low_tideA

List the next predicted high and low tides at a station.

    Each event says whether it is a high or a low, the time (UTC and local)
    and the height. To answer "when is high tide tomorrow", pass
    after="<tomorrow's date>" and read the events that fall on that day;
    ask for enough events (count=6 or more) to cover the whole day.

    Args:
        station: Station code like "00490" or a name like "Halifax".
        after: Where to start looking: "now", a date, or a date and time.
        count: How many events to return, 1 to 12.
    
compare_observed_vs_predictedA

Compare measured water levels with the predicted tide.

    Returns the average difference, root-mean-square difference and the
    largest gap (observed minus predicted). Large gaps usually come from
    storm surge, wind or river flow. Needs a station with both observed
    and predicted series, and a time range in the past.

    Args:
        station: Station code or name.
        start: Start time (same formats as get_water_levels).
        end: End time. At most 7 days after start.
    
get_marine_forecastA

Get the Environment Canada marine weather forecast for the water at a station.

    Returns the text forecast for the marine area the station is in: wind
    (in knots), weather, visibility, air temperature, freezing spray, and any
    marine warnings such as gale or small craft warnings. The forecast
    covers roughly the next 24 to 36 hours and is only for the next day or
    so. There is no forecast for inland stations, and some areas have none
    in winter. Use get_hourly_weather for wind hour by hour.

    Args:
        station: Station code like "00490" or a name like "Halifax".
    
get_hourly_weatherA

Get the hourly weather forecast near a station: wind, temperature, rain chance.

    Uses the nearest Environment Canada city forecast point. Wind is given in
    km/h and in knots. The forecast only covers about the next 24 hours; the
    error tells you the window if you ask outside it. Also returns sunrise
    and sunset. For a marine warning or the wind over open water, use
    get_marine_forecast as well.

    Args:
        station: Station code like "00490" or a name like "Halifax".
        start: Start time. "2026-11-26T06:00" (station local time),
            "2026-11-26T11:00:00Z" (UTC), a date alone (start of that
            local day) or "now".
        end: End time, same formats. A date alone means the end of that day.
            Defaults to 24 hours after start.
    

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a clearly distinct operation: station discovery, observed levels, predicted curve, high/low events, comparison, marine forecast, and hourly weather. Descriptions explicitly cross-reference related tools (e.g., get_tide_predictions vs next_high_low_tide) to clarify boundaries.

Naming Consistency4/5

Consistent snake_case with verb_noun pattern for most tools (find_stations, get_water_levels, compare_observed_vs_predicted). One deviation: next_high_low_tide is a noun phrase rather than a verb-led name, but overall the pattern is predictable.

Tool Count5/5

7 tools is well within the ideal 3-15 range. Each tool covers a distinct facet of tide and weather data, and there are no redundant or filler tools.

Completeness4/5

Covers the core lifecycle: station discovery, observed/predicted water levels, high/low events, comparison, and weather forecasts. Minor gaps like direct station metadata or water temperature are not critical for the apparent purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues