Skip to main content
Glama

UK Data: Weather forecasts worldwide

sunrise_sunset

Read-onlyIdempotent

Sunrise, sunset, solar noon and day length for any place on Earth and any date, with the sun's compass bearing at rise and set, its height at noon, and civil twilight (first light and last light) and golden-hour times. Handles polar day and polar night. For photographers, walkers, anglers, prayer and event timing. Source: MET Norway Sunrise 3.0 for sunrise, sunset and noon; twilight and golden hour are our own calculation (standard NOAA solar-position formulas) and labelled as derived. Times are in the UTC offset you give, default +00:00: pass +01:00 for UK summer time (BST), as daylight saving is not applied for you. Needs lat and lon: for a UK place name or postcode, get coordinates from geocode or postcode_lookup first. (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
latNonumber, required, latitude in decimal degrees (-90 to 90)
lonNonumber, required, longitude in decimal degrees (-180 to 180)
dateNostring, optional, day as YYYY-MM-DD, default today (at utc_offset)
utc_offsetNostring, optional, UTC offset for the times returned (-12:00 to +15:00), e.g. +00:00 (UK winter), +01:00 (UK summer), default +00:00

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, and the description adds substantial context on top: the MET Norway 3.0 source for core times versus NOAA-derived twilight and golden hour flagged as derived, explicit polar day/night handling, and the important caveat that daylight saving is not applied automatically (pass +01:00 for BST). It also discloses the 1-credit cost.

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?

Front-loaded with the payload, then progressively adds sourcing, timezone caveat, and prerequisite. Dense but every sentence carries operational information; the trailing parenthetical cost is the only near-redundant element.

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?

With no output schema, the description still enumerates what comes back (rise/set/noon/day length, bearings, noon altitude, twilight and golden-hour windows) and covers edge cases (polar day/night) plus the timezone trap. Nothing an agent needs to call it correctly is 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 100%, so baseline is 3, but the description adds real meaning: utc_offset governs the returned times, defaults to +00:00, and DST must be supplied manually; lat/lon must come from geocoding for place names. Only 'date' semantics are left entirely to 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+resource with full scope: 'Sunrise, sunset, solar noon and day length for any place on Earth and any date', then enumerates the derived outputs (compass bearing at rise/set, noon height, civil twilight, golden hour). No sibling tool covers this, and the agent can tell instantly what it returns.

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 concrete use contexts (photographers, walkers, anglers, prayer and event timing) and an explicit prerequisite workflow: for UK place names or postcodes, call geocode or postcode_lookup first to get lat/lon. It does not explicitly exclude or compare against any sibling beyond that prerequisite routing, so it falls short of a full when/when-not statement.

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