{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "iq.leanrads.com",
    "site": "leanrads.com",
    "addresses": [
      {
        "address": "18.67.65.83",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "18.67.64.0/21",
          "country": "US"
        }
      },
      {
        "address": "18.67.65.122",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "18.67.64.0/21",
          "country": "US"
        }
      },
      {
        "address": "18.67.65.109",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "18.67.64.0/21",
          "country": "US"
        }
      },
      {
        "address": "18.67.65.64",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "18.67.64.0/21",
          "country": "US"
        }
      },
      {
        "address": "2600:9000:2269:fa00:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "prefix": "2600:9000:2269::/48",
          "country": "US",
          "name": "AMAZON-02 - Amazon.com, Inc."
        }
      },
      {
        "address": "2600:9000:2269:d600:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "prefix": "2600:9000:2269::/48",
          "country": "US",
          "name": "AMAZON-02 - Amazon.com, Inc."
        }
      },
      {
        "address": "2600:9000:2269:f000:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "prefix": "2600:9000:2269::/48",
          "country": "US",
          "name": "AMAZON-02 - Amazon.com, Inc."
        }
      },
      {
        "address": "2600:9000:2269:2800:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "prefix": "2600:9000:2269::/48",
          "country": "US",
          "name": "AMAZON-02 - Amazon.com, Inc."
        }
      },
      {
        "address": "2600:9000:2269:de00:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2600:9000:2269:4e00:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2600:9000:2269:e200:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2600:9000:2269:b600:1e:6f5e:73c0:93a1",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "18.67.65.83",
          "18.67.65.122",
          "18.67.65.109",
          "18.67.65.64",
          "2600:9000:2269:fa00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:d600:1e:6f5e:73c0:93a1",
          "2600:9000:2269:f000:1e:6f5e:73c0:93a1",
          "2600:9000:2269:2800:1e:6f5e:73c0:93a1",
          "2600:9000:2269:de00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:4e00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:e200:1e:6f5e:73c0:93a1",
          "2600:9000:2269:b600:1e:6f5e:73c0:93a1"
        ],
        "first_seen": "2026-11-22T20:19:01.742Z",
        "last_seen": "2026-11-22T20:19:01.742Z",
        "checks": 1
      },
      {
        "addresses": [
          "18.67.65.109",
          "18.67.65.83",
          "18.67.65.64",
          "18.67.65.122",
          "2600:9000:2269:9e00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:7c00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:7e00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:9c00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:5a00:1e:6f5e:73c0:93a1",
          "2600:9000:2269:6200:1e:6f5e:73c0:93a1",
          "2600:9000:2269:2400:1e:6f5e:73c0:93a1",
          "2600:9000:2269:de00:1e:6f5e:73c0:93a1"
        ],
        "first_seen": "2026-11-21T16:08:02.150Z",
        "last_seen": "2026-11-21T16:08:02.150Z",
        "checks": 1
      }
    ],
    "hosting": [],
    "software": [],
    "server_info": {
      "name": "leanriq-agent-gateway",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {},
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "39339",
          "url": "https://mcp.smarterweather.com/",
          "server_name": "io.github.smarterweather/weather",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T17:08:00.779Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.leanrads",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/leanrads/LeanrIQ",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "31363",
    "server_name": "io.github.leanrads/leanriq",
    "url": "https://iq.leanrads.com/mcp",
    "host": "iq.leanrads.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T20:19:01.742Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "ae29b2f2b88b2c0c288448926680767040d5d22a27ec8eda1fc08929913f2379",
    "first_listed_at": "2026-11-21T16:08:02.150Z",
    "created_at": "2026-11-21T10:10:09.329Z",
    "resolved_addresses": [
      "18.67.65.83",
      "18.67.65.122",
      "18.67.65.109",
      "18.67.65.64",
      "2600:9000:2269:fa00:1e:6f5e:73c0:93a1",
      "2600:9000:2269:d600:1e:6f5e:73c0:93a1",
      "2600:9000:2269:f000:1e:6f5e:73c0:93a1",
      "2600:9000:2269:2800:1e:6f5e:73c0:93a1",
      "2600:9000:2269:de00:1e:6f5e:73c0:93a1",
      "2600:9000:2269:4e00:1e:6f5e:73c0:93a1",
      "2600:9000:2269:e200:1e:6f5e:73c0:93a1",
      "2600:9000:2269:b600:1e:6f5e:73c0:93a1"
    ]
  },
  "server": {
    "name": "io.github.leanrads/leanriq",
    "title": "LeanrIQ",
    "description": "Creative-intelligence MCP for campaign strategy, ad builds, QA, and reporting.",
    "version": "1.0.1",
    "registry_status": "active",
    "repository_url": "https://github.com/leanrads/LeanrIQ",
    "website_url": "https://github.com/leanrads/leanriq-mcp-docs",
    "published_at": "2026-08-12T08:24:28.926Z",
    "updated_at": "2026-08-12T08:24:28.926Z",
    "first_seen": "2026-11-21T10:10:08.734Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "runs-agents",
      "trades"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:35:14.540Z"
  },
  "operator": {
    "key": "leanrads.com",
    "name": "leanrads.com",
    "platform": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1983,
    "first_check_in_window": "2026-11-21T16:08:02.150Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "ae29b2f2b88b2c0c288448926680767040d5d22a27ec8eda1fc08929913f2379",
    "tools": 137,
    "resources": 22,
    "prompts": 15,
    "first_seen": "2026-11-21T16:08:04.166Z",
    "tool_names": [
      "get_current_user",
      "list_accessible_seats",
      "get_current_seat",
      "get_permissions",
      "get_capabilities",
      "get_leanriq_capabilities",
      "get_media_buy_delivery",
      "list_advertisers",
      "get_advertiser",
      "create_advertiser",
      "update_advertiser",
      "archive_advertiser",
      "get_brand_profile",
      "refresh_brand_profile",
      "get_brand_visuals",
      "refresh_brand_visuals",
      "list_competitors",
      "run_competitor_intelligence",
      "get_competitor_intelligence",
      "list_competitor_evidence",
      "run_creative_intelligence",
      "get_creative_intelligence_run",
      "get_creative_intelligence",
      "create_creative_intelligence_plan",
      "get_world_activation_evidence",
      "get_world_research_profile",
      "get_world_research_summary",
      "get_world_research_events",
      "get_world_research_event",
      "get_world_research_mentions",
      "get_world_research_insights",
      "get_world_research_proposal",
      "get_world_research_decision",
      "get_world_research_question",
      "build_world_research_profile",
      "record_world_research_feedback",
      "run_world_intelligence",
      "get_world_intelligence",
      "list_world_signals",
      "list_world_opportunities",
      "get_world_opportunity",
      "get_vertical_intelligence",
      "list_campaigns",
      "get_campaign",
      "create_campaign",
      "update_campaign",
      "archive_campaign",
      "select_world_opportunity_for_campaign",
      "create_creative_brief",
      "create_production_plan",
      "build_videoad",
      "qa_creative",
      "run_creative_chain",
      "launch_creative_campaign",
      "promote_creative_workspace",
      "list_creatives",
      "get_creative",
      "build_ad",
      "build_creative_os",
      "build_dooh",
      "build_campaign_creative_set",
      "revise_creative",
      "export_creative",
      "clone_creative",
      "create_creative_version",
      "list_creative_versions",
      "restore_creative_version",
      "archive_creative",
      "list_templates",
      "get_template",
      "list_assets",
      "get_asset",
      "generate_preview_links",
      "get_preview_link",
      "create_flight",
      "get_flight",
      "list_flights",
      "update_flight",
      "delete_flight",
      "validate_flight",
      "preview_trafficking_output",
      "traffick_creative",
      "traffick_flight",
      "retraffick_creative",
      "retraffick_flight",
      "push_flight_to_yahoo",
      "get_adserver_tag",
      "generate_adserver_tag",
      "get_trafficked_assets",
      "export_trafficked_assets",
      "get_task",
      "list_tasks",
      "cancel_task",
      "retry_task",
      "provide_performance_feedback",
      "leanriq_run_creative_intelligence",
      "leanriq_get_creative_intelligence_run",
      "leanriq_get_creative_intelligence"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_current_user",
          "title": "get current user",
          "description": "get current user. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_accessible_seats",
          "title": "list accessible seats",
          "description": "list accessible seats. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_current_seat",
          "title": "get current seat",
          "description": "get current seat. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_permissions",
          "title": "get permissions",
          "description": "get permissions. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_capabilities",
          "title": "get capabilities",
          "description": "get capabilities. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "includeHidden": {
                "type": "boolean"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_leanriq_capabilities",
          "title": "Describe the LeanrIQ outcomes available to this caller, its current capability profile, safe starting action, and effective build/Studio/publish boundaries. This is concise discovery, not a raw tool-registry dump.",
          "description": "Describe the LeanrIQ outcomes available to this caller, its current capability profile, safe starting action, and effective build/Studio/publish boundaries. This is concise discovery, not a raw tool-registry dump.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_media_buy_delivery",
          "title": "AdCP-standard media-buy delivery reporting.",
          "description": "AdCP-standard media-buy delivery reporting.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "media_buy_ids"
            ],
            "properties": {
              "ext": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "account": {
                "type": "object",
                "required": [
                  "account_id"
                ],
                "properties": {
                  "account_id": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "context": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "end_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "start_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "adcp_version": {
                "type": "string"
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "media_buy_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                },
                "minItems": 1
              },
              "status_filter": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "minItems": 1
                  }
                ]
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "time_granularity": {
                "enum": [
                  "hourly",
                  "daily",
                  "weekly",
                  "monthly"
                ],
                "type": "string"
              },
              "attribution_window": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "reporting_dimensions": {
                "type": "object",
                "properties": {
                  "geo": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "audience": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "placement": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "device_type": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "device_platform": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "include_window_breakdown": {
                "type": "boolean"
              },
              "include_package_daily_breakdown": {
                "type": "boolean"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_advertisers",
          "title": "list advertisers",
          "description": "list advertisers. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_advertiser",
          "title": "get advertiser",
          "description": "get advertiser. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_advertiser",
          "title": "create advertiser",
          "description": "create advertiser. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "idempotencyKey",
              "advertiser"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiser": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253,
                    "minLength": 1
                  },
                  "status": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "websiteUrl": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  }
                },
                "additionalProperties": {}
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_advertiser",
          "title": "update advertiser",
          "description": "update advertiser. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "idempotencyKey",
              "advertiserId",
              "patch"
            ],
            "properties": {
              "patch": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253,
                    "minLength": 1
                  },
                  "status": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "websiteUrl": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  }
                },
                "additionalProperties": {}
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "archive_advertiser",
          "title": "archive advertiser",
          "description": "archive advertiser. Classification: writes to Studio, destructive. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "advertiserId"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "resourceId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_brand_profile",
          "title": "Research and return a LeanrIQ brand profile. This read capability does not save to Studio.",
          "description": "Research and return a LeanrIQ brand profile. This read capability does not save to Studio.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "brandName",
              "brandUrl"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "brandUrl": {
                "type": "string",
                "format": "uri",
                "maxLength": 500
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "brandName": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "forceRefresh": {
                "type": "boolean",
                "default": false
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "competitorLimit": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 5
                  },
                  {
                    "type": "number",
                    "const": 8
                  }
                ]
              },
              "requestedSections": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 80,
                  "minLength": 1
                },
                "maxItems": 32
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "refresh_brand_profile",
          "title": "Refresh and save a standalone Studio advertiser brand profile.",
          "description": "Refresh and save a standalone Studio advertiser brand profile.. Classification: writes to Studio, creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "brandName",
              "brandUrl",
              "advertiserId",
              "accountId",
              "idempotencyKey"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "brandUrl": {
                "type": "string",
                "format": "uri",
                "maxLength": 500
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "brandName": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "forceRefresh": {
                "type": "boolean",
                "default": false
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "competitorLimit": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 5
                  },
                  {
                    "type": "number",
                    "const": 8
                  }
                ]
              },
              "requestedSections": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 80,
                  "minLength": 1
                },
                "maxItems": 32
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_brand_visuals",
          "title": "Collect brand logos, imagery, colours, fonts, and visual previews for use in Studio creative builds. Use this before build_ad when a campaign needs visual grounding; this read capability does not save to Studio.",
          "description": "Collect brand logos, imagery, colours, fonts, and visual previews for use in Studio creative builds. Use this before build_ad when a campaign needs visual grounding; this read capability does not save to Studio.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "brandName",
              "websiteUrl"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "options": {
                "type": "object",
                "default": {},
                "properties": {
                  "maxFonts": {
                    "type": "integer",
                    "default": 10,
                    "maximum": 30,
                    "minimum": 0
                  },
                  "maxLogos": {
                    "type": "integer",
                    "default": 5,
                    "maximum": 20,
                    "minimum": 0
                  },
                  "maxImages": {
                    "type": "integer",
                    "default": 60,
                    "maximum": 80,
                    "minimum": 0
                  },
                  "maxVideos": {
                    "type": "integer",
                    "default": 12,
                    "maximum": 30,
                    "minimum": 0
                  },
                  "fetchFonts": {
                    "type": "boolean",
                    "default": true
                  },
                  "fetchLogos": {
                    "type": "boolean",
                    "default": true
                  },
                  "useBrowser": {
                    "type": "boolean",
                    "default": true
                  },
                  "extractCtas": {
                    "type": "boolean",
                    "default": true
                  },
                  "fetchImages": {
                    "type": "boolean",
                    "default": true
                  },
                  "fetchVideos": {
                    "type": "boolean",
                    "default": true
                  },
                  "scrapeSocial": {
                    "type": "boolean",
                    "default": true
                  },
                  "extractColours": {
                    "type": "boolean",
                    "default": true
                  },
                  "maxScreenshots": {
                    "type": "integer",
                    "default": 0,
                    "maximum": 2,
                    "minimum": 0
                  },
                  "maxSocialImages": {
                    "type": "integer",
                    "default": 30,
                    "maximum": 40,
                    "minimum": 0
                  },
                  "fetchScreenshots": {
                    "type": "boolean",
                    "default": false
                  },
                  "maxAiGeneratedImages": {
                    "type": "integer",
                    "default": 6,
                    "maximum": 6,
                    "minimum": 0
                  },
                  "socialLookbackMonths": {
                    "type": "integer",
                    "default": 3,
                    "maximum": 3,
                    "minimum": 1
                  },
                  "includeAiGeneratedImages": {
                    "type": "boolean",
                    "default": false
                  }
                }
              },
              "storage": {
                "type": "object",
                "default": {},
                "properties": {
                  "bucket": {
                    "type": "string",
                    "minLength": 1
                  },
                  "prefix": {
                    "type": "string"
                  },
                  "cdnBaseUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "brandName": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "websiteUrl": {
                "type": "string",
                "format": "uri",
                "maxLength": 1000
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "refresh_brand_visuals",
          "title": "refresh brand visuals",
          "description": "refresh brand visuals. Classification: writes to Studio, creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "brandName",
              "websiteUrl",
              "accountId",
              "idempotencyKey"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "options": {
                "type": "object",
                "default": {},
                "properties": {
                  "maxFonts": {
                    "type": "integer",
                    "default": 10,
                    "maximum": 30,
                    "minimum": 0
                  },
                  "maxLogos": {
                    "type": "integer",
                    "default": 5,
                    "maximum": 20,
                    "minimum": 0
                  },
                  "maxImages": {
                    "type": "integer",
                    "default": 60,
                    "maximum": 80,
                    "minimum": 0
                  },
                  "maxVideos": {
                    "type": "integer",
                    "default": 12,
                    "maximum": 30,
                    "minimum": 0
                  },
                  "fetchFonts": {
                    "type": "boolean",
                    "default": true
                  },
                  "fetchLogos": {
                    "type": "boolean",
                    "default": true
                  },
                  "useBrowser": {
                    "type": "boolean",
                    "default": true
                  },
                  "extractCtas": {
                    "type": "boolean",
                    "default": true
                  },
                  "fetchImages": {
                    "type": "boolean",
                    "default": true
                  },
                  "fetchVideos": {
                    "type": "boolean",
                    "default": true
                  },
                  "scrapeSocial": {
                    "type": "boolean",
                    "default": true
                  },
                  "extractColours": {
                    "type": "boolean",
                    "default": true
                  },
                  "maxScreenshots": {
                    "type": "integer",
                    "default": 0,
                    "maximum": 2,
                    "minimum": 0
                  },
                  "maxSocialImages": {
                    "type": "integer",
                    "default": 30,
                    "maximum": 40,
                    "minimum": 0
                  },
                  "fetchScreenshots": {
                    "type": "boolean",
                    "default": false
                  },
                  "maxAiGeneratedImages": {
                    "type": "integer",
                    "default": 6,
                    "maximum": 6,
                    "minimum": 0
                  },
                  "socialLookbackMonths": {
                    "type": "integer",
                    "default": 3,
                    "maximum": 3,
                    "minimum": 1
                  },
                  "includeAiGeneratedImages": {
                    "type": "boolean",
                    "default": false
                  }
                }
              },
              "storage": {
                "type": "object",
                "default": {},
                "properties": {
                  "bucket": {
                    "type": "string",
                    "minLength": 1
                  },
                  "prefix": {
                    "type": "string"
                  },
                  "cdnBaseUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "brandName": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "websiteUrl": {
                "type": "string",
                "format": "uri",
                "maxLength": 1000
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_competitors",
          "title": "list competitors",
          "description": "list competitors. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "run_competitor_intelligence",
          "title": "Run canonical LeanrIQ Competitor Intelligence V2 for one advertiser-scoped competitor. Defaults match Studio: 90-day DISPLAY evidence and no mixed social/video banner inference. Without forceRefresh, an existing canonical result is reused when available.",
          "description": "Run canonical LeanrIQ Competitor Intelligence V2 for one advertiser-scoped competitor. Defaults match Studio: 90-day DISPLAY evidence and no mixed social/video banner inference. Without forceRefresh, an existing canonical result is reused when available.. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 48,
                "minimum": 1
              },
              "domain": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "market": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              },
              "region": {
                "type": "string",
                "maxLength": 16,
                "minLength": 2
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "markets": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              },
              "website": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "brandName": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "competitorId": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "evidenceMode": {
                "enum": [
                  "DISPLAY",
                  "CROSS_CHANNEL",
                  "BOTH"
                ],
                "type": "string",
                "default": "DISPLAY"
              },
              "forceRefresh": {
                "type": "boolean",
                "default": false
              },
              "lookbackDays": {
                "type": "integer",
                "default": 90,
                "maximum": 730,
                "minimum": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "strategyMode": {
                "enum": [
                  "REPLICATE",
                  "DIFFERENTIATE",
                  "BOTH"
                ],
                "type": "string",
                "default": "BOTH"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "evidenceLimit": {
                "type": "integer",
                "maximum": 48,
                "minimum": 1
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "strategyModes": {
                "type": "array",
                "items": {
                  "enum": [
                    "REPLICATE",
                    "DIFFERENTIATE"
                  ],
                  "type": "string"
                },
                "maxItems": 2
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "competitorName": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "competitorDomain": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "competitorWebsite": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "crossChannelLimit": {
                "type": "integer",
                "maximum": 120,
                "minimum": 1
              },
              "recommendationMode": {
                "enum": [
                  "FULL",
                  "EVIDENCE_ONLY"
                ],
                "type": "string",
                "default": "FULL"
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "competitorKeyMessages": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 300,
                  "minLength": 1
                },
                "maxItems": 8
              },
              "competitorPositioning": {
                "type": "string",
                "maxLength": 1200,
                "minLength": 1
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "advertiserGuidanceSnapshot": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_competitor_intelligence",
          "title": "Read saved canonical LeanrIQ Competitor Intelligence V2 for an advertiser-scoped competitor. This does not reacquire evidence or generate new recommendations.",
          "description": "Read saved canonical LeanrIQ Competitor Intelligence V2 for an advertiser-scoped competitor. This does not reacquire evidence or generate new recommendations.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "website": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "reportId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "competitorId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "competitorName": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "includeEvidence": {
                "type": "boolean",
                "default": false
              },
              "competitorDomain": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_competitor_evidence",
          "title": "List qualified display evidence from saved canonical LeanrIQ Competitor Intelligence V2. Cross-channel inspiration is not mixed into DISPLAY evidence.",
          "description": "List qualified display evidence from saved canonical LeanrIQ Competitor Intelligence V2. Cross-channel inspiration is not mixed into DISPLAY evidence.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 24,
                "maximum": 50,
                "exclusiveMinimum": 0
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "website": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "reportId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "competitorId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "competitorName": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "includeEvidence": {
                "type": "boolean",
                "default": true
              },
              "competitorDomain": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "run_creative_intelligence",
          "title": "Synthesize grounded, deduplicated advertiser creative opportunities from automatic competitor/category research and broad World signals. Returns a durable run ID and honest partial states; creates no campaign or publication.",
          "description": "Synthesize grounded, deduplicated advertiser creative opportunities from automatic competitor/category research and broad World signals. Returns a durable run ID and honest partial states; creates no campaign or publication.. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "idempotencyKey"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_creative_intelligence_run",
          "title": "Read an exact durable intelligence run, including stage, terminal state and retry metadata.",
          "description": "Read an exact durable intelligence run, including stage, terminal state and retry metadata.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "runId"
            ],
            "properties": {
              "runId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_creative_intelligence",
          "title": "Read saved advertiser creative opportunities and source provenance.",
          "description": "Read saved advertiser creative opportunities and source provenance.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_creative_intelligence_plan",
          "title": "Create a concise proposed campaign plan from one grounded opportunity. Studio approval is required before campaign creation.",
          "description": "Create a concise proposed campaign plan from one grounded opportunity. Studio approval is required before campaign creation.. Classification: read-only. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "opportunityId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_activation_evidence",
          "title": "Read scoped verified event attestations for Studio approval and activation; no publication authority.",
          "description": "Read scoped verified event attestations for Studio approval and activation; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "eventIds"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 10,
                "minItems": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_profile",
          "title": "Read advertiser-scoped World Intelligence V3 profile with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 profile with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_summary",
          "title": "Read advertiser-scoped World Intelligence V3 summary with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 summary with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_events",
          "title": "Read advertiser-scoped World Intelligence V3 events with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 events with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_event",
          "title": "Read advertiser-scoped World Intelligence V3 event with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 event with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_mentions",
          "title": "Read advertiser-scoped World Intelligence V3 mentions with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 mentions with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_insights",
          "title": "Read advertiser-scoped World Intelligence V3 insights with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 insights with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_proposal",
          "title": "Read advertiser-scoped World Intelligence V3 proposal with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 proposal with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_decision",
          "title": "Read advertiser-scoped World Intelligence V3 decision with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 decision with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_research_question",
          "title": "Read advertiser-scoped World Intelligence V3 question with evidence; no publication authority.",
          "description": "Read advertiser-scoped World Intelligence V3 question with evidence; no publication authority.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "entity": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "build_world_research_profile",
          "title": "Build a versioned advertiser research graph from configured identity and approved context.",
          "description": "Build a versioned advertiser research graph from configured identity and approved context.. Classification: read-only. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "advertiserContext": {
                "type": "object",
                "default": {},
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 180,
                    "minLength": 1
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "maxLength": 180,
                          "minLength": 1
                        },
                        "aliases": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 180,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 12
                        },
                        "markets": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 80,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 20
                        },
                        "products": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 300,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 20
                        },
                        "verified": {
                          "type": "boolean",
                          "default": false
                        },
                        "officialDomain": {
                          "type": "string",
                          "maxLength": 240,
                          "minLength": 1
                        },
                        "negativeAliases": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 180,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 12
                        }
                      },
                      "additionalProperties": false
                    },
                    "default": [],
                    "maxItems": 12
                  },
                  "market": {
                    "type": "string",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  "aliases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 180,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 12
                  },
                  "category": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "products": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 20
                  },
                  "services": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 20
                  },
                  "vertical": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "wordsToUse": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "competitors": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "creativeDos": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "ctaGuidance": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "keyMessages": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "seasonality": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "toneOfVoice": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "brandSummary": {
                    "type": "string",
                    "maxLength": 1600,
                    "minLength": 1
                  },
                  "propositions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 20
                  },
                  "approvedFacts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 30
                  },
                  "creativeDonts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "parentCompany": {
                    "type": "object",
                    "required": [
                      "name"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 160,
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 180,
                        "minLength": 1
                      },
                      "aliases": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 180,
                          "minLength": 1
                        },
                        "default": [],
                        "maxItems": 12
                      },
                      "markets": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 80,
                          "minLength": 1
                        },
                        "default": [],
                        "maxItems": 20
                      },
                      "products": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 300,
                          "minLength": 1
                        },
                        "default": [],
                        "maxItems": 20
                      },
                      "verified": {
                        "type": "boolean",
                        "default": false
                      },
                      "officialDomain": {
                        "type": "string",
                        "maxLength": 240,
                        "minLength": 1
                      },
                      "negativeAliases": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 180,
                          "minLength": 1
                        },
                        "default": [],
                        "maxItems": 12
                      }
                    },
                    "additionalProperties": false
                  },
                  "wordsToNotUse": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "approvedClaims": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 30
                  },
                  "approvedOffers": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 12
                  },
                  "officialDomain": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "priorityTopics": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 180,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 20
                  },
                  "researchImages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "assetId",
                        "label",
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "maxLength": 1800
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 220,
                          "minLength": 1
                        },
                        "assetId": {
                          "type": "string",
                          "maxLength": 160,
                          "minLength": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 16
                  },
                  "targetAudience": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "campaignContext": {
                    "type": "object",
                    "properties": {
                      "brief": {
                        "type": "string",
                        "maxLength": 1200,
                        "minLength": 1
                      },
                      "market": {
                        "type": "string",
                        "maxLength": 80,
                        "minLength": 1
                      },
                      "audience": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 300,
                          "minLength": 1
                        },
                        "default": [],
                        "maxItems": 12
                      },
                      "strategy": {
                        "type": "string",
                        "maxLength": 900,
                        "minLength": 1
                      },
                      "objective": {
                        "type": "string",
                        "maxLength": 300,
                        "minLength": 1
                      },
                      "flightDates": {
                        "type": "string",
                        "maxLength": 160,
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "negativeAliases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 180,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 12
                  },
                  "approvedBenefits": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 20
                  },
                  "approvedGuidance": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 30
                  },
                  "brandPositioning": {
                    "type": "string",
                    "maxLength": 1200,
                    "minLength": 1
                  },
                  "contextualTopics": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 180,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 12
                  },
                  "currentCampaigns": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "default": [],
                    "maxItems": 12
                  },
                  "brandIntelligence": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "competitorIdentities": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "maxLength": 180,
                          "minLength": 1
                        },
                        "aliases": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 180,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 12
                        },
                        "markets": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 80,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 20
                        },
                        "products": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 300,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 20
                        },
                        "verified": {
                          "type": "boolean",
                          "default": false
                        },
                        "officialDomain": {
                          "type": "string",
                          "maxLength": 240,
                          "minLength": 1
                        },
                        "negativeAliases": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 180,
                            "minLength": 1
                          },
                          "default": [],
                          "maxItems": 12
                        }
                      },
                      "additionalProperties": false
                    },
                    "default": [],
                    "maxItems": 16
                  }
                },
                "additionalProperties": false
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "record_world_research_feedback",
          "title": "Record reviewed relevance or decision feedback without changing approval or safety constraints.",
          "description": "Record reviewed relevance or decision feedback without changing approval or safety constraints.. Classification: read-only. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "eventId",
              "outcome"
            ],
            "properties": {
              "reason": {
                "type": "string",
                "default": "",
                "maxLength": 600
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "eventId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "outcome": {
                "enum": [
                  "RELEVANT",
                  "DISMISSED",
                  "APPROVED",
                  "ACTIVATED",
                  "OVERRIDDEN",
                  "EXPIRED",
                  "CORRECTED"
                ],
                "type": "string"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "run_world_intelligence",
          "title": "Run bounded, current World Intelligence for one authorised advertiser. It returns source-backed external context and creative opportunities; evidence may be partial and it never publishes or activates creative.",
          "description": "Run bounded, current World Intelligence for one authorised advertiser. It returns source-backed external context and creative opportunities; evidence may be partial and it never publishes or activates creative.. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: preserve_qualified_evidence_and_signals. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "truncated": true,
            "chars": 22204
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_intelligence",
          "title": "Get the latest advertiser World Intelligence summary. It is fresh, source-backed context that may be partial; opportunities are recommendations and this never publishes creative.",
          "description": "Get the latest advertiser World Intelligence summary. It is fresh, source-backed context that may be partial; opportunities are recommendations and this never publishes creative.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "runId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_world_signals",
          "title": "List active, source-provenanced World Intelligence signals for one authorised advertiser. This is current contextual intelligence, not a general-purpose news search.",
          "description": "List active, source-provenanced World Intelligence signals for one authorised advertiser. This is current contextual intelligence, not a general-purpose news search.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_world_opportunities",
          "title": "List active World Intelligence creative opportunities for one authorised advertiser. Opportunities are human-review recommendations and never publish creative.",
          "description": "List active World Intelligence creative opportunities for one authorised advertiser. Opportunities are human-review recommendations and never publish creative.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_world_opportunity",
          "title": "Get one active or historical World Intelligence opportunity and its compact provenance in the selected advertiser scope. It does not publish creative.",
          "description": "Get one active or historical World Intelligence opportunity and its compact provenance in the selected advertiser scope. It does not publish creative.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "opportunityId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_vertical_intelligence",
          "title": "get vertical intelligence",
          "description": "get vertical intelligence. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "brief": {},
              "force": {
                "type": "boolean"
              },
              "input": {},
              "assets": {},
              "prompt": {
                "type": "string"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string"
              },
              "assetId": {
                "type": "string"
              },
              "outputs": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "editable"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "static"
                        },
                        "format": {
                          "enum": [
                            "jpeg",
                            "png"
                          ],
                          "type": "string"
                        },
                        "quality": {
                          "type": "integer",
                          "maximum": 100,
                          "minimum": 1
                        },
                        "maxBytes": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "enum": [
                        "editable",
                        "static_jpeg",
                        "static_png"
                      ],
                      "type": "string"
                    }
                  ]
                },
                "maxItems": 8,
                "description": "Optional editable/static JPEG/PNG delivery requirements. Studio persistence is required for static output."
              },
              "audience": {},
              "campaign": {},
              "creative": {},
              "flightId": {
                "type": "string"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "template": {},
              "accountId": {
                "type": "string"
              },
              "objective": {
                "type": "string"
              },
              "advertiser": {},
              "campaignId": {
                "type": "string"
              },
              "creativeId": {
                "type": "string"
              },
              "templateId": {
                "type": "string"
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "persistence": {
                "enum": [
                  "preview_only",
                  "save_to_studio"
                ],
                "type": "string"
              },
              "advertiserId": {
                "type": "string"
              },
              "instructions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string"
              },
              "requestedFormats": {
                "type": "array",
                "items": {}
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "skipTraffickedRebuild": {
                "type": "boolean"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_campaigns",
          "title": "list campaigns",
          "description": "list campaigns. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_campaign",
          "title": "get campaign",
          "description": "get campaign. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. Campaign metadata only. Studio aiActivation/adBuild fields describe workflow or progress state, not saved creative inventory, and must never be used to infer whether creatives exist or how many are saved. If the user asks for creatives or creative inventory for a known campaignId, call list_creatives directly; do not preflight get_campaign.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "campaignId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_campaign",
          "title": "Create a Studio campaign. Put all campaign fields inside campaign. Map natural-language requests such as \"called\" to campaignName, awareness/consideration/conversion to funnelStage, impression goals to targetImpressions, Social delivery goals to socialImpressions, and KPI labels to primaryKpi or sec",
          "description": "Create a Studio campaign. Put all campaign fields inside campaign. Map natural-language requests such as \"called\" to campaignName, awareness/consideration/conversion to funnelStage, impression goals to targetImpressions, Social delivery goals to socialImpressions, and KPI labels to primaryKpi or secondaryKpi.. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "idempotencyKey",
              "campaign"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "campaign": {
                "type": "object",
                "required": [
                  "advertiserId"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "budget": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "string",
                        "maxLength": 40,
                        "minLength": 1
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "endDate": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "objective": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  },
                  "startDate": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "primaryKpi": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "funnelStage": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "advertiserId": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "campaignName": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "secondaryKpi": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "creativeBrief": {
                    "type": "string",
                    "maxLength": 8000,
                    "minLength": 1
                  },
                  "requiredSizes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40,
                      "minLength": 1
                    },
                    "maxItems": 24
                  },
                  "preferredSizes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40,
                      "minLength": 1
                    },
                    "maxItems": 24
                  },
                  "supportedSizes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40,
                      "minLength": 1
                    },
                    "maxItems": 24
                  },
                  "targetAudience": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  },
                  "socialImpressions": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "string",
                        "maxLength": 40,
                        "minLength": 1
                      }
                    ]
                  },
                  "targetImpressions": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "string",
                        "maxLength": 40,
                        "minLength": 1
                      }
                    ]
                  }
                },
                "additionalProperties": {}
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_campaign",
          "title": "Update a Studio campaign. Use the canonical campaign fields inside patch, including campaignName, funnelStage, targetImpressions, socialImpressions, primaryKpi, and secondaryKpi when those values are being changed.",
          "description": "Update a Studio campaign. Use the canonical campaign fields inside patch, including campaignName, funnelStage, targetImpressions, socialImpressions, primaryKpi, and secondaryKpi when those values are being changed.. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "idempotencyKey",
              "campaignId",
              "patch"
            ],
            "properties": {
              "patch": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "budget": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "string",
                        "maxLength": 40,
                        "minLength": 1
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "endDate": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "objective": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  },
                  "startDate": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "primaryKpi": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "funnelStage": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "advertiserId": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "campaignName": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "secondaryKpi": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "creativeBrief": {
                    "type": "string",
                    "maxLength": 8000,
                    "minLength": 1
                  },
                  "requiredSizes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40,
                      "minLength": 1
                    },
                    "maxItems": 24
                  },
                  "preferredSizes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40,
                      "minLength": 1
                    },
                    "maxItems": 24
                  },
                  "supportedSizes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40,
                      "minLength": 1
                    },
                    "maxItems": 24
                  },
                  "targetAudience": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  },
                  "socialImpressions": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "string",
                        "maxLength": 40,
                        "minLength": 1
                      }
                    ]
                  },
                  "targetImpressions": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "string",
                        "maxLength": 40,
                        "minLength": 1
                      }
                    ]
                  }
                },
                "additionalProperties": {}
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "archive_campaign",
          "title": "archive campaign",
          "description": "archive campaign. Classification: writes to Studio, destructive. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "campaignId"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "resourceId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "select_world_opportunity_for_campaign",
          "title": "Explicitly select one reviewed, source-provenanced World Intelligence opportunity for an authorised Studio campaign. Studio performs the same campaign authorization, scoped LeanrIQ lookup, and persistence path as the UI. This does not materialise a feed, create creative, traffic, or publish.",
          "description": "Explicitly select one reviewed, source-provenanced World Intelligence opportunity for an authorised Studio campaign. Studio performs the same campaign authorization, scoped LeanrIQ lookup, and persistence path as the UI. This does not materialise a feed, create creative, traffic, or publish.. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "campaignId",
              "opportunityId",
              "idempotencyKey"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "opportunityId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_creative_brief",
          "title": "Generate Studio-ready design briefs for one or more creatives, using campaign context, brand rules, audience, offer, and format constraints. When creative IDs and saveToStudio are supplied, LeanrIQ saves only when the caller has Studio write permission; otherwise it returns a non-destructive proposa",
          "description": "Generate Studio-ready design briefs for one or more creatives, using campaign context, brand rules, audience, offer, and format constraints. When creative IDs and saveToStudio are supplied, LeanrIQ saves only when the caller has Studio write permission; otherwise it returns a non-destructive proposal.. Classification: writes to Studio, creates billable AI usage. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "brief": {},
              "force": {
                "type": "boolean"
              },
              "input": {},
              "assets": {},
              "prompt": {
                "type": "string"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string"
              },
              "assetId": {
                "type": "string"
              },
              "outputs": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "editable"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "static"
                        },
                        "format": {
                          "enum": [
                            "jpeg",
                            "png"
                          ],
                          "type": "string"
                        },
                        "quality": {
                          "type": "integer",
                          "maximum": 100,
                          "minimum": 1
                        },
                        "maxBytes": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "enum": [
                        "editable",
                        "static_jpeg",
                        "static_png"
                      ],
                      "type": "string"
                    }
                  ]
                },
                "maxItems": 8,
                "description": "Optional editable/static JPEG/PNG delivery requirements. Studio persistence is required for static output."
              },
              "audience": {},
              "campaign": {},
              "creative": {},
              "flightId": {
                "type": "string"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "template": {},
              "accountId": {
                "type": "string"
              },
              "objective": {
                "type": "string"
              },
              "advertiser": {},
              "campaignId": {
                "type": "string"
              },
              "creativeId": {
                "type": "string"
              },
              "templateId": {
                "type": "string"
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "persistence": {
                "enum": [
                  "preview_only",
                  "save_to_studio"
                ],
                "type": "string"
              },
              "advertiserId": {
                "type": "string"
              },
              "instructions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string"
              },
              "requestedFormats": {
                "type": "array",
                "items": {}
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "skipTraffickedRebuild": {
                "type": "boolean"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_production_plan",
          "title": "create production plan",
          "description": "create production plan. Classification: creates billable AI usage. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "brand",
              "campaignName",
              "format",
              "brief"
            ],
            "properties": {
              "mode": {
                "enum": [
                  "planning",
                  "studio_instructions"
                ],
                "type": "string",
                "default": "studio_instructions"
              },
              "brand": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "object",
                    "required": [
                      "name"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "tone": {
                        "type": "string",
                        "minLength": 1
                      },
                      "colours": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "summary": {
                        "type": "string",
                        "minLength": 1
                      },
                      "targetAudience": {
                        "type": "string",
                        "minLength": 1
                      }
                    }
                  }
                ]
              },
              "brief": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "assets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "type": {
                      "enum": [
                        "logo",
                        "image",
                        "video",
                        "copy",
                        "other"
                      ],
                      "type": "string"
                    },
                    "description": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                }
              },
              "format": {
                "type": "string",
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "creative": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "template": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "size": {
                    "type": "string",
                    "minLength": 1
                  },
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "size": {
                          "type": "object",
                          "required": [
                            "width",
                            "height"
                          ],
                          "properties": {
                            "width": {
                              "type": "number"
                            },
                            "height": {
                              "type": "number"
                            }
                          }
                        },
                        "type": {
                          "enum": [
                            "text",
                            "image",
                            "logo",
                            "button",
                            "shape",
                            "video",
                            "carousel",
                            "other"
                          ],
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "style": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "locked": {
                          "type": "boolean"
                        },
                        "content": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "editable": {
                          "type": "object",
                          "properties": {
                            "size": {
                              "type": "boolean"
                            },
                            "text": {
                              "type": "boolean"
                            },
                            "asset": {
                              "type": "boolean"
                            },
                            "style": {
                              "type": "boolean"
                            },
                            "position": {
                              "type": "boolean"
                            }
                          }
                        },
                        "position": {
                          "type": "object",
                          "required": [
                            "x",
                            "y"
                          ],
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            }
                          }
                        },
                        "roleHint": {
                          "enum": [
                            "headline",
                            "body",
                            "cta",
                            "logo",
                            "image",
                            "video",
                            "background",
                            "carousel",
                            "other"
                          ],
                          "type": "string"
                        },
                        "currentValue": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "campaignId": {
                "type": "string",
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "minLength": 1
              },
              "constraints": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "advertiserId": {
                "type": "string",
                "minLength": 1
              },
              "campaignName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "templateAnalysis": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "studioCapabilities": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "requestedOperationTypes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "build_videoad",
          "title": "Create an advertiser-aware pre-roll, CTV, or native Social video composition with varied executable scene layouts and channel constraints. It never claims an MP4 master or traffic-ready asset before Studio has rendered and certified one.",
          "description": "Create an advertiser-aware pre-roll, CTV, or native Social video composition with varied executable scene layouts and channel constraints. It never claims an MP4 master or traffic-ready asset before Studio has rendered and certified one.. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "truncated": true,
            "chars": 21752
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "qa_creative",
          "title": "QA a creative for launch readiness with actionable issues, certification evidence, and next steps before preview, revision, or trafficking.",
          "description": "QA a creative for launch readiness with actionable issues, certification evidence, and next steps before preview, revision, or trafficking.. Classification: creates billable AI usage. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "brand",
              "format",
              "objective",
              "creative"
            ],
            "properties": {
              "brand": {
                "type": "string",
                "minLength": 1
              },
              "rules": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "format": {
                "type": "string",
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "context": {
                "type": "string"
              },
              "creative": {
                "type": "object",
                "properties": {
                  "cta": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "headline": {
                    "type": "string"
                  },
                  "landingPageUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "imageDescription": {
                    "type": "string"
                  }
                }
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "objective": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "run_creative_chain",
          "title": "run creative chain",
          "description": "run creative chain. Classification: writes to Studio, creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "KPI": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "goal": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "tone": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "brand": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                ]
              },
              "force": {
                "type": "boolean"
              },
              "offer": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "budget": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "channel": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "endDate": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "product": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "audience": {
                "type": "string",
                "maxLength": 1200,
                "minLength": 1
              },
              "buildAds": {
                "type": "boolean"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "mustAvoid": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "objective": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "startDate": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "constraints": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                },
                "maxItems": 24,
                "minItems": 1
              },
              "funnelStage": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "mustInclude": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "targetSizes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 40,
                  "minLength": 1
                },
                "maxItems": 12,
                "minItems": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignName": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "deliverables": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "saveToStudio": {
                "type": "boolean"
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "launch_creative_campaign",
          "title": "LeanrIQ Creative Runtime: Default preview mode works without Studio and stores research, briefs, builds, QA, and previews in a LeanrIQ workspace. collaborate keeps proposals non-destructive; operate deliberately creates Studio work. Publish is never inferred: traffic_ready and publish remain explici",
          "description": "LeanrIQ Creative Runtime: Default preview mode works without Studio and stores research, briefs, builds, QA, and previews in a LeanrIQ workspace. collaborate keeps proposals non-destructive; operate deliberately creates Studio work. Publish is never inferred: traffic_ready and publish remain explicit governed Studio actions.. Classification: writes to Studio, creates billable AI usage, publishes externally. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "objective"
            ],
            "properties": {
              "KPI": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "cta": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "tone": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "brand": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 240,
                        "minLength": 1
                      },
                      "domain": {
                        "type": "string",
                        "maxLength": 253,
                        "minLength": 1
                      },
                      "websiteUrl": {
                        "type": "string",
                        "maxLength": 2000,
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "force": {
                "type": "boolean"
              },
              "offer": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "budget": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "channel": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "endDate": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "product": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "audience": {
                "type": "string",
                "maxLength": 1200,
                "minLength": 1
              },
              "elements": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 80,
                      "minLength": 1
                    },
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "maxLength": 80,
                          "minLength": 1
                        }
                      },
                      "additionalProperties": {}
                    }
                  ]
                },
                "maxItems": 32
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "headline": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "platform": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "vertical": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "mustAvoid": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 1000,
                  "minLength": 1
                },
                "maxItems": 40
              },
              "objective": {
                "type": "string",
                "maxLength": 4000,
                "minLength": 1
              },
              "skippable": {
                "type": "boolean"
              },
              "startDate": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightName": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "constraints": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 1000,
                  "minLength": 1
                },
                "maxItems": 40
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                },
                "maxItems": 24,
                "minItems": 1
              },
              "destination": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "funnelStage": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "mustInclude": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 1000,
                  "minLength": 1
                },
                "maxItems": 40
              },
              "persistence": {
                "enum": [
                  "preview_only",
                  "save_to_studio"
                ],
                "type": "string"
              },
              "targetSizes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 40,
                  "minLength": 1
                },
                "maxItems": 24,
                "minItems": 1
              },
              "workspaceId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignName": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "deliverables": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                },
                "maxItems": 48
              },
              "saveToStudio": {
                "type": "boolean"
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "executionMode": {
                "enum": [
                  "preview",
                  "collaborate",
                  "operate",
                  "traffic_ready",
                  "publish",
                  "autopilot"
                ],
                "type": "string",
                "default": "preview"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "landingPageUrl": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 1
              },
              "sourceAssetIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "supportingCopy": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              "thirdPartyTags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "tag"
                  ],
                  "properties": {
                    "tag": {
                      "type": "string",
                      "maxLength": 12000,
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "creativeId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 3
              },
              "durationSeconds": {
                "type": "integer",
                "maximum": 120,
                "minimum": 5
              },
              "revisionRequest": {
                "type": "string",
                "maxLength": 4000,
                "minLength": 1
              },
              "workspaceSource": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "creativeBriefs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "maxItems": 12
                  },
                  "assetReferences": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "selectedTerritory": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "performanceEvidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "maxItems": 1000
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "sourceFrameImageUrls": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4000
                },
                "maxItems": 3
              },
              "workspaceAccessToken": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "createCampaignIfMissing": {
                "type": "boolean"
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "promote_creative_workspace",
          "title": "Deliberately promote one approved LeanrIQ creative workspace into Studio. The workspace and selected territory are retained, and a repeated promotion returns the recorded result rather than duplicating Studio production records.",
          "description": "Deliberately promote one approved LeanrIQ creative workspace into Studio. The workspace and selected territory are retained, and a repeated promotion returns the recorded result rather than duplicating Studio production records.. Classification: writes to Studio, creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "workspaceId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "workspaceId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignName": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_creatives",
          "title": "List Studio creatives. Prefer campaignId for deterministic campaign inventory reads. If only campaignName is available, pair it with advertiserId or advertiserName so LeanrIQ can resolve the campaign once, follow pagination centrally, and return the full campaign creative set without local guesswork",
          "description": "List Studio creatives. Prefer campaignId for deterministic campaign inventory reads. If only campaignName is available, pair it with advertiserId or advertiserName so LeanrIQ can resolve the campaign once, follow pagination centrally, and return the full campaign creative set without local guesswork.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. This tool is the authoritative saved Studio creative inventory for the requested scope. With an exact campaignId, call list_creatives directly as the first and only inventory read. The MCP response returns a compact inventory containing creative names, IDs, sizes and statuses; use get_creative only when full creative internals are needed. Non-empty rows prove saved creatives exist regardless of campaign build or activation workflow state; a completed empty result is authoritative. Do not call get_campaign first to decide whether creatives exist.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignName": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "advertiserName": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_creative",
          "title": "get creative",
          "description": "get creative. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "creativeId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "build_ad",
          "title": "Create AI Display CreativeDocuments from objective and requestedFormats without pre-existing creatives. Optional outputs requests static JPEG/PNG delivery after save_to_studio while retaining the editable document. Export existing versions with export_creative. Build and save existing Studio creativ",
          "description": "Create AI Display CreativeDocuments from objective and requestedFormats without pre-existing creatives. Optional outputs requests static JPEG/PNG delivery after save_to_studio while retaining the editable document. Export existing versions with export_creative. Build and save existing Studio creative records. When campaignId or campaignName is supplied, LeanrIQ resolves the complete persisted campaign inventory, uses each saved brief, approved asset set, and eligible global or advertiser template, then runs the canonical Studio Gold build path. Campaign-scoped calls save by default; use persistence preview_only only for an unsaved ad-hoc preview.. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "brief": {},
              "force": {
                "type": "boolean"
              },
              "input": {},
              "assets": {},
              "prompt": {
                "type": "string"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string"
              },
              "assetId": {
                "type": "string"
              },
              "outputs": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "editable"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "static"
                        },
                        "format": {
                          "enum": [
                            "jpeg",
                            "png"
                          ],
                          "type": "string"
                        },
                        "quality": {
                          "type": "integer",
                          "maximum": 100,
                          "minimum": 1
                        },
                        "maxBytes": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "enum": [
                        "editable",
                        "static_jpeg",
                        "static_png"
                      ],
                      "type": "string"
                    }
                  ]
                },
                "maxItems": 8,
                "description": "Optional editable/static JPEG/PNG delivery requirements. Studio persistence is required for static output."
              },
              "audience": {},
              "campaign": {},
              "creative": {},
              "flightId": {
                "type": "string"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "template": {},
              "accountId": {
                "type": "string"
              },
              "objective": {
                "type": "string"
              },
              "advertiser": {},
              "campaignId": {
                "type": "string"
              },
              "creativeId": {
                "type": "string"
              },
              "templateId": {
                "type": "string"
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "persistence": {
                "enum": [
                  "preview_only",
                  "save_to_studio"
                ],
                "type": "string"
              },
              "advertiserId": {
                "type": "string"
              },
              "instructions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string"
              },
              "requestedFormats": {
                "type": "array",
                "items": {}
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "skipTraffickedRebuild": {
                "type": "boolean"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "build_creative_os",
          "title": "Design, render and save a review-held editable scratch Display or Social working version using Creative OS.",
          "description": "Design, render and save a review-held editable scratch Display or Social working version using Creative OS.. Classification: writes to Studio, creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "advertiserId",
              "campaignId",
              "creativeId",
              "idempotencyKey"
            ],
            "properties": {
              "engine": {
                "enum": [
                  "original",
                  "scene"
                ],
                "type": "string"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "aiBudgetUsd": {
                "type": "number",
                "maximum": 0.2,
                "exclusiveMinimum": 0
              },
              "qualityMode": {
                "enum": [
                  "STANDARD",
                  "PREMIUM_CREATIVE"
                ],
                "type": "string",
                "default": "STANDARD"
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "editorSource": {
                "type": "object",
                "required": [
                  "versionId",
                  "documentDigest"
                ],
                "properties": {
                  "versionId": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "documentDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "additionalProperties": false
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 180,
                "minLength": 1
              },
              "premiumBudgetUsd": {
                "type": "number",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "blankEditorSource": {
                "type": "object",
                "required": [
                  "versionId",
                  "documentDigest"
                ],
                "properties": {
                  "versionId": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "documentDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "additionalProperties": false
              },
              "imageEditorSource": {
                "type": "object",
                "required": [
                  "versionId",
                  "documentDigest"
                ],
                "properties": {
                  "versionId": {
                    "type": "string",
                    "maxLength": 240,
                    "minLength": 1
                  },
                  "documentDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "additionalProperties": false
              },
              "reassessVersionId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "directionReference": {
                "type": "object",
                "required": [
                  "revision",
                  "blueprintDigest"
                ],
                "properties": {
                  "revision": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  },
                  "blueprintDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "additionalProperties": false
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "build_dooh",
          "title": "Build a DOOH-native poster for an existing Studio creative, compare exact native renders and save the complete editable working version by default. Below-threshold creative review retains a technically valid version without release approval. Explicit saveToStudio=false is an unsaved preview. DOOH ne",
          "description": "Build a DOOH-native poster for an existing Studio creative, compare exact native renders and save the complete editable working version by default. Below-threshold creative review retains a technically valid version without release approval. Explicit saveToStudio=false is an unsaved preview. DOOH never contains CTA buttons. It does not route through Display build_ad.. Classification: writes to Studio, creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "copy": {
                "type": "object",
                "default": {},
                "properties": {
                  "body": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "legal": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "headline": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "approvedCopyVariants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "cta": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        },
                        "legal": {
                          "type": "string"
                        },
                        "proof": {
                          "type": "string"
                        },
                        "eyebrow": {
                          "type": "string"
                        },
                        "headline": {
                          "type": "string"
                        },
                        "claimReferences": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 3
                  }
                },
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "default": {},
                "properties": {
                  "logos": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 200,
                          "minLength": 1
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "role": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "width": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "height": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "alphaPadding": {
                          "type": "object",
                          "required": [
                            "left",
                            "right",
                            "top",
                            "bottom"
                          ],
                          "properties": {
                            "top": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "left": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "right": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "bottom": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            }
                          }
                        },
                        "visibleBounds": {
                          "type": "object",
                          "required": [
                            "x",
                            "y",
                            "width",
                            "height"
                          ],
                          "properties": {
                            "x": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "y": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "width": {
                              "type": "number",
                              "maximum": 1,
                              "exclusiveMinimum": 0
                            },
                            "height": {
                              "type": "number",
                              "maximum": 1,
                              "exclusiveMinimum": 0
                            }
                          }
                        }
                      },
                      "additionalProperties": {}
                    },
                    "default": [],
                    "maxItems": 20
                  },
                  "images": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 200,
                          "minLength": 1
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "role": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "width": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "height": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "alphaPadding": {
                          "type": "object",
                          "required": [
                            "left",
                            "right",
                            "top",
                            "bottom"
                          ],
                          "properties": {
                            "top": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "left": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "right": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "bottom": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            }
                          }
                        },
                        "visibleBounds": {
                          "type": "object",
                          "required": [
                            "x",
                            "y",
                            "width",
                            "height"
                          ],
                          "properties": {
                            "x": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "y": {
                              "type": "number",
                              "maximum": 1,
                              "minimum": 0
                            },
                            "width": {
                              "type": "number",
                              "maximum": 1,
                              "exclusiveMinimum": 0
                            },
                            "height": {
                              "type": "number",
                              "maximum": 1,
                              "exclusiveMinimum": 0
                            }
                          }
                        }
                      },
                      "additionalProperties": {}
                    },
                    "default": [],
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              },
              "format": {
                "type": "object",
                "required": [
                  "width",
                  "height"
                ],
                "properties": {
                  "width": {
                    "type": "integer",
                    "maximum": 10000,
                    "exclusiveMinimum": 0
                  },
                  "height": {
                    "type": "integer",
                    "maximum": 10000,
                    "exclusiveMinimum": 0
                  },
                  "presetName": {
                    "type": "string",
                    "maxLength": 120
                  }
                },
                "additionalProperties": false
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "campaign": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "creative": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "template": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "accountId": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "templates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "maxItems": 100
              },
              "advertiser": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "campaignId": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "copyPolicy": {
                "type": "object",
                "properties": {
                  "lockedRoles": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "headline",
                        "body",
                        "cta",
                        "legal",
                        "eyebrow",
                        "proof"
                      ],
                      "type": "string"
                    }
                  },
                  "editableRoles": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "headline",
                        "body",
                        "cta",
                        "legal",
                        "eyebrow",
                        "proof"
                      ],
                      "type": "string"
                    }
                  },
                  "requiredRoles": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "headline",
                        "body",
                        "cta",
                        "legal",
                        "eyebrow",
                        "proof"
                      ],
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "creativeId": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "aiBudgetUsd": {
                "type": "number",
                "maximum": 0.2,
                "exclusiveMinimum": 0
              },
              "doohContext": {
                "type": "object",
                "properties": {
                  "venueType": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 160
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "environment": {
                    "enum": [
                      "roadside",
                      "street_furniture",
                      "transit",
                      "rail",
                      "underground",
                      "airport",
                      "retail",
                      "shopping_centre",
                      "large_format",
                      "indoor",
                      "stadium",
                      "other"
                    ],
                    "type": "string",
                    "default": "other"
                  },
                  "orientation": {
                    "enum": [
                      "landscape",
                      "portrait",
                      "square"
                    ],
                    "type": "string"
                  },
                  "dwellSeconds": {
                    "type": "number",
                    "maximum": 600,
                    "exclusiveMinimum": 0
                  },
                  "motionAllowed": {
                    "type": "boolean",
                    "default": false
                  },
                  "locationContext": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 800
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "contextualSignals": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "location",
                        "time",
                        "daypart",
                        "weather",
                        "store",
                        "event",
                        "feed",
                        "inventory",
                        "product_availability"
                      ],
                      "type": "string"
                    },
                    "default": [],
                    "maxItems": 16
                  },
                  "estimatedViewingDistanceMeters": {
                    "type": "number",
                    "maximum": 2000,
                    "exclusiveMinimum": 0
                  }
                },
                "additionalProperties": false
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "saveToStudio": {
                "type": "boolean",
                "default": true
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "strategyBrief": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "deliveryProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "directionReference": {
                "type": "object",
                "required": [
                  "revision",
                  "blueprintDigest"
                ],
                "properties": {
                  "revision": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  },
                  "blueprintDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "additionalProperties": false
              },
              "approvedCopyVariants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "cta": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    },
                    "legal": {
                      "type": "string"
                    },
                    "proof": {
                      "type": "string"
                    },
                    "eyebrow": {
                      "type": "string"
                    },
                    "headline": {
                      "type": "string"
                    },
                    "claimReferences": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 3
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "designEvidenceContext": {
                "type": "object",
                "required": [
                  "schemaVersion"
                ],
                "properties": {
                  "copy": {
                    "type": "object",
                    "properties": {
                      "cta": {},
                      "body": {},
                      "legal": {},
                      "claims": {},
                      "eyebrow": {},
                      "headline": {},
                      "copyPolicy": {},
                      "disclaimer": {},
                      "lockedTexts": {},
                      "supportingCopy": {},
                      "claimReferences": {},
                      "mandatoryElements": {},
                      "approvedCopyVariants": {}
                    }
                  },
                  "brand": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "tokens": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "version": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "constraints": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "facts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "default": null,
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "summary": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "authority": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceRef": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceUrl": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "statement": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "capturedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "evidenceId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "observedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceType": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publishedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "extractedFacts": {
                          "type": "array",
                          "items": {}
                        }
                      }
                    },
                    "default": []
                  },
                  "scope": {
                    "type": "object",
                    "properties": {
                      "tenantId": {
                        "type": "string"
                      },
                      "advertiserId": {
                        "type": "string"
                      }
                    }
                  },
                  "locale": {
                    "type": "string"
                  },
                  "campaign": {
                    "type": "object",
                    "properties": {
                      "audience": {},
                      "objective": {},
                      "proposition": {}
                    }
                  },
                  "opportunity": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "reviewAt": {
                            "type": "string"
                          },
                          "objective": {
                            "type": "string"
                          },
                          "evidenceIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "audienceContext": {
                            "type": "string"
                          },
                          "evidenceSupport": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "evidenceId",
                                "quote"
                              ],
                              "properties": {
                                "quote": {
                                  "type": "string"
                                },
                                "evidenceId": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "proposedMessage": {
                            "type": "string"
                          },
                          "visualDirection": {
                            "type": "string"
                          },
                          "visualTerritory": {
                            "type": "string"
                          },
                          "messagingTerritory": {
                            "type": "string"
                          },
                          "measurableHypothesis": {},
                          "supportingEvidenceIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "string",
                    "const": "design-evidence-context-v1"
                  },
                  "craftPrecedents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "default": null,
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "default": []
                  }
                }
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "expectedActiveVersionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "build_campaign_creative_set",
          "title": "Plan and create an initial Studio creative set for a campaign that has no saved creatives. Do not use this tool to rebuild existing creatives; use build_ad with campaignId or campaignName, which resolves and rebuilds the full saved Studio inventory.",
          "description": "Plan and create an initial Studio creative set for a campaign that has no saved creatives. Do not use this tool to rebuild existing creatives; use build_ad with campaignId or campaignName, which resolves and rebuilds the full saved Studio inventory.. Classification: creates billable AI usage. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "campaignName",
              "objective",
              "audience",
              "KPI",
              "funnelStage"
            ],
            "properties": {
              "KPI": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "brand": {
                "type": "object",
                "required": [
                  "domain"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253,
                    "minLength": 1
                  },
                  "brandId": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "websiteUrl": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "notes": {
                "type": "string",
                "maxLength": 2000
              },
              "budget": {
                "anyOf": [
                  {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "string",
                    "maxLength": 120,
                    "minLength": 1
                  }
                ]
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "billing": {
                "enum": [
                  "agent",
                  "operator",
                  "advertiser"
                ],
                "type": "string"
              },
              "channel": {
                "enum": [
                  "display",
                  "dooh"
                ],
                "type": "string",
                "default": "display"
              },
              "endDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "outputs": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "editable"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "static"
                        },
                        "format": {
                          "enum": [
                            "jpeg",
                            "png"
                          ],
                          "type": "string"
                        },
                        "quality": {
                          "type": "integer",
                          "maximum": 100,
                          "minimum": 1
                        },
                        "maxBytes": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "enum": [
                        "editable",
                        "static_jpeg",
                        "static_png"
                      ],
                      "type": "string"
                    }
                  ]
                },
                "maxItems": 8
              },
              "sandbox": {
                "type": "boolean",
                "default": false
              },
              "audience": {
                "type": "string",
                "maxLength": 1200,
                "minLength": 1
              },
              "operator": {
                "type": "string",
                "maxLength": 253,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "objective": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "startDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "campaignId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "doohContext": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "funnelStage": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "targetSizes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 40,
                  "minLength": 1
                },
                "maxItems": 12,
                "minItems": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "campaignName": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "generateTags": {
                "type": "boolean",
                "default": false
              },
              "saveToStudio": {
                "type": "boolean",
                "default": true
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "desiredVariantCount": {
                "type": "integer",
                "maximum": 24,
                "minimum": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "strictBrandCompliance": {
                "type": "boolean",
                "default": true
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "createAdvertiserIfMissing": {
                "type": "boolean",
                "default": false
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "revise_creative",
          "title": "Revise an existing saved Studio creative by executing a requested change from plain-language instructions. Use this directly when the user supplies a creativeId and asks to change copy, imagery, layout, colours, typography, CTA, branding, or any other editable creative element: do not respond with a",
          "description": "Revise an existing saved Studio creative by executing a requested change from plain-language instructions. Use this directly when the user supplies a creativeId and asks to change copy, imagery, layout, colours, typography, CTA, branding, or any other editable creative element: do not respond with a copy-paste instruction or ask the user to make the edit in Studio. The revision saves to Studio by default and returns fresh preview links plus QA/certification context; set dryRun only when the user explicitly asks for an unsaved preview.. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "creativeId",
              "idempotencyKey"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "prompt": {
                "type": "string",
                "maxLength": 4000,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "persistence": {
                "enum": [
                  "preview_only",
                  "save_to_studio"
                ],
                "type": "string"
              },
              "instructions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 1000,
                  "minLength": 1
                },
                "maxItems": 20,
                "minItems": 1
              },
              "saveToStudio": {
                "type": "boolean"
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "export_creative",
          "title": "Export an existing persisted Studio CreativeDocument version to JPEG, PNG, or a version-bound HTML5 ZIP. HTML5 supports only the declared platform packaging profiles and does not generate or replace editable creative state.",
          "description": "Export an existing persisted Studio CreativeDocument version to JPEG, PNG, or a version-bound HTML5 ZIP. HTML5 supports only the declared platform packaging profiles and does not generate or replace editable creative state.. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "brief": {},
              "force": {
                "type": "boolean"
              },
              "input": {},
              "assets": {},
              "prompt": {
                "type": "string"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string"
              },
              "assetId": {
                "type": "string"
              },
              "outputs": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "editable"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "static"
                        },
                        "format": {
                          "enum": [
                            "jpeg",
                            "png"
                          ],
                          "type": "string"
                        },
                        "quality": {
                          "type": "integer",
                          "maximum": 100,
                          "minimum": 1
                        },
                        "maxBytes": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "enum": [
                        "editable",
                        "static_jpeg",
                        "static_png"
                      ],
                      "type": "string"
                    }
                  ]
                },
                "maxItems": 8,
                "description": "Optional editable/static JPEG/PNG delivery requirements. Studio persistence is required for static output."
              },
              "audience": {},
              "campaign": {},
              "creative": {},
              "flightId": {
                "type": "string"
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "template": {},
              "accountId": {
                "type": "string"
              },
              "objective": {
                "type": "string"
              },
              "advertiser": {},
              "campaignId": {
                "type": "string"
              },
              "creativeId": {
                "type": "string"
              },
              "templateId": {
                "type": "string"
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "persistence": {
                "enum": [
                  "preview_only",
                  "save_to_studio"
                ],
                "type": "string"
              },
              "advertiserId": {
                "type": "string"
              },
              "instructions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string"
              },
              "requestedFormats": {
                "type": "array",
                "items": {}
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "skipTraffickedRebuild": {
                "type": "boolean"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "clone_creative",
          "title": "clone creative",
          "description": "clone creative. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "idempotencyKey",
              "creativeId"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_creative_version",
          "title": "create creative version",
          "description": "create creative version. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "creativeId",
              "idempotencyKey"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "creative": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "versionId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "changeSummary": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_creative_versions",
          "title": "list creative versions",
          "description": "list creative versions. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "creativeId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "restore_creative_version",
          "title": "restore creative version",
          "description": "restore creative version. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "creativeId",
              "versionId",
              "idempotencyKey"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "creative": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "versionId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "changeSummary": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "archive_creative",
          "title": "archive creative",
          "description": "archive creative. Classification: writes to Studio, destructive. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "creativeId"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "resourceId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_templates",
          "title": "list templates",
          "description": "list templates. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_template",
          "title": "get template",
          "description": "get template. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "templateId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_assets",
          "title": "list assets",
          "description": "list assets. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. Studio assets are scoped resources: pass advertiserId or creativeId when listing assets, and pass one of those scopes together with assetId when retrieving one asset. LeanrIQ returns INVALID_INPUT rather than a misleading empty result when that scope is absent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_asset",
          "title": "get asset",
          "description": "get asset. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. Studio assets are scoped resources: pass advertiserId or creativeId when listing assets, and pass one of those scopes together with assetId when retrieving one asset. LeanrIQ returns INVALID_INPUT rather than a misleading empty result when that scope is absent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "assetId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_preview_links",
          "title": "Generate public review preview links for one or more saved Studio creatives without changing campaign content.",
          "description": "Generate public review preview links for one or more saved Studio creatives without changing campaign content.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                }
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_preview_link",
          "title": "get preview link",
          "description": "get preview link. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "previewId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_flight",
          "title": "create flight",
          "description": "create flight. Classification: writes to Studio. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "platform": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "thirdPartyTags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "tag"
                  ],
                  "properties": {
                    "tag": {
                      "type": "string",
                      "maxLength": 12000,
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "creativeId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 3
              },
              "creativeConfigs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "creativeId"
                  ],
                  "properties": {
                    "width": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "exclusiveMinimum": 0
                    },
                    "height": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "exclusiveMinimum": 0
                    },
                    "channel": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "formatId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "tracking": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "creativeId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "previewUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "trafficking": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "previewLinks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      }
                    },
                    "creativeStatus": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "landingPageUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "thirdPartyTags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "tag"
                        ],
                        "properties": {
                          "tag": {
                            "type": "string",
                            "maxLength": 12000,
                            "minLength": 1
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 240,
                            "minLength": 1
                          },
                          "creativeId": {
                            "type": "string",
                            "maxLength": 240,
                            "minLength": 1
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 3
                    },
                    "clickThroughUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "creativeVersion": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": {}
                },
                "default": []
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_flight",
          "title": "get flight",
          "description": "get flight. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_flights",
          "title": "list flights",
          "description": "list flights. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_flight",
          "title": "update flight",
          "description": "update flight. Classification: writes to Studio. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "platform": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "thirdPartyTags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "tag"
                  ],
                  "properties": {
                    "tag": {
                      "type": "string",
                      "maxLength": 12000,
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "creativeId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 3
              },
              "creativeConfigs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "creativeId"
                  ],
                  "properties": {
                    "width": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "exclusiveMinimum": 0
                    },
                    "height": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "exclusiveMinimum": 0
                    },
                    "channel": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "formatId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "tracking": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "creativeId": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "previewUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "trafficking": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "previewLinks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      }
                    },
                    "creativeStatus": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    },
                    "landingPageUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "thirdPartyTags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "tag"
                        ],
                        "properties": {
                          "tag": {
                            "type": "string",
                            "maxLength": 12000,
                            "minLength": 1
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 240,
                            "minLength": 1
                          },
                          "creativeId": {
                            "type": "string",
                            "maxLength": 240,
                            "minLength": 1
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 3
                    },
                    "clickThroughUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "creativeVersion": {
                      "type": "string",
                      "maxLength": 240,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": {}
                },
                "default": []
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_flight",
          "title": "delete flight",
          "description": "delete flight. Classification: writes to Studio, destructive. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "flightId"
            ],
            "properties": {
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "resourceId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "validate_flight",
          "title": "validate flight",
          "description": "validate flight. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preview_trafficking_output",
          "title": "preview trafficking output",
          "description": "preview trafficking output. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "flightId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "traffick_creative",
          "title": "traffick creative",
          "description": "traffick creative. Classification: publishes externally. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "flightId",
              "creativeId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "traffick_flight",
          "title": "traffick flight",
          "description": "traffick flight. Classification: publishes externally. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "flightId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "retraffick_creative",
          "title": "retraffick creative",
          "description": "retraffick creative. Classification: publishes externally. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "flightId",
              "creativeId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "retraffick_flight",
          "title": "retraffick flight",
          "description": "retraffick flight. Classification: publishes externally. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "flightId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "dryRun": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "push_flight_to_yahoo",
          "title": "Publish path for approved work only: traffick and certify a saved Studio flight, generate or reuse ad-server tags, and push the resulting inactive or approved payload to Yahoo DSP with audit evidence.",
          "description": "Publish path for approved work only: traffick and certify a saved Studio flight, generate or reuse ad-server tags, and push the resulting inactive or approved payload to Yahoo DSP with audit evidence.. Classification: writes to Studio, publishes externally. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId",
              "idempotencyKey"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 240,
                  "minLength": 1
                },
                "maxItems": 100,
                "minItems": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_adserver_tag",
          "title": "get adserver tag",
          "description": "get adserver tag. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId",
              "creativeId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "platform": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_adserver_tag",
          "title": "generate adserver tag",
          "description": "generate adserver tag. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId",
              "creativeId"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "platform": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "approvalId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_trafficked_assets",
          "title": "get trafficked assets",
          "description": "get trafficked assets. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "assetId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "previewId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "templateId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "export_trafficked_assets",
          "title": "export trafficked assets",
          "description": "export trafficked assets. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "flightId"
            ],
            "properties": {
              "type": {
                "enum": [
                  "json",
                  "csv"
                ],
                "type": "string"
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_task",
          "title": "Poll a durable LeanrIQ task returned by build_ad, revise_creative, trafficking, or another queued capability and continue with the completed output.",
          "description": "Poll a durable LeanrIQ task returned by build_ad, revise_creative, trafficking, or another queued capability and continue with the completed output.. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "taskId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_tasks",
          "title": "list tasks",
          "description": "list tasks. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "exclusiveMinimum": 0
              },
              "cursor": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "campaignId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "cancel_task",
          "title": "cancel task",
          "description": "cancel task. Classification: read-only. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "taskId"
            ],
            "properties": {
              "reason": {
                "type": "string",
                "maxLength": 1000
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "retry_task",
          "title": "retry task",
          "description": "retry task. Classification: read-only. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "taskId"
            ],
            "properties": {
              "reason": {
                "type": "string",
                "maxLength": 1000
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "taskId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "provide_performance_feedback",
          "title": "provide performance feedback",
          "description": "provide performance feedback. Classification: writes to Studio. Execution: synchronous. Task support: forbidden. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "accountId",
              "feedback",
              "idempotencyKey"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "feedback": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "flightId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "accountId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "creativeId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "leanriq_run_creative_intelligence",
          "title": "Synthesize grounded, deduplicated advertiser creative opportunities from automatic competitor/category research and broad World signals. Returns a durable run ID and honest partial states; creates no campaign or publication. (deprecated alias)",
          "description": "Synthesize grounded, deduplicated advertiser creative opportunities from automatic competitor/category research and broad World signals. Returns a durable run ID and honest partial states; creates no campaign or publication.. Deprecated alias for run_creative_intelligence. Classification: creates billable AI usage. Execution: durable. Task support: optional. Mutation modes: validate_only, preview_only, execute. Partial failure policy: completed_items_not_rolled_back. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action. If idempotencyKey is omitted on a mutation, the MCP layer derives a deterministic retry key from the tool and business arguments so an accidental identical replay cannot create duplicate work. For a mutation when more than one seat is authorised, seatId or seatName must be supplied on that exact tool call; a remembered or previously selected seat is not sufficient for a write.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "idempotencyKey"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "leanriq_get_creative_intelligence_run",
          "title": "Read an exact durable intelligence run, including stage, terminal state and retry metadata. (deprecated alias)",
          "description": "Read an exact durable intelligence run, including stage, terminal state and retry metadata.. Deprecated alias for get_creative_intelligence_run. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId",
              "runId"
            ],
            "properties": {
              "runId": {
                "type": "string",
                "maxLength": 240,
                "minLength": 1
              },
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "leanriq_get_creative_intelligence",
          "title": "Read saved advertiser creative opportunities and source provenance. (deprecated alias)",
          "description": "Read saved advertiser creative opportunities and source provenance.. Deprecated alias for get_creative_intelligence. Classification: read-only. Execution: synchronous. Task support: forbidden. The returned JSON is internal application state for LeanrIQ and ChatGPT orchestration. Use assistantSummary first when responding to the user. Never display raw JSON, data, or meta unless the user explicitly asks for raw JSON. Mention IDs only when useful for follow-up or debugging. Prefer concise, human language, highlight the most useful insight, and suggest the next best LeanrIQ action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "advertiserId"
            ],
            "properties": {
              "seatId": {
                "type": "string",
                "minLength": 1
              },
              "seatName": {
                "type": "string",
                "minLength": 1
              },
              "advertiserId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "sourceLocale": {
                "type": "string"
              },
              "targetMarket": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "contentLocale": {
                "type": "string"
              },
              "marketContext": {
                "type": "object",
                "properties": {
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarket": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetMarkets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "targetMarkets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 160,
                  "minLength": 1
                },
                "maxItems": 50
              },
              "contentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "defaultContentLocale": {
                "type": "string"
              },
              "marketLanguageProfile": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "resolvedContentLocale": {
                "type": "string"
              },
              "languageVariantGroupId": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "requestedOutputLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              },
              "supportedContentLocales": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "status",
              "assistantSummary",
              "data",
              "meta"
            ],
            "properties": {
              "data": {
                "type": "object",
                "default": {},
                "properties": {},
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "default": {},
                "properties": {
                  "usage": {
                    "type": "object",
                    "properties": {
                      "costUnits": {
                        "type": "number",
                        "minimum": 0
                      },
                      "qaRetries": {
                        "type": "number",
                        "minimum": 0
                      },
                      "toolCalls": {
                        "type": "number",
                        "minimum": 0
                      },
                      "failedBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "successfulBuilds": {
                        "type": "number",
                        "minimum": 0
                      },
                      "servedImpressions": {
                        "type": "number",
                        "minimum": 0
                      },
                      "generatedCreatives": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seatId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seatName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "durationMs": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "governance": {
                    "type": "object",
                    "properties": {
                      "approvalId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalReason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "approvalStatus": {
                        "enum": [
                          "not_required",
                          "required",
                          "approved",
                          "rejected"
                        ],
                        "type": "string"
                      },
                      "approvalConditions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "toolVersion": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "usageSnapshot": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retriable": {
                    "type": "boolean"
                  },
                  "approvalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalReason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalStatus": {
                    "enum": [
                      "not_required",
                      "required",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  },
                  "retryAfterSeconds": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvalConditions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "success",
                  "error"
                ],
                "type": "string"
              },
              "assistantSummary": {
                "type": "object",
                "required": [
                  "title",
                  "summary",
                  "keyInsights",
                  "nextRecommendedAction"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyInsights": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "default": []
                  },
                  "nextRecommendedAction": {
                    "type": "object",
                    "required": [
                      "label",
                      "toolName",
                      "reason"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1
                      },
                      "toolName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 39,
      "resources": [
        {
          "name": "leanriq_knowledge_leanr_positioning",
          "uri": "leanriq://knowledge/leanr-positioning",
          "mimeType": "text/markdown",
          "description": "LeanrIQ static positioning knowledge used for strategy context."
        },
        {
          "name": "leanriq_knowledge_creative_rules",
          "uri": "leanriq://knowledge/creative-rules",
          "mimeType": "text/markdown",
          "description": "LeanrIQ static creative guidance and constraints."
        },
        {
          "name": "leanriq_knowledge_format_rules",
          "uri": "leanriq://knowledge/format-rules",
          "mimeType": "text/markdown",
          "description": "LeanrIQ static format guidance and guardrails."
        },
        {
          "name": "leanriq_workflow_launch_demo",
          "uri": "leanriq://workflows/launch-demo",
          "mimeType": "text/markdown",
          "description": "Golden buyer demo path: seat, permissions, campaign, build_ad, preview links, task polling, and revision."
        },
        {
          "name": "leanriq_schema_resolve_or_provision_advertiser",
          "uri": "leanriq://schemas/resolve-or-provision-advertiser",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_resolve_or_provision_advertiser."
        },
        {
          "name": "leanriq_schema_leanr_build_campaign_creative_set",
          "uri": "leanriq://schemas/leanr-build-campaign-creative-set",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanr_build_campaign_creative_set."
        },
        {
          "name": "leanriq_schema_create_strategy",
          "uri": "leanriq://schemas/create-strategy",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_create_strategy."
        },
        {
          "name": "leanriq_schema_create_brief",
          "uri": "leanriq://schemas/create-brief",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_create_brief."
        },
        {
          "name": "leanriq_schema_create_production_plan",
          "uri": "leanriq://schemas/create-production-plan",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_create_production_plan."
        },
        {
          "name": "leanriq_schema_get_brand_profile",
          "uri": "leanriq://schemas/get-brand-profile",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_get_brand_profile."
        },
        {
          "name": "leanriq_schema_save_brand_profile_to_studio",
          "uri": "leanriq://schemas/save-brand-profile-to-studio",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_save_brand_profile_to_studio."
        },
        {
          "name": "leanriq_schema_get_competitor_creative_intelligence",
          "uri": "leanriq://schemas/get-competitor-creative-intelligence",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_get_competitor_creative_intelligence."
        },
        {
          "name": "leanriq_schema_create_creative_brief",
          "uri": "leanriq://schemas/create-creative-brief",
          "mimeType": "application/json",
          "description": "Input schema documentation for leanriq_create_creative_brief."
        }
      ],
      "prompts": []
    },
    "instructions": null
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}