Skip to main content
Glama

compare_observed_vs_predicted

Compare measured water levels with predicted tides for a station and past time range, returning average, RMS and maximum differences that reveal storm surge, wind or river-flow effects.

Instructions

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.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "station": "<station>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "compare_observed_vs_predicted"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
stationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the returned metrics, the sign convention (observed minus predicted), the hard 7-day range cap, the requirement for a dual-series station, and that the range must be historical. It omits units and sampling resolution, which matters for interpreting the difference values.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose and return values before prerequisites, and the Args block is compact. The docstring-style parameter restatement duplicates information that would be better placed in the schema, costing a little efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by enumerating the three returned statistics and their sign convention. Combined with stated prerequisites and the range limit, an agent has enough to call it correctly; only unit and resolution details are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does for all three parameters: station accepts a code or name, start is cross-referenced to the formats used by get_water_levels, and end is constrained to at most 7 days after start. The one omission is units/format for the returned values rather than the inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — comparing measured water levels against predicted tide — and immediately names the three computed statistics (average difference, RMS difference, largest gap), which distinguishes it from the sibling tools that return raw observed or predicted series.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Prerequisites are explicit: the station must have both observed and predicted series and the range must be in the past. It also explains what large gaps imply (storm surge, wind, river flow), giving an interpretive use case. It stops short of naming an alternative tool for cases where a station lacks one series, which is the only gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.