Prepare Data
prepare_dataDownloads district-level YSK election data to your computer for faster local queries, with resumable progress and time-limited calls.
Instructions
Download the district-level data of an election to this computer (one-time, ~81 small requests, about 1.5 minutes; YSK is queried politely, at most 2 requests per second). Call with election=None to see the status of all elections. Each call downloads for at most max_seconds (default 45) and can be repeated; progress is kept. 'complete': true means district queries for that election are fast.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prepare_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| election | No | ||
| max_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||