Fetch generation result
fetch_generationFetch a previously started generation by id: returns its status, and the SQL INSERT statements once completed. Use this when generate_test_data reported the generation as still running.
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": {
"generation_id": "<generation_id>"
},
"name": "fetch_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generation_id | Yes | The generation id (UUID) reported by generate_test_data |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | Complete SQL INSERTs. Absent when the result is too large — download it from download_url instead; no partial SQL is ever returned. | |
| status | Yes | ||
| sql_chars | No | ||
| truncated | No | True when the SQL was too large to inline. The response then contains NO sql; fetch the complete file from download_url. | |
| download_url | No | Authenticated download endpoint for the complete SQL (send your API key as 'Authorization: Bearer …'). | |
| generation_id | Yes |