Docs/Sources/Sun Position Grounding Data for AI Agents

Sun Position Grounding Data for AI Agents

Get sun position data

OperationalCredits 2 per callp50 349msAstrology

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.

Tool call
{
  "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"
    }
  }
}

Per-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.

ArgumentTypeDescription
latRequirednumberThe latitude of the location
range -90–90
lonRequirednumberThe longitude of the location
range -180–180
dateOptionalPremiumstringThe date to get the sun position data for (MM-DD-YYYY)
date
timeOptionalstringThe 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
timezoneOptionalstringIANA 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.

Result
{
  "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.

FieldTypeExampleDescription
datestring01-16-2026Date the position was calculated for
timestring14:30Time of day the position was calculated for
timezonestringAmerica/Los_AngelesIANA timezone the date and time were read in, resolved from the coordinates unless one was given
timestampUTCstring2026-01-16T22:30:00.000ZThe instant the position was calculated for, in UTC, so the answer is unambiguous
coordinatesobject{…}The point on Earth the position was calculated from
coordinates.latitudenumber37.7749Latitude used for the calculation
coordinates.longitudenumber-122.4194Longitude used for the calculation
sunobject{…}Where the sun sits in the sky at that time and place
sun.altitudenumber0.41616137328975444Height of the sun above the horizon, in radians; negative when the sun is below the horizon. Multiply by 180/PI for degrees
sun.azimuthnumber0.5817558808515568Direction 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.altitudeDegreesnumber23.844Height of the sun above the horizon in degrees; negative when below
sun.azimuthDegreesnumber33.332Direction of the sun in degrees from due south, increasing westward
sun.compassBearingnumber213.332Direction of the sun as a compass bearing, 0 for north and 180 for south
sun.isDaylightbooleantrueWhether the sun is above the horizon at this time and place
sun.declinationPremiumnumber-20.7961Angle of the sun north or south of the celestial equator, in degrees
sun.rightAscensionPremiumnumber19.9228Position of the sun along the celestial equator, in hours
sun.hourAnglePremiumnumber2.174Hours since the sun crossed the local meridian; negative before solar noon
sun.distancePremiumnumber0.983786Distance from Earth to the sun in astronomical units
equationOfTimePremiumnumber-9.88Minutes a sundial reads ahead of the clock at this date; negative when it reads behind
airMassPremiumnumber2.454How much atmosphere the sunlight crosses, as a multiple of straight overhead; null after dark
clearSkyPremiumobject{…}Cloudless-sky irradiance estimate in watts per square metre; null after dark
clearSky.directNormalPremiumnumber702.4Irradiance on a surface aimed straight at the sun, which is what a tracker sees
clearSky.globalHorizontalPremiumnumber284.9Irradiance on a flat horizontal surface
shadowRatioPremiumnumber2.254Length of the shadow cast by an object, per unit of its height; null after dark
panelAimPremiumobject{…}Where to point a solar panel to face the sun squarely at this moment; null after dark
panelAim.tiltPremiumnumber66.07Degrees to tilt the panel back from vertical
panelAim.azimuthPremiumnumber213.44Compass 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.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This source is not part of VerveContext. Check the catalog.
429Out 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.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →

More in Astrology:

Was this page helpful?