Vitamin D synthesis calculator
calculateCalculate 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.
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": "calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | No | Age in years (used for the age factor). | |
| day | No | Include 15-min samples through the local day. | |
| lat | Yes | Latitude in degrees. | |
| lon | Yes | Longitude in degrees. | |
| area | No | Exposed body fraction. 0.10 face+hands, 0.25 arms+face, 0.40 t-shirt+shorts, 0.85 near-full body. | |
| date | No | ISO 8601 timestamp or epoch ms. Defaults to now. | |
| skin | No | Fitzpatrick skin type 1–6. Use describe_skin_types if unknown. | |
| year | No | Include monthly solar-noon samples with cloud climatology. | |
| scalp | No | Scalp coverage. "bald" adds ~3.5% BSA. | hair |
| target | No | Daily vitamin D target in IU. |