Skip to main content
Glama

AdsAgent — Meta Ads MCP

insights_export_csv

Export or queue CSV for one bounded scope

Input Schema

NameRequiredDescriptionDefault
searchNo
date_toNo
filtersNo
group_byYes
date_fromNo
attributionNo
export_modeNogrouped
product_refNo
product_nameNo
ad_account_idNo
confirm_exportNo

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
  2. Changed30 schema fields changed
    • removedOutput schema / $defs
      Removed value: -{
      -  "s0": {
      -    "properties": {
      -      "can_report_stored_total": {
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "type": "string"
      -      },
      -      "zero_proven": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "can_report_stored_total",
      -      "zero_proven",
      -      "reason"
      -    ],
      -    "type": "object"
      -  }
      -}
    • changedOutput schema / else / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "expires_at": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "poll": {
      -        "properties": {
      -          "arguments": {
      -            "properties": {
      -              "product_ref": {
      -                "type": "string"
      -              },
      -              "task_ref": {
      -                "type": "string"
      -              },
      -              "template_name": {
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "poll_after_ms": {
      -        "type": "integer"
      -      },
      -      "status": {
      -        "const": "queued"
      -      },
      -      "submitted_new": {
      -        "type": "boolean"
      -      },
      -      "task_ref": {
      -        "type": "string"
      -      },
      -      "task_status": {
      -        "type": "string"
      -      },
      -      "task_type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "task_ref",
      -      "task_status",
      -      "poll_after_ms",
      -      "expires_at",
      -      "poll"
      -    ]
      -  },
      -  {
      -    "anyOf": [
      -      {
      -        "required": [
      -          "csv"
      -        ]
      -      },
      -      {
      -        "required": [
      -          "artifact"
      -        ]
      -      }
      -    ],
      -    "properties": {
      -      "artifact": {
      -        "properties": {
      -          "artifact_id": {
      -            "type": "string"
      -          },
      -          "artifact_ref": {
      -            "type": "string"
      -          },
      -          "artifact_status": {
      -            "type": "string"
      -          },
      -          "byte_size": {
      -            "type": "integer"
      -          },
      -          "content_type": {
      -            "type": "string"
      -          },
      -          "download_url": {
      -            "type": "string"
      -          },
      -          "expires_at": {
      -            "type": "string"
      -          },
      -          "filename": {
      -            "type": "string"
      -          },
      -          "row_count": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "artifact_id"
      -        ],
      -        "type": "object"
      -      },
      -      "content_type": {
      -        "type": "string"
      -      },
      -      "coverage": {
      -        "properties": {
      -          "complete": {
      -            "type": "boolean"
      -          },
      -          "has_more": {
      -            "type": "boolean"
      -          },
      -          "limitations": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "next_cursor": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "returned_count": {
      -            "type": "integer"
      -          },
      -          "source": {
      -            "type": "string"
      -          },
      -          "source_observed_at": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "source_watermark": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "total_count": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": [
      -          "null",
      -          "object"
      -        ]
      -      },
      -      "csv": {
      -        "type": "string"
      -      },
      -      "effective_attribution": {
      -        "type": "string"
      -      },
      -      "export_mode": {
      -        "type": "string"
      -      },
      -      "filename": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "type": "string"
      -      },
      -      "row_count": {
      -        "type": "integer"
      -      },
      -      "source_watermark": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "zero_proven": {
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "filename",
      -      "content_type",
      -      "row_count",
      -      "effective_attribution",
      -      "export_mode"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "status": {
      +        "const": "queued"
      +      }
      +    },
      +    "required": [
      +      "expires_at",
      +      "poll",
      +      "poll_after_ms",
      +      "status",
      +      "task_ref",
      +      "task_status"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "content_type",
      +      "effective_attribution",
      +      "export_mode",
      +      "filename",
      +      "row_count"
      +    ]
      +  }
      +]
    • addedOutput schema / else / else / properties / artifact
      Added value: +{
      +  "properties": {
      +    "artifact_id": {
      +      "type": "string"
      +    },
      +    "artifact_ref": {
      +      "type": "string"
      +    },
      +    "artifact_status": {
      +      "type": "string"
      +    },
      +    "byte_size": {
      +      "type": "integer"
      +    },
      +    "content_type": {
      +      "type": "string"
      +    },
      +    "download_url": {
      +      "type": "string"
      +    },
      +    "expires_at": {
      +      "type": "string"
      +    },
      +    "filename": {
      +      "type": "string"
      +    },
      +    "row_count": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "artifact_id"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / else / else / properties / content_type
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / coverage
      Added value: +{
      +  "properties": {
      +    "complete": {
      +      "type": "boolean"
      +    },
      +    "has_more": {
      +      "type": "boolean"
      +    },
      +    "limitations": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "returned_count": {
      +      "type": "integer"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "source_observed_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source_watermark": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "total_count": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / else / else / properties / csv
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / effective_attribution
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / expires_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / export_mode
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / filename
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / poll
      Added value: +{
      +  "properties": {
      +    "arguments": {
      +      "properties": {
      +        "product_ref": {
      +          "type": "string"
      +        },
      +        "task_ref": {
      +          "type": "string"
      +        },
      +        "template_name": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / else / else / properties / poll_after_ms
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / else / else / properties / preview
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / funnel / additionalProperties / $ref
      Removed value: -"#/$defs/s0"
    • addedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / funnel / additionalProperties / properties
      Added value: +{
      +  "can_report_stored_total": {
      +    "type": "boolean"
      +  },
      +  "reason": {
      +    "type": "string"
      +  },
      +  "zero_proven": {
      +    "type": "boolean"
      +  }
      +}
    • addedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / funnel / additionalProperties / required
      Added value: +[
      +  "can_report_stored_total",
      +  "zero_proven",
      +  "reason"
      +]
    • addedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / funnel / additionalProperties / type
      Added value: +"object"
    • removedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / metrics / additionalProperties / $ref
      Removed value: -"#/$defs/s0"
    • addedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / metrics / additionalProperties / properties
      Added value: +{
      +  "can_report_stored_total": {
      +    "type": "boolean"
      +  },
      +  "reason": {
      +    "type": "string"
      +  },
      +  "zero_proven": {
      +    "type": "boolean"
      +  }
      +}
    • addedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / metrics / additionalProperties / required
      Added value: +[
      +  "can_report_stored_total",
      +  "zero_proven",
      +  "reason"
      +]
    • addedOutput schema / else / else / properties / read_evidence / properties / scopes / items / properties / metrics / additionalProperties / type
      Added value: +"object"
    • addedOutput schema / else / else / properties / row_count
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / else / else / properties / source_watermark
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / else / else / properties / status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "queued"
      +    },
      +    {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  ]
      +}
    • addedOutput schema / else / else / properties / submitted_new
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / else / else / properties / task_ref
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / task_status
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / task_type
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / zero_proven
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
  3. Changed6 schema fields changed
    • addedOutput schema / else / then / properties / category
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / expected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / else / then / properties / failure_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / responsibility_hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / route
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / user_visible
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  5. Changed2 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "s0": {
      +    "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 / 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/s0"
      +            },
      +            "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/s0"
      +            },
      +            "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"
      +}
  6. Changed1 schema field changed
    • addedOutput schema / else / else / properties
      Added value: +{
      +  "workspace_ref": {
      +    "description": "Opaque workspace comparison hint; not an authorization credential.",
      +    "pattern": "^workspace_[0-9a-f]{32}$",
      +    "type": "string"
      +  }
      +}
  7. First observed

TDQS

C2/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false but destructiveHint=false and openWorldHint=false, so the agent knows this is a safe non-destructive mutation; 'export or queue' is consistent with that. However, the description never explains the write semantics: what gets created, whether 'queue' means an async job, what confirm_export=false vs true does, or any rate limits — critical context the annotations don't supply.

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?

It is brief and front-loaded, but so terse as to be under-specified rather than concise. A single six-word fragment cannot carry meaning for an 11-parameter write tool with a nested filter schema.

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

Completeness1/5

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

Given 11 parameters, a nested filters object, a write/queue operation and a confirm_export gate, the description omits everything an agent needs to call this correctly. An output schema exists so return values needn't be explained, but the invocation semantics are absent.

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

Parameters1/5

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

Schema description coverage is 0% across 11 parameters, including the required group_by, the nested filters array with its op enum, export_mode (default 'grouped'), and the confirm_export flag. The description provides no parameter meaning at all, so it fails to compensate for the coverage gap on a complex schema.

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

Purpose3/5

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

It states a concrete verb (export / queue CSV) and mentions 'one bounded scope', so the basic action is recognizable. But 'bounded scope' is vague and the description never distinguishes this tool from siblings like console_export_csv or render_performance_report, which also produce CSV-style output.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the many sibling alternatives (console_export_csv, insights_pull_insights, render_performance_report). The phrase 'one bounded scope' hints at a limitation but doesn't state when the tool is or isn't appropriate.

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