Skip to main content
Glama

Get weather

get_weather
Read-onlyIdempotent

Weather now, for the next hour, and for today plus 3 days at a point, based on data from MET Norway (credit the source). Coordinates only: look up the place's latitude and longitude first. Example: {"lat":32.08,"lon":34.78,"tz":"Asia/Jerusalem"}.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "get_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoOptional IANA time zone for local days, for example Asia/Jerusalem. Without it, days use an approximate offset from longitude.
latYesLatitude in decimal degrees, -90 to 90.
lonYesLongitude in decimal degrees, -180 to 180.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: the upstream data source and the attribution obligation ('credit the source'), plus the coordinate-only input constraint and the tz fallback to a longitude-derived offset.

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?

Three short sentences, front-loaded with what is returned and over what horizons, followed by the input constraint and a concrete example. Nothing is redundant and the example earns its place by showing all three fields together.

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?

With no output schema, the description carries the burden of describing returns, and it does so by naming the three time horizons covered. The attribution requirement and coordinate prerequisite round it out; only the response shape (units, fields) is left implicit, which is acceptable for a weather lookup.

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%, so lat, lon and tz are already fully documented, and the description's example object largely restates them. The one added nuance is the 'coordinates only' framing, which reinforces that place names are not accepted, but it does not deepen per-parameter meaning beyond the schema.

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 ('Weather now, for the next hour, and for today plus 3 days at a point') and names the data source (MET Norway). The forecast horizons make the scope unambiguous, and no sibling tool overlaps with weather retrieval.

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?

Gives an explicit prerequisite: 'Coordinates only: look up the place's latitude and longitude first,' which tells the agent it must geocode before calling. It does not name alternatives, but no sibling in the catalog performs a comparable function, so there is little to disambiguate against.

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.

Resources