Skip to main content
Glama

AdsAgent — Meta Ads MCP

insights_query_batch_overview

Read-only

Cached batch: each needs product_ref/product_name/ad_account_id; group_by, YYYY-MM-DD date_from/date_to; page for all. Partial=unknown, never zero. Use advertised insights_query_consistent

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
scopesYes
searchNo
date_toNo
group_byYes
sort_dirNodesc
sort_keyNospend
date_fromNo
page_sizeNo
view_modeNogrouped
managementNo
attributionNo
metadata_contract_versionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedOutput schema / $defs / s5
      Removed value: -{
      -  "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"
      -}
    • addedOutput schema / $defs / s6
      Added value: +{
      +  "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"
      +}
    • removedOutput schema / $defs / sa
      Removed value: -{
      -  "properties": {
      -    "can_report_stored_total": {
      -      "type": "boolean"
      -    },
      -    "reason": {
      -      "type": "string"
      -    },
      -    "zero_proven": {
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "can_report_stored_total",
      -    "zero_proven",
      -    "reason"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / $defs / sb
      Added value: +{
      +  "properties": {
      +    "can_report_stored_total": {
      +      "type": "boolean"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "zero_proven": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "can_report_stored_total",
      +    "zero_proven",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / daily / items / properties / configured_status_observed_at
      Added value: +{
      +  "description": "Configuration snapshot time only.",
      +  "format": "date-time",
      +  "type": "string"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / items / items / properties / configured_status_observed_at
      Added value: +{
      +  "description": "Configuration snapshot time only.",
      +  "format": "date-time",
      +  "type": "string"
      +}
    • changedOutput schema / else / properties / items / items / properties / result / properties / meta / properties / data_freshness / $ref
      Previous value: -"#/$defs/s5"New value: +"#/$defs/s6"
    • changedOutput schema / else / properties / meta / properties / data_freshness / $ref
      Previous value: -"#/$defs/s5"New value: +"#/$defs/s6"
    • changedOutput schema / else / properties / read_evidence / properties / scopes / items / properties / funnel / additionalProperties / $ref
      Previous value: -"#/$defs/sa"New value: +"#/$defs/sb"
    • changedOutput schema / else / properties / read_evidence / properties / scopes / items / properties / metrics / additionalProperties / $ref
      Previous value: -"#/$defs/sa"New value: +"#/$defs/sb"
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / sa
      Added value: +{
      +  "properties": {
      +    "can_report_stored_total": {
      +      "type": "boolean"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "zero_proven": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "can_report_stored_total",
      +    "zero_proven",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / meta / properties / standard_metrics_complete
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / else / properties / read_evidence
      Added value: +{
      +  "description": "Proofs apply independently to returned metrics and scope as stored/observed. A new read_ref is a call identifier, never a source watermark. False or missing proof means unknown, not zero. Fingerprints correlate requests/results in audits; they are not authorization or pagination tokens.",
      +  "properties": {
      +    "artifact_returned": {
      +      "type": "boolean"
      +    },
      +    "configuration": {
      +      "properties": {
      +        "account_inventory_enumerated": {
      +          "const": false
      +        },
      +        "all_campaigns_paused_proven": {
      +          "const": false
      +        },
      +        "requested_ids_complete": {
      +          "type": "boolean"
      +        },
      +        "scope": {
      +          "const": "requested_entity_ids_only"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "mmp": {
      +      "properties": {
      +        "can_report_scoped_totals": {
      +          "type": "boolean"
      +        },
      +        "provider_cache_max_age_seconds": {
      +          "const": 90
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "scope": {
      +          "const": "linked_apps_queried_channels_and_windows"
      +        },
      +        "source_observed_at": {
      +          "type": "null"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "read_ref": {
      +      "pattern": "^read_[0-9a-f]{32}$",
      +      "type": "string"
      +    },
      +    "request_fingerprint": {
      +      "type": "string"
      +    },
      +    "result_fingerprint": {
      +      "type": "string"
      +    },
      +    "scopes": {
      +      "items": {
      +        "properties": {
      +          "all_campaigns_paused_proven": {
      +            "const": false
      +          },
      +          "funnel": {
      +            "additionalProperties": {
      +              "$ref": "#/$defs/sa"
      +            },
      +            "maxProperties": 32,
      +            "type": "object"
      +          },
      +          "index": {
      +            "type": "integer"
      +          },
      +          "inventory_anchor": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "inventory_coverage": {
      +            "type": "string"
      +          },
      +          "inventory_source_observed_at": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "metrics": {
      +            "additionalProperties": {
      +              "$ref": "#/$defs/sa"
      +            },
      +            "type": "object"
      +          },
      +          "metrics_source_observed_at": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "range_complete": {
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "scope": {
      +            "const": "stored_query"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "maxItems": 10,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "read_ref",
      +    "request_fingerprint",
      +    "result_fingerprint"
      +  ],
      +  "type": "object"
      +}
  3. Changed9 schema fields changed
    • removedOutput schema / $defs / s3
      Removed value: -{
      -  "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"
      -}
    • addedOutput schema / $defs / s5
      Added value: +{
      +  "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"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / daily / items / properties / funnel_observation
      Added value: +{
      +  "properties": {
      +    "proves_source_coverage": {
      +      "const": false
      +    },
      +    "proves_zero": {
      +      "const": false
      +    },
      +    "status": {
      +      "enum": [
      +        "selected_events_returned",
      +        "no_selected_events_returned",
      +        "read_unverified",
      +        "insights_unavailable"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / funnel_semantics / properties / empty_funnel_interpretation
      Added value: +{
      +  "const": "no_selected_events_returned_not_zero_proof"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / funnel_semantics / properties / read_coverage_scope
      Added value: +{
      +  "const": "query_result_not_upstream_ingestion"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / items / items / properties / funnel_observation
      Added value: +{
      +  "properties": {
      +    "proves_source_coverage": {
      +      "const": false
      +    },
      +    "proves_zero": {
      +      "const": false
      +    },
      +    "status": {
      +      "enum": [
      +        "selected_events_returned",
      +        "no_selected_events_returned",
      +        "read_unverified",
      +        "insights_unavailable"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / else / properties / items / items / properties / result / properties / meta / properties / data_freshness / $ref
      Previous value: -"#/$defs/s3"New value: +"#/$defs/s5"
    • changedOutput schema / else / properties / meta / properties / data_freshness / $ref
      Previous value: -"#/$defs/s3"New value: +"#/$defs/s5"
    • addedOutput schema / else / properties / workspace_ref
      Added value: +{
      +  "description": "Opaque workspace comparison hint; not an authorization credential.",
      +  "pattern": "^workspace_[0-9a-f]{32}$",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / $defs / s3 / properties / last_pull_scope
      Added value: +{
      +  "const": "workspace"
      +}
  5. Changed19 schema fields changed
    • addedOutput schema / $defs / s2 / additionalProperties
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • removedOutput schema / $defs / s2 / properties
      Removed value: -{
      -  "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_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"
      -  },
      -  "has_more": {
      -    "type": "boolean"
      -  },
      -  "item_count": {
      -    "type": "integer"
      -  },
      -  "limitations": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "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"
      -    ]
      -  },
      -  "succeeded": {
      -    "type": "integer"
      -  },
      -  "total_count": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "total_items": {
      -    "type": "integer"
      -  },
      -  "total_pages": {
      -    "type": "integer"
      -  }
      -}
    • addedOutput schema / $defs / s3
      Added value: +{
      +  "properties": {
      +    "interval_min": {
      +      "type": "integer"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "last_pull_failed_account_count": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "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"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / daily / items / properties / funnel / $ref
      Added value: +"#/$defs/s2"
    • removedOutput schema / else / properties / items / items / properties / result / properties / daily / items / properties / funnel / additionalProperties
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / else / properties / items / items / properties / result / properties / daily / items / properties / funnel / type
      Removed value: -"object"
    • addedOutput schema / else / properties / items / items / properties / result / properties / funnel_semantics
      Added value: +{
      +  "properties": {
      +    "coverage_requirement": {
      +      "const": "verify_insights_and_source_coverage"
      +    },
      +    "missing_event_implies_missing_insights": {
      +      "const": false
      +    },
      +    "missing_event_is_zero": {
      +      "const": false
      +    },
      +    "representation": {
      +      "const": "sparse"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / items / items / properties / funnel / $ref
      Added value: +"#/$defs/s2"
    • removedOutput schema / else / properties / items / items / properties / result / properties / items / items / properties / funnel / additionalProperties
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / else / properties / items / items / properties / result / properties / items / items / properties / funnel / type
      Removed value: -"object"
    • removedOutput schema / else / properties / items / items / properties / result / properties / meta / $ref
      Removed value: -"#/$defs/s2"
    • addedOutput schema / else / properties / items / items / properties / result / properties / meta / properties
      Added value: +{
      +  "cache_hit": {
      +    "type": "boolean"
      +  },
      +  "coalesced": {
      +    "type": "boolean"
      +  },
      +  "complete": {
      +    "type": "boolean"
      +  },
      +  "data_as_of_date": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "data_freshness": {
      +    "$ref": "#/$defs/s3"
      +  },
      +  "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"
      +  },
      +  "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"
      +    ]
      +  },
      +  "succeeded": {
      +    "type": "integer"
      +  },
      +  "total_count": {
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "total_items": {
      +    "type": "integer"
      +  },
      +  "total_pages": {
      +    "type": "integer"
      +  }
      +}
    • addedOutput schema / else / properties / items / items / properties / result / properties / meta / type
      Added value: +"object"
    • addedOutput schema / else / properties / items / items / properties / result / properties / summary / properties / funnel / $ref
      Added value: +"#/$defs/s2"
    • removedOutput schema / else / properties / items / items / properties / result / properties / summary / properties / funnel / additionalProperties
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / else / properties / items / items / properties / result / properties / summary / properties / funnel / type
      Removed value: -"object"
    • removedOutput schema / else / properties / meta / $ref
      Removed value: -"#/$defs/s2"
    • addedOutput schema / else / properties / meta / properties
      Added value: +{
      +  "cache_hit": {
      +    "type": "boolean"
      +  },
      +  "coalesced": {
      +    "type": "boolean"
      +  },
      +  "complete": {
      +    "type": "boolean"
      +  },
      +  "data_as_of_date": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "data_freshness": {
      +    "$ref": "#/$defs/s3"
      +  },
      +  "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"
      +  },
      +  "has_more": {
      +    "type": "boolean"
      +  },
      +  "item_count": {
      +    "type": "integer"
      +  },
      +  "limitations": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "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"
      +    ]
      +  },
      +  "succeeded": {
      +    "type": "integer"
      +  },
      +  "total_count": {
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "total_items": {
      +    "type": "integer"
      +  },
      +  "total_pages": {
      +    "type": "integer"
      +  }
      +}
    • addedOutput schema / else / properties / meta / type
      Added value: +"object"
  6. First observed

TDQS

C2.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this as read-only and non-destructive, so the description's main added behavior is 'Cached batch' and 'Partial=unknown, never zero'. These statements disclose cache staleness and how missing results are represented, which matters for interpreting the output. This adds useful behavior not present in the annotation structure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short but reads as telegraphic fragments rather than structured sentences. 'Partial=unknown, never zero', 'page for all', and 'Use advertised insights_query_consistent' are cryptic and require user intuition to decode. It packs facts but not in a clear, front-loaded, readable structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 13 parameters and no schema-level descriptions for them, the output does provide essential guidance for the scopes array, date format, group_by, and page. But it omits meaning for search, sorting, view_mode, management, attribution, and page_size, and does not establish all field interactions. It is minimally adequate for constructing a basic call, not for confidently using all capabilities.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description has to compensate for the opaque 'scopes' objects. It clarifies that each scope needs product_ref/product_name/ad_account_id and gives date format and page usage, which is valuable. However, 9 or more parameters remain unexplained, such as sort, view_mode, management, search, and attribution; defaults and enums help but the description only partly fills the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says 'Cached batch' but never states what this tool actually does or returns, e.g., that it queries a batch of cached insights. It jumps straight to parameter requirements, leaving the purpose mostly to be inferred from the tool name and the mention of a sibling. This is more than a tautology but still vague.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The line 'Use advertised insights_query_consistent' gives a pointer to an alternative, implying this tool is for cached data and the sibling is for consistent data. However, it does not explicitly explain when to prefer this tool over other insight siblings or under what conditions to choose the consistent variant. The guidance is present but implicit and incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources