Skip to main content

Leonardo Get Generations By User Id

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READleonardo-ai.leonardo_get_generations_by_user_id
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: leonardo-ai-2026.07.12.1
  • Descriptor hash: b0d993b0cab1446545f3ca216657f8cb17f47f4ac356d3806e9f2d30c351cbc8

Use this to call Leonardo.Ai Image endpoint GET /generations/user/{userId}. List generations for a user. Contacts Leonardo.Ai using the BYOK x-leonardo-api-key portal header. Provide path_params for: userId. Returns a compact, sanitized provider response.

Request Body

{
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-get-generations-by-user-id-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_get_generations_by_user_id",
"arguments": {
"body": "",
"query": "",
"confirm": false,
"path_params": "",
"query_params": "",
"request_body": ""
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"body": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "JSON request body for the Leonardo endpoint. Use provider parameter names exactly, including casing such as `modelId`, `num_images`, or `init_image_id`."
},
"query": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Query string parameters for the Leonardo endpoint. Omit when unused."
},
"confirm": {
"type": "boolean",
"default": false,
"description": "Must be true for destructive DELETE tools. Ignored for non-destructive tools."
},
"path_params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Values for path placeholders in the endpoint path, such as `{'id': '...'}` or `{'datasetId': '...'}`. Omit when the endpoint has no placeholders."
},
"query_params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Query string parameters for the Leonardo endpoint. Omit when unused."
},
"request_body": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "JSON request body for the Leonardo endpoint. Use provider parameter names exactly, including casing such as `modelId`, `num_images`, or `init_image_id`."
}
},
"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 -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-get-generations-by-user-id-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_get_generations_by_user_id",
"arguments": {
"body": "",
"query": "",
"confirm": false,
"path_params": "",
"query_params": "",
"request_body": ""
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool leonardo-ai.leonardo_get_generations_by_user_id executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}