Skip to main content
Glama

Compare locations

compare_locations
Read-onlyIdempotent

Compare forecast variables across multiple locations side-by-side in one batched call. Returns a distilled per-location series matrix for direct comparison -- prefer this over N sequential forecast calls. Locations accept place names directly. Example: {"locations": [{"location": "Denver"}, {"location": "Boulder, CO"}], "variables": ["temperature_2m", "precipitation_probability"], "hours": 48}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoForecast hours. Default 24.
locationsYesLocations to compare (2-10). Each takes location OR lat/lon, optional label.
variablesYesStandard variable names (e.g. temperature_2m, precipitation).
dataset_idNoDataset override. Default: auto-resolved NBM per location.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursYes
variablesYes
comparisonsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already carry readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context: it is a batched call, returns a distilled per-location matrix, and accepts place names directly. No contradiction with annotations exists.

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

Conciseness5/5

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

The description is compact and well-structured: main capability first, output behavior second, usage note third, and a concrete example last. Every sentence contributes useful information without filler.

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

Completeness5/5

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

Given the rich schema, output schema, and read-only/idempotent annotations, the description covers the core behavioral contract completely: batched multi-location comparison, direct place-name input, matrix output, and preference over sequential calls. Nothing essential is missing for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, with all parameters already documented clearly. The description's example reinforces the expected shape but adds little semantic meaning beyond what the schema already provides. Baseline 3 is appropriate.

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?

The description clearly states a specific verb and resource: compare forecast variables across multiple locations in one batched call. It also differentiates itself from sequential forecast calls by emphasizing the 'distilled per-location series matrix' return, which separates it from sibling tools like get_forecast.

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?

The description explicitly says to prefer this tool over N sequential forecast calls, which conveys the primary comparison use case. It does not name a specific sibling alternative or state when to use a single-location tool instead, but the guidance is otherwise clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.