{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trendswap-app/json-schema/trendswap-app-mcp-rpc-request-schema.json",
  "title": "McpRpcRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trendswap-app-openapi.json#/components/schemas/McpRpcRequest",
  "type": "object",
  "required": [
    "jsonrpc",
    "id",
    "method"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string"
    },
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "method": {
      "type": "string",
      "enum": [
        "tools/list",
        "tools/call",
        "initialize"
      ]
    },
    "params": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "enum": [
            "list_templates",
            "get_credits_balance",
            "create_generation_job",
            "get_job_status"
          ]
        },
        "arguments": {
          "type": "object",
          "properties": {
            "template": {
              "type": "string"
            },
            "image_url": {
              "type": "string",
              "format": "uri"
            },
            "portrait_id": {
              "type": "string"
            },
            "resolution": {
              "type": "string",
              "enum": [
                "480p",
                "720p",
                "1080p"
              ],
              "default": "480p"
            },
            "format": {
              "type": "string",
              "enum": [
                "vertical",
                "horizontal"
              ],
              "default": "vertical"
            },
            "idempotency_key": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}