Astronomy
Compute the sun’s elevation and azimuth (NOAA algorithm) for any latitude, longitude, date and time, plus the length and direction of the shadow cast by an object of a given height, with sunrise/sunset and a full-day shadow curve
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/sun-position-shadow-simulator' \
-H 'Content-Type: application/json' \
-d '{"lat":40.7128,"lon":-74.006,"date":"2026-06-21","hour":12,"height":1.8,"tz":0,"timeBasis":"solar"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/sun-position-shadow-simulator| Name | Type | Required | Description |
|---|---|---|---|
| lat | number | Yes | — |
| lon | number | Yes | — |
| date | date | Yes | — |
| hour | number | No | — |
| height | number | Yes | — |
| tz | number |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-sun-position-shadow-simulator": {
"name": "sun-position-shadow-simulator",
"description": "Compute the sun’s elevation and azimuth (NOAA algorithm) for any latitude, longitude, date and time, plus the length and direction of the shadow cast by an object of a given height, with sunrise/sunset and a full-day shadow curve",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sun-position-shadow-simulator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "sun-position-shadow-simulator",
"arguments": {
"lat": 40.7128,
"lon": -74.006,
"date": "2026-06-21",
"hour": 12,
"height": 1.8,
"tz": 0,
"timeBasis": "solar"
}
}
}Questions or issues? Contact [email protected]
| No |
| — |
| timeBasis | select | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}