Check Generation Status
Immutable Catalog + Curated Guide
This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.
- Contract tier:
agent_ready - Risk:
read - Catalog version:
leonardo-ai-2026.07.12.1 - Descriptor hash:
a62b45651f97ecbaa079de0b7fc95f29f9eef8f5a20e76636d7359f76868c4a8
Inspect a submitted generation by identifier without creating or retrying work.
Request Body
{
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-check-generation-status-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_check_generation_status",
"arguments": {
"generation_id": "generation_id_123",
"include_payload": false
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"generation_id"
],
"properties": {
"generation_id": {
"type": "string",
"description": "Leonardo generation ID returned by an async submit tool or callback."
},
"include_payload": {
"type": "boolean",
"default": false,
"description": "Include sanitized stored submit and callback payloads."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"description": "Leonardo MCP result. ok=false, provider_ok=false, a failed status, or an error field represents a semantic failure even when transport delivery succeeded.",
"additionalProperties": true
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-check-generation-status-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_check_generation_status",
"arguments": {
"generation_id": "generation_id_123",
"include_payload": false
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-check-generation-status-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_check_generation_status",
"arguments": {
"generation_id": "generation_id_123",
"include_payload": false
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-check-generation-status-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_check_generation_status",
"arguments": {
"generation_id": "generation_id_123",
"include_payload": false
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"data": {
"status": "COMPLETE"
},
"error": null
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}