changedOutput schema / else / anyOf
Previous value: -[
- {
- "properties": {
- "daily": {
- "items": {
- "properties": {
- "ad_account_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "ad_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "ad_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "adset_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "adset_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "bid_amount": {
- "type": [
- "number",
- "null"
- ]
- },
- "bid_strategy": {
- "type": [
- "string",
- "null"
- ]
- },
- "budget_level": {
- "type": [
- "string",
- "null"
- ]
- },
- "campaign_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "campaign_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "clicks": {
- "type": [
- "number",
- "null"
- ]
- },
- "configured_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "configured_status_observed_at": {
- "$ref": "#/$defs/s9"
- },
- "conversion_value": {
- "type": [
- "number",
- "null"
- ]
- },
- "conversions": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpa": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpc": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpm": {
- "type": [
- "number",
- "null"
- ]
- },
- "ctr": {
- "type": [
- "number",
- "null"
- ]
- },
- "currency": {
- "type": [
- "string",
- "null"
- ]
- },
- "daily_budget": {
- "type": [
- "number",
- "null"
- ]
- },
- "data_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "date": {
- "type": [
- "string",
- "null"
- ]
- },
- "date_start": {
- "type": [
- "string",
- "null"
- ]
- },
- "date_stop": {
- "type": [
- "string",
- "null"
- ]
- },
- "delivery_issue_codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "delivery_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "effective_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "funnel": {
- "$ref": "#/$defs/s8"
- },
- "funnel_observation": {
- "$ref": "#/$defs/sa"
- },
- "historical_result": {
- "$ref": "#/$defs/s7"
- },
- "id": {
- "type": [
- "string",
- "null"
- ]
- },
- "impressions": {
- "type": [
- "number",
- "null"
- ]
- },
- "lifetime_budget": {
- "type": [
- "number",
- "null"
- ]
- },
- "metric_completeness": {
- "$ref": "#/$defs/s0"
- },
- "money_unit": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "optimization_goal": {
- "type": [
- "string",
- "null"
- ]
- },
- "product_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "reach": {
- "type": [
- "number",
- "null"
- ]
- },
- "result_segments": {
- "$ref": "#/$defs/s2"
- },
- "roas": {
- "type": [
- "number",
- "null"
- ]
- },
- "source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "spend": {
- "type": [
- "number",
- "null"
- ]
- },
- "spend_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "effective_attribution": {
- "type": "string"
- },
- "funnel_events": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "funnel_semantics": {
- "properties": {
- "coverage_requirement": {
- "const": "verify_insights_and_source_coverage"
- },
- "empty_funnel_interpretation": {
- "const": "no_selected_events_returned_not_zero_proof"
- },
- "missing_event_implies_missing_insights": {
- "const": false
- },
- "missing_event_is_zero": {
- "const": false
- },
- "read_coverage_scope": {
- "const": "query_result_not_upstream_ingestion"
- },
- "representation": {
- "const": "sparse"
- }
- },
- "type": "object"
- },
- "items": {
- "items": {
- "properties": {
- "ad_account_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "ad_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "ad_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "adset_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "adset_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "bid_amount": {
- "type": [
- "number",
- "null"
- ]
- },
- "bid_strategy": {
- "type": [
- "string",
- "null"
- ]
- },
- "budget_level": {
- "type": [
- "string",
- "null"
- ]
- },
- "campaign_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "campaign_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "clicks": {
- "type": [
- "number",
- "null"
- ]
- },
- "configured_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "configured_status_observed_at": {
- "$ref": "#/$defs/s9"
- },
- "conversion_value": {
- "type": [
- "number",
- "null"
- ]
- },
- "conversions": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpa": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpc": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpm": {
- "type": [
- "number",
- "null"
- ]
- },
- "ctr": {
- "type": [
- "number",
- "null"
- ]
- },
- "currency": {
- "type": [
- "string",
- "null"
- ]
- },
- "daily_budget": {
- "type": [
- "number",
- "null"
- ]
- },
- "data_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "date": {
- "type": [
- "string",
- "null"
- ]
- },
- "date_start": {
- "type": [
- "string",
- "null"
- ]
- },
- "date_stop": {
- "type": [
- "string",
- "null"
- ]
- },
- "delivery_issue_codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "delivery_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "effective_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "funnel": {
- "$ref": "#/$defs/s8"
- },
- "funnel_observation": {
- "$ref": "#/$defs/sa"
- },
- "historical_result": {
- "$ref": "#/$defs/s7"
- },
- "id": {
- "type": [
- "string",
- "null"
- ]
- },
- "impressions": {
- "type": [
- "number",
- "null"
- ]
- },
- "lifetime_budget": {
- "type": [
- "number",
- "null"
- ]
- },
- "media": {
- "additionalProperties": false,
- "properties": {
- "media_type": {
- "enum": [
- "image",
- "video",
- null
- ]
- },
- "poster_url": {
- "description": "Temporary signed cover URL; never a persistent media identity or video playback URL.",
- "format": "uri",
- "pattern": "^https://",
- "type": "string"
- },
- "source_observed_at": {
- "format": "date-time",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "enum": [
- "pending",
- "ready",
- "unavailable",
- "failed"
- ]
- },
- "url_expires_at": {
- "format": "date-time",
- "type": "string"
- },
- "version": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "status"
- ],
- "type": "object"
- },
- "metric_completeness": {
- "$ref": "#/$defs/s0"
- },
- "money_unit": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "optimization_goal": {
- "type": [
- "string",
- "null"
- ]
- },
- "product_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "reach": {
- "type": [
- "number",
- "null"
- ]
- },
- "result_segments": {
- "$ref": "#/$defs/s2"
- },
- "roas": {
- "type": [
- "number",
- "null"
- ]
- },
- "source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "spend": {
- "type": [
- "number",
- "null"
- ]
- },
- "spend_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "meta": {
- "properties": {
- "cache_hit": {
- "type": "boolean"
- },
- "coalesced": {
- "type": "boolean"
- },
- "complete": {
- "type": "boolean"
- },
- "data_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "data_freshness": {
- "properties": {
- "interval_min": {
- "type": "integer"
- },
- "label": {
- "type": "string"
- },
- "last_pull_failed_account_count": {
- "type": [
- "integer",
- "null"
- ]
- },
- "last_pull_scope": {
- "const": "workspace"
- },
- "last_pull_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "last_pulled_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "max_staleness_min": {
- "type": "integer"
- },
- "server_now_utc": {
- "type": "string"
- },
- "staleness_seconds": {
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "duration_ms": {
- "type": "integer"
- },
- "failed": {
- "type": "integer"
- },
- "freshness_warnings": {
- "items": {
- "properties": {
- "account_count": {
- "type": "integer"
- },
- "code": {
- "type": "string"
- },
- "dispersion_seconds": {
- "type": "integer"
- },
- "last_pull_failed_account_count": {
- "type": [
- "integer",
- "null"
- ]
- },
- "last_pull_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "message": {
- "type": "string"
- },
- "metrics_source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "newest_source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "observed_account_count": {
- "type": "integer"
- },
- "oldest_source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "funnel_incomplete": {
- "type": "boolean"
- },
- "funnel_read_coverage": {
- "properties": {
- "complete": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "has_more": {
- "type": "boolean"
- },
- "item_count": {
- "type": "integer"
- },
- "limitations": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "metric_completeness": {
- "$ref": "#/$defs/s0"
- },
- "metrics_source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "missing_scopes": {
- "items": {
- "properties": {
- "index": {
- "type": "integer"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "index",
- "status"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "next_cursor": {
- "type": [
- "string",
- "null"
- ]
- },
- "page": {
- "type": "integer"
- },
- "page_size": {
- "type": "integer"
- },
- "refresh_reused": {
- "type": "boolean"
- },
- "returned_count": {
- "type": "integer"
- },
- "scope_count": {
- "type": "integer"
- },
- "source": {
- "type": "string"
- },
- "source_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "source_row_count": {
- "type": "integer"
- },
- "source_truncated": {
- "type": "boolean"
- },
- "source_watermark": {
- "type": [
- "string",
- "null"
- ]
- },
- "standard_metrics_complete": {
- "type": "boolean"
- },
- "succeeded": {
- "type": "integer"
- },
- "total_count": {
- "type": [
- "integer",
- "null"
- ]
- },
- "total_items": {
- "type": "integer"
- },
- "total_pages": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "summary": {
- "properties": {
- "clicks": {
- "type": [
- "number",
- "null"
- ]
- },
- "conversion_value": {
- "type": [
- "number",
- "null"
- ]
- },
- "conversions": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpa": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpc": {
- "type": [
- "number",
- "null"
- ]
- },
- "cpm": {
- "type": [
- "number",
- "null"
- ]
- },
- "ctr": {
- "type": [
- "number",
- "null"
- ]
- },
- "funnel": {
- "$ref": "#/$defs/s8"
- },
- "historical_result": {
- "$ref": "#/$defs/s7"
- },
- "impressions": {
- "type": [
- "number",
- "null"
- ]
- },
- "metric_completeness": {
- "$ref": "#/$defs/s0"
- },
- "reach": {
- "type": [
- "number",
- "null"
- ]
- },
- "result_segments": {
- "$ref": "#/$defs/s2"
- },
- "roas": {
- "type": [
- "number",
- "null"
- ]
- },
- "spend": {
- "type": [
- "number",
- "null"
- ]
- },
- "spend_usd": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "type": "object"
- }
- },
- "required": [
- "items",
- "meta"
- ]
- },
- {
- "properties": {
- "result_page": {
- "additionalProperties": false,
- "properties": {
- "byte_length": {
- "minimum": 0,
- "type": "integer"
- },
- "byte_offset": {
- "minimum": 0,
- "type": "integer"
- },
- "complete": {
- "description": "Frozen result bytes retrieved, not source completeness.",
- "type": "boolean"
- },
- "data_base64url": {
- "type": "string"
- },
- "encoding": {
- "const": "mcp-call-tool-result-json-utf8+base64url"
- },
- "expires_at": {
- "type": "string"
- },
- "next_cursor": {
- "type": [
- "string",
- "null"
- ]
- },
- "segment_sha256": {
- "type": "string"
- },
- "sha256": {
- "type": "string"
- },
- "snapshot_ref": {
- "type": "string"
- },
- "total_bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "version": {
- "const": 1
- }
- },
- "required": [
- "version",
- "encoding",
- "snapshot_ref",
- "sha256",
- "segment_sha256",
- "data_base64url",
- "expires_at",
- "byte_offset",
- "byte_length",
- "total_bytes",
- "next_cursor",
- "complete"
- ],
- "type": "object"
- }
- },
- "required": [
- "result_page"
- ]
- }
-]New value: +[
+ {
+ "properties": {
+ "daily": {
+ "items": {
+ "properties": {
+ "ad_account_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ad_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ad_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "adset_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "adset_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bid_amount": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "bid_strategy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "budget_level": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "campaign_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "campaign_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "clicks": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "configured_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "configured_status_observed_at": {
+ "$ref": "#/$defs/s9"
+ },
+ "conversion_value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "conversions": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpa": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpc": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpm": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "ctr": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "currency": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "daily_budget": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "data_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date_start": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date_stop": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "delivery_issue_codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "delivery_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "effective_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "funnel": {
+ "$ref": "#/$defs/s8"
+ },
+ "funnel_observation": {
+ "$ref": "#/$defs/sa"
+ },
+ "historical_result": {
+ "$ref": "#/$defs/s7"
+ },
+ "id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "impressions": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "lifetime_budget": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "metric_completeness": {
+ "$ref": "#/$defs/s0"
+ },
+ "money_unit": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "optimization_goal": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "product_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reach": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "result_segments": {
+ "$ref": "#/$defs/s2"
+ },
+ "roas": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "spend": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "spend_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "effective_attribution": {
+ "type": "string"
+ },
+ "funnel_events": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "funnel_semantics": {
+ "properties": {
+ "coverage_requirement": {
+ "const": "verify_insights_and_source_coverage"
+ },
+ "empty_funnel_interpretation": {
+ "const": "no_selected_events_returned_not_zero_proof"
+ },
+ "missing_event_implies_missing_insights": {
+ "const": false
+ },
+ "missing_event_is_zero": {
+ "const": false
+ },
+ "read_coverage_scope": {
+ "const": "query_result_not_upstream_ingestion"
+ },
+ "representation": {
+ "const": "sparse"
+ }
+ },
+ "type": "object"
+ },
+ "items": {
+ "items": {
+ "properties": {
+ "ad_account_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ad_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ad_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "adset_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "adset_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bid_amount": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "bid_strategy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "budget_level": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "campaign_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "campaign_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "clicks": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "configured_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "configured_status_observed_at": {
+ "$ref": "#/$defs/s9"
+ },
+ "conversion_value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "conversions": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpa": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpc": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpm": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "ctr": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "currency": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "daily_budget": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "data_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date_start": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date_stop": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "delivery_issue_codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "delivery_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "effective_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "funnel": {
+ "$ref": "#/$defs/s8"
+ },
+ "funnel_observation": {
+ "$ref": "#/$defs/sa"
+ },
+ "historical_result": {
+ "$ref": "#/$defs/s7"
+ },
+ "id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "impressions": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "lifetime_budget": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "media": {
+ "additionalProperties": false,
+ "properties": {
+ "media_type": {
+ "enum": [
+ "image",
+ "video",
+ null
+ ]
+ },
+ "poster_url": {
+ "description": "Temporary signed cover URL; never a persistent media identity or video playback URL.",
+ "format": "uri",
+ "pattern": "^https://",
+ "type": "string"
+ },
+ "source_observed_at": {
+ "format": "date-time",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "enum": [
+ "pending",
+ "ready",
+ "unavailable",
+ "failed"
+ ]
+ },
+ "url_expires_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "version": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "type": "object"
+ },
+ "metric_completeness": {
+ "$ref": "#/$defs/s0"
+ },
+ "money_unit": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "optimization_goal": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "product_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reach": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "result_segments": {
+ "$ref": "#/$defs/s2"
+ },
+ "roas": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "spend": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "spend_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "meta": {
+ "properties": {
+ "cache_hit": {
+ "type": "boolean"
+ },
+ "coalesced": {
+ "type": "boolean"
+ },
+ "complete": {
+ "type": "boolean"
+ },
+ "data_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "data_freshness": {
+ "properties": {
+ "interval_min": {
+ "type": "integer"
+ },
+ "label": {
+ "type": "string"
+ },
+ "last_pull_failed_account_count": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "last_pull_scope": {
+ "const": "workspace"
+ },
+ "last_pull_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "last_pulled_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "max_staleness_min": {
+ "type": "integer"
+ },
+ "server_now_utc": {
+ "type": "string"
+ },
+ "staleness_seconds": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "duration_ms": {
+ "type": "integer"
+ },
+ "failed": {
+ "type": "integer"
+ },
+ "freshness_warnings": {
+ "items": {
+ "properties": {
+ "account_count": {
+ "type": "integer"
+ },
+ "code": {
+ "type": "string"
+ },
+ "dispersion_seconds": {
+ "type": "integer"
+ },
+ "last_pull_failed_account_count": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "last_pull_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": "string"
+ },
+ "metrics_source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "newest_source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "observed_account_count": {
+ "type": "integer"
+ },
+ "oldest_source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "funnel_incomplete": {
+ "type": "boolean"
+ },
+ "funnel_read_coverage": {
+ "properties": {
+ "complete": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "has_more": {
+ "type": "boolean"
+ },
+ "item_count": {
+ "type": "integer"
+ },
+ "limitations": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "metric_completeness": {
+ "$ref": "#/$defs/s0"
+ },
+ "metrics_source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "missing_scopes": {
+ "items": {
+ "properties": {
+ "index": {
+ "type": "integer"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "status"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "page": {
+ "type": "integer"
+ },
+ "page_size": {
+ "type": "integer"
+ },
+ "refresh_reused": {
+ "type": "boolean"
+ },
+ "returned_count": {
+ "type": "integer"
+ },
+ "scope_count": {
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ },
+ "source_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source_row_count": {
+ "type": "integer"
+ },
+ "source_truncated": {
+ "type": "boolean"
+ },
+ "source_watermark": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "standard_metrics_complete": {
+ "type": "boolean"
+ },
+ "succeeded": {
+ "type": "integer"
+ },
+ "total_count": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "total_items": {
+ "type": "integer"
+ },
+ "total_pages": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "page_metrics": {
+ "properties": {
+ "attribution": {
+ "properties": {
+ "requested": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "window": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "metric_scope": {
+ "const": "whole_product_card"
+ },
+ "primary": {
+ "properties": {
+ "action_key": {
+ "type": "string"
+ },
+ "cost": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cost_status": {
+ "type": "string"
+ },
+ "currency": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "type": "string"
+ },
+ "value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "profiles": {
+ "items": {
+ "properties": {
+ "kpi_profile": {
+ "type": "string"
+ },
+ "primary": {
+ "properties": {
+ "cost": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "status": {
+ "type": "string"
+ },
+ "value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "summary": {
+ "properties": {
+ "clicks": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "conversion_value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "conversions": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpa": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpc": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cpm": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "ctr": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "funnel": {
+ "$ref": "#/$defs/s8"
+ },
+ "historical_result": {
+ "$ref": "#/$defs/s7"
+ },
+ "impressions": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "metric_completeness": {
+ "$ref": "#/$defs/s0"
+ },
+ "reach": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "result_segments": {
+ "$ref": "#/$defs/s2"
+ },
+ "roas": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "spend": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "spend_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "items",
+ "meta"
+ ]
+ },
+ {
+ "properties": {
+ "result_page": {
+ "additionalProperties": false,
+ "properties": {
+ "byte_length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "byte_offset": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "complete": {
+ "description": "Frozen result bytes retrieved, not source completeness.",
+ "type": "boolean"
+ },
+ "data_base64url": {
+ "type": "string"
+ },
+ "encoding": {
+ "const": "mcp-call-tool-result-json-utf8+base64url"
+ },
+ "expires_at": {
+ "type": "string"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "segment_sha256": {
+ "type": "string"
+ },
+ "sha256": {
+ "type": "string"
+ },
+ "snapshot_ref": {
+ "type": "string"
+ },
+ "total_bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "version": {
+ "const": 1
+ }
+ },
+ "required": [
+ "version",
+ "encoding",
+ "snapshot_ref",
+ "sha256",
+ "segment_sha256",
+ "data_base64url",
+ "expires_at",
+ "byte_offset",
+ "byte_length",
+ "total_bytes",
+ "next_cursor",
+ "complete"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "result_page"
+ ]
+ }
+]