Skip to main content
Glama

update_report_settings

Destructive

Change a report's settings that apply to all of its widgets: language, excludeMetaCampaigns, period (or from and to) and comparison, any of them. language: en, de, es or fr; it changes how the report reads (labels, dates, numbers, AI text), not its figures. excludeMetaCampaigns: the full list of name terms; Meta Ads campaigns whose name contains any (case-insensitive) are left out of every figure (widgets, blends, share links, PDFs, e-mails, get_report_data), each such widget saying so in its aiNote; [] or null removes it; at most 20 terms of 100 characters. period and comparison: the report's date range and what it is compared with; the preview names the resolved dates, and a widget with its own date range keeps it. Requires MCP write actions; without confirm:true it returns a preview.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "reportId": "<reportId>"
    },
    "name": "update_report_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of a fixed date range, YYYY-MM-DD, on or after from and at most 366 days after today.
fromNoFirst day of a fixed date range, YYYY-MM-DD, with to and instead of period. A real date from 2000-01-01, not after today in the workspace's time zone.
periodNoThe report's period as a preset: last_month, last_quarter, this_month, last_week, last_14_days, last7days, last30days, last90days, last_6_months, last_12_months, quarter_to_date, year_to_date, all_time, today, yesterday, this_week, this_quarter, previous_month, or last_N_today / last_N_yesterday (N 1 to 365). The builder's placeholders (custom, last_custom_today) are refused. For fixed dates, from and to take the place of period. Omit to leave it as it is.
confirmNoSet true to apply. Omit for a preview. With confirm:true, also pass the preview's previewToken.
languageNoThe report's language: en, de, es or fr. Omit to leave it as it is.
reportIdYesReport id (from list_reports).
comparisonNoWhat the period is compared with: previous_period (the period of equal length before it), previous_month (the calendar month before the report's period), previous_year (the same dates a year earlier) or none. There is no custom comparison range. Omit to leave it as it is.
previewTokenNoWith confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments).
excludeMetaCampaignsNoThe complete list of name terms: a Meta Ads campaign whose name contains any of them (case-insensitive) is excluded. [] or null = exclude none. Omit to leave the exclusion as it is. At most 20 terms of at most 100 characters. When a period's exclusion cannot be applied or verified (more than 200 matching campaigns, or a campaign list that does not add up to the account's spend), the affected widgets have no figures and get_report_data names the reason in _meta.unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / comparison
      Added value: +{
      +  "description": "What the period is compared with: previous_period (the period of equal length before it), previous_month (the calendar month before the report's period), previous_year (the same dates a year earlier) or none. There is no custom comparison range. Omit to leave it as it is.",
      +  "enum": [
      +    "previous_period",
      +    "previous_month",
      +    "previous_year",
      +    "none"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / excludeMetaCampaigns / description
      Previous value: -"The complete list of name terms: a Meta Ads campaign whose name contains any of them (case-insensitive) is excluded. [] or null = exclude none. Omit to leave the exclusion as it is. At most 20 terms of at most 100 characters."New value: +"The complete list of name terms: a Meta Ads campaign whose name contains any of them (case-insensitive) is excluded. [] or null = exclude none. Omit to leave the exclusion as it is. At most 20 terms of at most 100 characters. When a period's exclusion cannot be applied or verified (more than 200 matching campaigns, or a campaign list that does not add up to the account's spend), the affected widgets have no figures and get_report_data names the reason in _meta.unavailable."
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "First day of a fixed date range, YYYY-MM-DD, with to and instead of period. A real date from 2000-01-01, not after today in the workspace's time zone.",
      +  "maxLength": 10,
      +  "type": "string"
      +}
    • addedInput schema / properties / period
      Added value: +{
      +  "description": "The report's period as a preset: last_month, last_quarter, this_month, last_week, last_14_days, last7days, last30days, last90days, last_6_months, last_12_months, quarter_to_date, year_to_date, all_time, today, yesterday, this_week, this_quarter, previous_month, or last_N_today / last_N_yesterday (N 1 to 365). The builder's placeholders (custom, last_custom_today) are refused. For fixed dates, from and to take the place of period. Omit to leave it as it is.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Last day of a fixed date range, YYYY-MM-DD, on or after from and at most 366 days after today.",
      +  "maxLength": 10,
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / excludeMetaCampaigns / description
      Previous value: -"The complete list of name terms: a Meta Ads campaign whose name contains any of them (case-insensitive) is excluded. [] or null = exclude none. At most 20 terms of at most 100 characters."New value: +"The complete list of name terms: a Meta Ads campaign whose name contains any of them (case-insensitive) is excluded. [] or null = exclude none. Omit to leave the exclusion as it is. At most 20 terms of at most 100 characters."
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "The report's language: en, de, es or fr. Omit to leave it as it is.",
      +  "enum": [
      +    "en",
      +    "de",
      +    "es",
      +    "fr"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "reportId",
      -  "excludeMetaCampaigns"
      -]New value: +[
      +  "reportId"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=true) by disclosing the full preview/apply protocol: without confirm:true nothing is applied, confirm:true requires the preview's previewToken, valid 15 minutes, once, for exactly the previewed arguments. It also spells out blast radius (exclusions apply to widgets, blends, share links, PDFs, e-mails and get_report_data, with aiNote disclosure) and the degraded case where widgets show no figures and _meta.unavailable names the reason.

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?

Front-loads the scope statement and proceeds field by field, so it is scannable and every field gets its semantics. It is a single dense block with long semicolon-chained sentences, and some limits (e.g. term counts) restate the schema, costing a little tightness.

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

Completeness5/5

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

For a 9-parameter partial-update mutation with no output schema, this covers what an agent needs: which fields are optional, mutually exclusive from/to vs period, the preview-then-confirm handshake with token lifetime, and the downstream effects of exclusion. The only blemish is a limit mismatch with the schema (20 terms of 100 chars vs maxItems 100 / maxLength 500), where the description is the more accurate source.

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

Parameters5/5

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

Schema coverage is already 100%, but the description adds real meaning: language changes labels/dates/numbers/AI text but not figures; excludeMetaCampaigns is the complete replacement list applied everywhere downstream; period/comparison resolve to dates shown in the preview. It also documents the fallback behavior for over-200-campaign matches, which the schema only gestures at.

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

Purpose5/5

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

States a specific verb and resource ("Change a report's settings") and immediately scopes it to settings that "apply to all of its widgets," which separates it from widget-level siblings like edit_widget and from the other update_*_settings tools. An agent can identify the target and scope without opening the schema.

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

Usage Guidelines4/5

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

Usage is clear: pass any subset of the four settings, omitted parameters are left untouched ("Omit to leave it as it is" repeated per field), and confirm:true is required to apply while the default returns a preview. A widget with its own date range keeping it is a useful exclusion. It stops short of naming an explicit alternative tool for per-widget changes, so 4 rather than 5.

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