Grid Info
grid_infoConvert a 4- or 6-character Maidenhead grid square to latitude/longitude and optionally compute solar elevation with day/twilight/night classification for a given UTC hour and date.
Instructions
Decode a Maidenhead grid to lat/lon and compute solar elevation.
Converts a 4-char or 6-char Maidenhead grid square to geographic coordinates. If hour is provided, computes solar elevation angle with day/twilight/night classification.
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": {
"grid": "<grid>"
},
"name": "grid_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | Yes | Maidenhead grid (4-char like "DN13" or 6-char like "DN13la") | |
| hour | No | UTC hour (0-23) for solar elevation calculation | |
| month | No | Month (1-12) for solar elevation (used if day_of_year not given) | |
| day_of_year | No | Day of year (1-366) for precise solar elevation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |