Analyze several datasets together
analyzeOne call for a question that combines datasets: "which Asian capitals had the most earthquakes within 300 km this month", "people within 30 km of each volcano in Indonesia", "how much of each African country is desert". Give a plan: acquire steps (ask = a dataset in plain words answered without a model; hazard = USGS / GVP / FIRMS / GDACS; osm = exact OSM tags in an area), then op steps (within, overlap, zonal, join, population, near, rank, filter) that name their inputs by step id. The code computes, no model: returns a shareable map, a table of the answer step (top rows), a ledger naming each number's source and op, and a grounded summary. A step that cannot run fails the whole plan with that step named and why (a source that did not answer is never reported as "none"). Costs 1 credit; refunded when it fails or the answer is empty. Use build_map for a single dataset.
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": {
"plan": "<plan>"
},
"name": "analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Acquire datasets, then compute over them. Example: [{id:"capitals",acquire:{ask:"capitals of Asia"}},{id:"quakes",acquire:{hazard:"earthquakes",place:"Asia",days:30}},{id:"x",op:"within",target:"capitals",source:"quakes",radius_km:300},{id:"top",op:"rank",input:"x",by:"within_count",n:10}], answer:"top" | |
| map_id | No | Optional: run on this map — acquire {layer} reads its layers, and the result is added to it instead of a new map | |
| rationale | No | Optional short label (≤300 chars) for the map edit history, e.g. "add wildfire layer". Omit it to send nothing beyond the tool arguments. |