Skip to main content
Glama

Vitamin D synthesis calculator

calculate

Calculate vitamin D synthesis at a given location and time. Returns sun position, UV index, IU/min, minutes to reach the target dose, MED (sunburn threshold), the peak window, and optional 15-min day / monthly year curves. UV index uses a live satellite-driven forecast where available, with a clear-sky fallback.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageNoAge in years (used for the age factor).
dayNoInclude 15-min samples through the local day.
latYesLatitude in degrees.
lonYesLongitude in degrees.
areaNoExposed body fraction. 0.10 face+hands, 0.25 arms+face, 0.40 t-shirt+shorts, 0.85 near-full body.
dateNoISO 8601 timestamp or epoch ms. Defaults to now.
skinNoFitzpatrick skin type 1–6. Use describe_skin_types if unknown.
yearNoInclude monthly solar-noon samples with cloud climatology.
scalpNoScalp coverage. "bald" adds ~3.5% BSA.hair
targetNoDaily vitamin D target in IU.

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full transparency burden. It adds meaningful behavioral context by disclosing that the UV index uses a live satellite-driven forecast where available, with a clear-sky fallback. This signals data dependency and variability. It doesn't mention side effects, but as a calculator it's implicitly non-destructive, and the description covers key behavioral nuances.

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 exactly two sentences. The first sentence front-loads the purpose and enumerates key outputs, while the second explains the data source behavior. There is no fluff or repetition; every word contributes to understanding the tool.

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?

Given the tool has 10 parameters and no output schema, the description does well to summarize the return values and the underlying forecast/fallback mechanism. It doesn't explain every parameter, but the schema covers those details. The description provides enough context for an agent to understand the tool's scope and invoke it with confidence.

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 the baseline is 3. The description references a few parameters indirectly (location/time, target dose, day/year curves) but doesn't add semantic meaning beyond what the schema already provides. The schema itself thoroughly documents each parameter, so the description adds marginal value here.

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 begins with a specific verb+resource: 'Calculate vitamin D synthesis at a given location and time.' It then lists concrete outputs (sun position, UV index, IU/min, etc.), making the tool's function unmistakable. This clearly distinguishes it from sibling tools describe_skin_types and geocode, which serve different purposes.

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 implies when to use the tool: given a location and time, it calculates synthesis and returns relevant metrics. It doesn't explicitly state when not to use it or name alternatives, but the sibling tools have obviously distinct roles (describing skin types, geocoding), so the context is clear enough for an agent to select appropriately.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool has a distinct role: calculate is the core computation, describe_skin_types provides input for skin type, and geocode converts location to coordinates. There is no overlap or ambiguity between them.

Naming Consistency4/5

Tool names are imperative verbs in lowercase, with snake_case for multi-word names (describe_skin_types). While 'calculate' and 'geocode' are single verbs without a noun, the pattern is consistent enough and easy to predict.

Tool Count5/5

Three tools is a well-scoped size for a focused vitamin D calculator server. Each tool is necessary and there are no redundant additions.

Completeness5/5

The server covers the full user journey: geocoding location, determining skin type, and calculating vitamin D synthesis with detailed outputs. No obvious dead ends or missing operations within the stated purpose.

Resources