Overview
A solar position API. Sun Position works by analyzing the location provided and calculating sun position data. It uses advanced algorithms to calculate data such as altitude, azimuth, and distance of the sun from the location and returns the sun position data.
Live Test Sun Position Grounding Data for AI Agents Source →
The tool
Once your client is connected to the VerveContext server, this appears in its tool list as SunPositionGroundingDataforAIAgents. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.
{
"name": "SunPositionGroundingDataforAIAgents",
"arguments": {
"lat": "37.7749",
"lon": "-122.4194"
}
}You do not name the tool yourself; the model picks it. Asking about 37.7749 in the terms this source covers is enough for it to reach for SunPositionGroundingDataforAIAgents on its own — naming it explicitly also works, and is the way to force the call.
Connecting
One server URL covers every source in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.
{
"mcpServers": {
"vervecontext": {
"url": "https://api.vervecontext.com/v1/mcp"
}
}
}https://api.vervecontext.com/v1/mcpPer-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.
Arguments
These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.
| Argument | Type | Description |
|---|---|---|
latRequired | number | The latitude of the location range -90–90 |
lonRequired | number | The longitude of the location range -180–180 |
dateOptionalPremium | string | The date to get the sun position data for (MM-DD-YYYY) date |
timeOptional | string | The time of day for the calculation (HH:mm format, 24-hour), read in the timezone of the coordinates. Defaults to 00:00 if not provided time |
timezoneOptional | string | IANA timezone to read the date and time in, such as America/Los_Angeles. Defaults to the timezone of the coordinates timezone |
What the model gets back
The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.
{
"status": "ok",
"error": null,
"data": {
"date": "01-16-2026",
"time": "14:30",
"timezone": "America/Los_Angeles",
"timestampUTC": "2026-01-16T22:30:00.000Z",
"coordinates": {
"latitude": 37.7749,
"longitude": -122.4194
},
"sun": {
"altitude": 0.41616137328975444,
"azimuth": 0.5817558808515568,
"altitudeDegrees": 23.844,
"azimuthDegrees": 33.332,
"compassBearing": 213.332,
"isDaylight": true,
"declination": -20.7961,
"rightAscension": 19.9228,
"hourAngle": 2.174,
"distance": 0.983786
},
"equationOfTime": -9.88,
"airMass": 2.454,
"clearSky": {
"directNormal": 702.4,
"globalHorizontal": 284.9
},
"shadowRatio": 2.254,
"panelAim": {
"tilt": 66.07,
"azimuth": 213.44
}
}
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
date | string | 01-16-2026 | Date the position was calculated for |
time | string | 14:30 | Time of day the position was calculated for |
timezone | string | America/Los_Angeles | IANA timezone the date and time were read in, resolved from the coordinates unless one was given |
timestampUTC | string | 2026-01-16T22:30:00.000Z | The instant the position was calculated for, in UTC, so the answer is unambiguous |
coordinates | object | {…} | The point on Earth the position was calculated from |
coordinates.latitude | number | 37.7749 | Latitude used for the calculation |
coordinates.longitude | number | -122.4194 | Longitude used for the calculation |
sun | object | {…} | Where the sun sits in the sky at that time and place |
sun.altitude | number | 0.41616137328975444 | Height of the sun above the horizon, in radians; negative when the sun is below the horizon. Multiply by 180/PI for degrees |
sun.azimuth | number | 0.5817558808515568 | Direction of the sun, in radians measured from due south and increasing westward. Multiply by 180/PI for degrees, then add 180 for a compass bearing |
sun.altitudeDegrees | number | 23.844 | Height of the sun above the horizon in degrees; negative when below |
sun.azimuthDegrees | number | 33.332 | Direction of the sun in degrees from due south, increasing westward |
sun.compassBearing | number | 213.332 | Direction of the sun as a compass bearing, 0 for north and 180 for south |
sun.isDaylight | boolean | true | Whether the sun is above the horizon at this time and place |
sun.declinationPremium | number | -20.7961 | Angle of the sun north or south of the celestial equator, in degrees |
sun.rightAscensionPremium | number | 19.9228 | Position of the sun along the celestial equator, in hours |
sun.hourAnglePremium | number | 2.174 | Hours since the sun crossed the local meridian; negative before solar noon |
sun.distancePremium | number | 0.983786 | Distance from Earth to the sun in astronomical units |
equationOfTimePremium | number | -9.88 | Minutes a sundial reads ahead of the clock at this date; negative when it reads behind |
airMassPremium | number | 2.454 | How much atmosphere the sunlight crosses, as a multiple of straight overhead; null after dark |
clearSkyPremium | object | {…} | Cloudless-sky irradiance estimate in watts per square metre; null after dark |
clearSky.directNormalPremium | number | 702.4 | Irradiance on a surface aimed straight at the sun, which is what a tracker sees |
clearSky.globalHorizontalPremium | number | 284.9 | Irradiance on a flat horizontal surface |
shadowRatioPremium | number | 2.254 | Length of the shadow cast by an object, per unit of its height; null after dark |
panelAimPremium | object | {…} | Where to point a solar panel to face the sun squarely at this moment; null after dark |
panelAim.tiltPremium | number | 66.07 | Degrees to tilt the panel back from vertical |
panelAim.azimuthPremium | number | 213.44 | Compass bearing to point the panel at |
Why ground on it
A model can produce something that looks like this answer from its training data, and be confidently out of date or simply wrong. This source returns the current value in a shape you can check, which is the difference between an answer you can cite and one you have to hedge.
Point an evaluation at timestampUTC: it is the field most worth pinning a claim to, and it is either present and current or absent — never plausibly invented.
Failure modes
Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.
| Status | What it means |
|---|---|
400 / 422 | The arguments did not validate. The message names the offending one. |
401 | The OAuth session is invalid or expired — reconnect the server. |
403 | Blocked by a key restriction or an IP allow-list. Never a bad identity. |
404 | This source is not part of VerveContext. Check the catalog. |
429 | Out of credits, or a brief rate limit. The message tells them apart. |
A call costs 2 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.
Use cases
- Golden Hour Photo Planning
- To help photographers capture natural light, mobile photography guides check solar altitude and compass bearings to forecast golden hour windows.
- Smart Blind Automation
- Lower automated window shades when incoming sun altitude and bearing show direct glare striking specific building facades.
- Architectural Glare Analysis
- Building design software computes sun elevation angles across the day to evaluate interior daylighting and orient office windows.
- Athletic Field Orientation
- When setting up temporary sports pitches, venue managers check compass bearings to align player sightlines away from the setting sun.
Other ways to use Sun Position Grounding Data for AI Agents
Set up Sun Position Grounding Data for AI Agents on VerveContext, or reach the same source a different way. Your VerveContext account and credits work on all of them — one key, one balance.
Related
More in Astrology: