Skip to main content
Glama

get_sun_forecast

The NEXT FEW DAYS of vitamin D sun at a location, using the live Open-Meteo forecast: per day the peak UV, average cloud cover, the synthesis window and the minutes needed, plus bestDay. Use this for any question spanning several days — 'which day this week should I go out', 'will it be better tomorrow', 'when's my next chance' — instead of calling get_vitamin_d_window once per date.

Input Schema

NameRequiredDescriptionDefault
ageNoAge in years (synthesis declines with age); omit for adult baseline
latYesLatitude in decimal degrees
lonYesLongitude in decimal degrees
daysNoHow many days ahead, 2 to 7; default 5
skinTypeNoFitzpatrick skin type 1 (very fair) to 6 (very dark); default 3
targetIUNoVitamin D target per session in IU; default 1000
timezoneNoIANA timezone like 'Europe/Madrid'. Strongly recommended — without it all times are UTC
elevationMNoGround elevation in metres (UV rises ~8%/km); default sea level
exposedSkinFractionNoSkin exposed: 0.10 face+hands, 0.18 face+arms, 0.25 t-shirt+shorts (default), 0.40 swimsuit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Added

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 disclose the data source (live Open-Meteo forecast), the per-day result shape, and the presence of a bestDay aggregate. It does not cover failure modes (polar night, forecast outage, null bestDay) or confirm read-only/network-dependency behavior, leaving a moderate gap for a 9-param external-data tool.

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?

One front-loaded paragraph that leads with what it returns and ends with the routing rule. The three quoted example questions are slightly verbose but earn their place by disambiguating from the single-date sibling.

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 usefully enumerates the return fields and the bestDay aggregate, and the 100%-covered input schema handles parameters. It is complete enough to invoke correctly, though error/edge-case behavior for a live external forecast is unaddressed.

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% and the schema is unusually rich, documenting defaults and semantics for age, skinType, targetIU, days, elevationM, exposedSkinFraction, and timezone. The description adds no parameter-level detail beyond 'at a location', so the baseline 3 applies.

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 (multi-day vitamin D sun forecast via live Open-Meteo) and enumerates the per-day outputs: peak UV, average cloud cover, synthesis window, minutes needed, and bestDay. It explicitly distinguishes itself from the sibling get_vitamin_d_window, so an agent can route correctly without opening schemas.

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

Usage Guidelines5/5

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

Gives explicit when-to-use triggers ('which day this week should I go out', 'will it be better tomorrow', 'when's my next chance') and an explicit anti-pattern: don't call get_vitamin_d_window once per date. The alternative and the condition that selects it are both named.

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