Skip to main content
Glama

AdsAgent — Meta Ads MCP

console_export_csv

Export stored Console metrics as CSV

Input Schema

NameRequiredDescriptionDefault
scopeYes
searchNo
date_toYes
group_byYes
date_fromYes
attributionNo
export_modeNogrouped
status_filterNo
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. Changed2 schema fields changed
    • changedOutput schema / else / else / anyOf
      Previous value: -[
      -  {
      -    "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"
      -          },
      -          "sha256": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "download_url"
      -        ],
      -        "type": "object"
      -      },
      -      "filename": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "ready"
      -      },
      -      "metadata": {
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "row_count": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "artifact",
      -      "filename",
      -      "row_count"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "kind": {
      -        "const": "queued"
      -      },
      -      "task_ref": {
      -        "type": "string"
      -      },
      -      "task_status": {
      -        "type": "string"
      -      },
      -      "task_type": {
      -        "const": "insights_export"
      -      }
      -    },
      -    "required": [
      -      "task_ref",
      -      "task_status",
      -      "task_type"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "ready"
      +      }
      +    },
      +    "required": [
      +      "artifact",
      +      "filename",
      +      "kind",
      +      "row_count"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "queued"
      +      },
      +      "task_type": {
      +        "const": "insights_export"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "task_ref",
      +      "task_status",
      +      "task_type"
      +    ]
      +  }
      +]
    • addedOutput schema / else / else / properties
      Added value: +{
      +  "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"
      +      },
      +      "sha256": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "download_url"
      +    ],
      +    "type": "object"
      +  },
      +  "filename": {
      +    "type": "string"
      +  },
      +  "kind": {
      +    "enum": [
      +      "ready",
      +      "queued"
      +    ]
      +  },
      +  "metadata": {
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "row_count": {
      +    "type": "integer"
      +  },
      +  "task_ref": {
      +    "type": "string"
      +  },
      +  "task_status": {
      +    "type": "string"
      +  },
      +  "task_type": {
      +    "const": "insights_export"
      +  }
      +}
  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. Added

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare that this is not read-only, not destructive, and closed-world. The description adds only that the data source is stored Console metrics and the format is CSV, but says nothing about the confirm_export gate, whether an export job is created, permissions, limits, or side effects.

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

Conciseness4/5

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

The description is a single, front-loaded sentence with no wasted wording. It is efficient, though its brevity is part of why important operational details are absent.

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

Completeness2/5

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

This is a complex export tool with 9 input parameters and a nested scope object, and the description explains none of the input semantics or export behavior. An output schema exists, so return values need not be described, but the input-side context is still substantially incomplete.

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 9 parameters, including a nested discriminated scope, several enums, and a confirm_export flag. The description does not explain any parameter, so it completely fails to compensate for the missing schema documentation.

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

Purpose4/5

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

The description states a specific verb (Export), resource (stored Console metrics), and output format (CSV). It is clear what the tool does, but it does not differentiate itself from the closely named sibling insights_export_csv.

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 alternatives such as insights_export_csv or console_query_overview. It also omits prerequisites, such as whether an export must be confirmed or what scope/date filters are 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