Skip to main content
Glama

Costory: Your Finops MCP

create_alert

Destructive

Create a saved Costory cost monitor that evaluates queries and sends notifications when its condition fires. Use when the user requests ongoing monitoring. Creation configures future delivery rather than sending an immediate notification. New alerts are creator-only (you get Admin). To share, call set_object_permissions with resourceKind "costAlert". The advertised series schema is compact to reduce tool size. Use the full series schema in query.queries; the same series validation applies and no separate query call is required. Accepts the same query config as query (datePreset for preset ranges; hand-computed from/to only for custom ranges). scopeId is the same id as list_teams. It is stored on the alert and is not merged into the query filters. Omit it for no scope. The firing rule is a single condition boolean expression over the query names, e.g. a > 1000, rollingSum(a, 7, DAY) > 50000, or (a - timeShift(a, 1, DAY)) / timeShift(a, 1, DAY) > 0.2. For today vs the previous complete calendar month daily average, use (a - lastMonthAvg(a)) / abs(lastMonthAvg(a)) > 0.1. Window math (rollingSum/weekToDateSum/monthToDateSum/lastWeekSum/lastWeekAvg/lastMonthSum/lastMonthAvg/timeShift) is evaluated daily in BigQuery, so you do NOT pick an evaluation period — instead set dedup to control re-notification frequency (CALENDAR once per WEEK/MONTH, or ROLLING once every N days). The period (datePreset or from/to) defines the preview/look-back window for the underlying queries. Use list_available_destinations for SLACK/TEAMS channel IDs. Optional tagIds: existing IDs from list_tags and/or { name, color? } for new tags; color defaults to #6366F1; missing tags are created. Omit and [] both leave the alert untagged. Optional messageWidgets: the alert's message content — exactly one ALERT widget (the notification body) plus optional TEXT / GRAPH_SNAPSHOT / TOP_FLOP / DASHBOARD_PDF widgets in delivery order; omit for the default single ALERT widget. Query-backed widgets may omit queries to inherit the alert's first source cost query. Returns a URL that you MUST include in your response so the user can view/edit the alert. Effects: Saves a monitoring workflow that enables future irreversible notifications. Before creating it, show the monitored data scope, firing condition, notification frequency, and all recipients; obtain the user's explicit confirmation. Scope: Notifications reach other people through a Slack channel, a Teams channel, or an email address the caller specifies, including an address outside the organization. EXAMPLE: "Alert me on Slack if our production AWS spend exceeds $50k over any 7 days, at most once a week" → { name: "Prod AWS weekly alert", queries: [{ type: "cost", name: "a", metricId: "cost", currency: "USD", filterCel: "cos_provider in ["AWS"] && cos_environment in ["prod"]" }], datePreset: "TRAILING_90_DAYS", condition: "rollingSum(a, 7, DAY) > 50000", dedup: { kind: "CALENDAR", calendarUnit: "WEEK" }, notificationChannel: "SLACK", slackChannelId: "C01ABC" }

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": {
      "queries": "<queries>",
      "name": "<name>",
      "condition": "<condition>",
      "dedup": "<dedup>",
      "notificationChannel": "<notificationChannel>"
    },
    "name": "create_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoExplicit window end (inclusive, YYYY-MM-DD). Use with from instead of datePreset.
fromNoExplicit window start (YYYY-MM-DD). Use with to instead of datePreset.
nameYesDisplay name for the alert.
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
aggByNoTime grain for the series: Hour, Day, Week, Month, or Period (default Month).Month
dedupYesDeduplication config controlling how often a still-firing group notifies. The window is per groupBy value; delivery stays one message listing newly eligible groups. Either CALENDAR (kind: CALENDAR, calendarUnit: WEEK | MONTH) = at most once per current ISO week / calendar month, or ROLLING (kind: ROLLING, windowDays: N) = at most once every N days.
limitNoMax groups/rows per series. Omit to use the default (100). Increase up to 1000 when you need more than 100 breakdown groups.
scoutNoScout persona NAME (from list_scouts) or its id, assigned to dynamic explanations. Omitted = no scout. Setting this does not require DIGEST display "summary" or enableAiInvestigation — do not ask the user for a digest explanation.
emailsNoEmail addresses (required if EMAIL)
tagIdsNo`list_tags` id or `{ name, color? }` (created if missing, default #6366F1). Omit and [] leave it untagged.
compareNoAdd a comparison period to show cost evolution side-by-side. Omit `from`/`to` to compare against the preceding period automatically; set `chartType` to choose how it renders.
contextNoOptional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data.
queriesYesThe advertised series items are compact to reduce tool size. Use the full series schema in `query.queries`; the server validates each series against it, and no separate query call is required.
scopeIdNoTeam scope id (list_teams). Stored on the alert, not merged into query filters. Omit for no scope.
conditionYesAlerts v3 firing rule: a single boolean expression over the query names (`name` field of each query). Supports arithmetic (+ - * /), comparisons (> >= < <= == !=), logical and/or/not, parentheses, and these window functions: rollingSum(a, N, UNIT) (trailing sum over the last N units, UNIT ∈ DAY|WEEK|MONTH where MONTH is a 30-day window, not a calendar month, inclusive of today), weekToDateSum(a) (Monday-to-date), monthToDateSum(a) (1st-of-month-to-date), lastWeekSum(a)/lastMonthSum(a) (previous complete calendar period totals), lastWeekAvg(a)/lastMonthAvg(a) (period sum divided by 7 or the actual 28–31 calendar days, including zero-spend days), and timeShift(a, N, UNIT) (value shifted back N units; UNIT ∈ DAY|WEEK only — MONTH and YEAR are not supported; use timeShift(a, 30, DAY) as a 30-day approximation; may wrap a window function). Examples: `a > 1000`, `(a - lastMonthAvg(a)) / abs(lastMonthAvg(a)) > 0.1`, `rollingSum(a, 7, DAY) > 1000`, `(a - timeShift(a, 1, DAY)) / timeShift(a, 1, DAY) > 0.2`, `a > 10000 or rollingSum(a, 7, DAY) > 50000`.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
datePresetNoOfficial date preset (same as Explore, e.g. MTD, LAST_MONTH). Forecast: CURRENT_MONTH / CURRENT_QUARTER / CURRENT_YEAR. Mutually exclusive with from/to.
messageWidgetsNoReplaces the alert's message-widget list wholesale (alert body plus optional TEXT / GRAPH_SNAPSHOT / TOP_FLOP / DASHBOARD_PDF extras). Omit to leave the stored list unchanged. Exactly one ALERT widget is required; DIGEST is not supported on alerts. Read the current list via `get` and echo each entry's `config` back verbatim for widgets you are not changing (the prose `parameters` summary is truncated and not writable).
slackChannelIdNoSlack target id (required if SLACK): a channel id (C…) to post to a channel, or a Slack user id (U…) to deliver a direct message to that user. Use list_available_destinations to discover both channels and the signed-in user's DM.
teamsChannelIdNoTeams channel ID (required if TEAMS)
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
notificationChannelYesNotification channel

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / compare / properties / chartType / description
      Previous value: -"How the comparison renders: WATERFALL (default, contribution to change), TABLE (before/after rows), or KPI_BREAKDOWN (per-group KPI cards). Note KPI_BREAKDOWN and TABLE widgets cannot be exported as PNG via get_widget_png."New value: +"How the comparison renders: WATERFALL (default, contribution to change), TABLE (before/after rows), or KPI_BREAKDOWN (per-group KPI cards). Note KPI_BREAKDOWN and TABLE results cannot be rendered as PNG."
    • changedInput schema / properties / context / description
      Previous value: -"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."New value: +"Optional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data."
    • changedInput schema / properties / queries / description
      Previous value: -"Same series objects as the `query` tool `queries` array (cost / metric / usage / externalMetric / formula / budget). Each requires `type` (never omit) and a `name` (use short ids like a/b/c); put human labels in `alias`."New value: +"The advertised series items are compact to reduce tool size. Use the full series schema in `query.queries`; the server validates each series against it, and no separate query call is required."
    • changedInput schema / required
      Previous value: -[
      -  "queries",
      -  "name",
      -  "condition",
      -  "dedup",
      -  "notificationChannel",
      -  "context"
      -]New value: +[
      +  "queries",
      +  "name",
      +  "condition",
      +  "dedup",
      +  "notificationChannel"
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / condition / description
      Previous value: -"Alerts v3 firing rule: a single boolean expression over the query names (`name` field of each query). Supports arithmetic (+ - * /), comparisons (> >= < <= == !=), logical and/or/not, parentheses, and these window functions: rollingSum(a, N, UNIT) (trailing sum over the last N units, UNIT ∈ DAY|WEEK|MONTH where MONTH is a 30-day window, not a calendar month, inclusive of today), weekToDateSum(a) (Monday-to-date), monthToDateSum(a) (1st-of-month-to-date), and timeShift(a, N, UNIT) (value shifted back N units; UNIT ∈ DAY|WEEK only — MONTH and YEAR are not supported; use timeShift(a, 30, DAY) as a 30-day approximation; may wrap a window function). Examples: `a > 1000`, `rollingSum(a, 7, DAY) > 1000`, `(a - timeShift(a, 1, DAY)) / timeShift(a, 1, DAY) > 0.2`, `a > 10000 or rollingSum(a, 7, DAY) > 50000`."New value: +"Alerts v3 firing rule: a single boolean expression over the query names (`name` field of each query). Supports arithmetic (+ - * /), comparisons (> >= < <= == !=), logical and/or/not, parentheses, and these window functions: rollingSum(a, N, UNIT) (trailing sum over the last N units, UNIT ∈ DAY|WEEK|MONTH where MONTH is a 30-day window, not a calendar month, inclusive of today), weekToDateSum(a) (Monday-to-date), monthToDateSum(a) (1st-of-month-to-date), lastWeekSum(a)/lastMonthSum(a) (previous complete calendar period totals), lastWeekAvg(a)/lastMonthAvg(a) (period sum divided by 7 or the actual 28–31 calendar days, including zero-spend days), and timeShift(a, N, UNIT) (value shifted back N units; UNIT ∈ DAY|WEEK only — MONTH and YEAR are not supported; use timeShift(a, 30, DAY) as a 30-day approximation; may wrap a window function). Examples: `a > 1000`, `(a - lastMonthAvg(a)) / abs(lastMonthAvg(a)) > 0.1`, `rollingSum(a, 7, DAY) > 1000`, `(a - timeShift(a, 1, DAY)) / timeShift(a, 1, DAY) > 0.2`, `a > 10000 or rollingSum(a, 7, DAY) > 50000`."
    • changedInput schema / properties / messageWidgets / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "description": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "title": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "ALERT",
      -        "description": "The triggered-alert body itself (date, condition, firing groups, explore links). Exactly one ALERT widget is required in every list.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contentMarkdown": {
      -        "description": "Markdown content, 1–10,000 characters.",
      -        "maxLength": 10000,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "description": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "title": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "TEXT",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "contentMarkdown"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "datePreset": {
      -        "$ref": "#/definitions/AlertMcpDatePreset"
      -      },
      -      "description": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "from": {
      -        "$ref": "#/definitions/AlertMcpFrom"
      -      },
      -      "queries": {
      -        "$ref": "#/definitions/AlertMcpQueries"
      -      },
      -      "title": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "to": {
      -        "$ref": "#/definitions/AlertMcpTo"
      -      },
      -      "type": {
      -        "const": "GRAPH_SNAPSHOT",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "comparison": {
      -        "default": {
      -          "kind": "PREVIOUS_PERIOD"
      -        },
      -        "description": "Baseline: PREVIOUS_PERIOD (default; the previous day at send time on alerts) or a CUSTOM { from, to } range.",
      -        "discriminator": {
      -          "propertyName": "kind"
      -        },
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "PREVIOUS_PERIOD",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "properties": {
      -              "from": {
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "kind": {
      -                "const": "CUSTOM",
      -                "type": "string"
      -              },
      -              "to": {
      -                "minLength": 1,
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "from",
      -              "to"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "cutOff": {
      -        "default": 0,
      -        "description": "Minimum absolute cost change for a row to qualify (default 0).",
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "datePreset": {
      -        "$ref": "#/definitions/AlertMcpDatePreset"
      -      },
      -      "description": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "flopN": {
      -        "default": 5,
      -        "description": "Number of largest-decrease rows (default 5).",
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "from": {
      -        "$ref": "#/definitions/AlertMcpFrom"
      -      },
      -      "queries": {
      -        "$ref": "#/definitions/AlertMcpQueries"
      -      },
      -      "title": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "to": {
      -        "$ref": "#/definitions/AlertMcpTo"
      -      },
      -      "topN": {
      -        "default": 5,
      -        "description": "Number of largest-increase rows (default 5).",
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "type": {
      -        "const": "TOP_FLOP",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dashboardId": {
      -        "description": "Id of the dashboard to render as a PDF (from `search`/`get`).",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "datePreset": {
      -        "$ref": "#/definitions/AlertMcpDatePreset"
      -      },
      -      "description": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "from": {
      -        "$ref": "#/definitions/AlertMcpFrom"
      -      },
      -      "title": {
      -        "default": "",
      -        "type": "string"
      -      },
      -      "to": {
      -        "$ref": "#/definitions/AlertMcpTo"
      -      },
      -      "type": {
      -        "const": "DASHBOARD_PDF",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "dashboardId"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "description": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "title": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "ALERT",
      +        "description": "The triggered-alert body itself (date, condition, firing groups, explore links). Exactly one ALERT widget is required in every list.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contentMarkdown": {
      +        "description": "Markdown body. Liquid templates print live cost numbers using the alert's cost query.",
      +        "maxLength": 10021,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "datePreset": {
      +        "$ref": "#/definitions/AlertMcpDatePreset"
      +      },
      +      "description": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "from": {
      +        "$ref": "#/definitions/AlertMcpFrom"
      +      },
      +      "queries": {
      +        "$ref": "#/definitions/AlertMcpQueries"
      +      },
      +      "title": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "to": {
      +        "$ref": "#/definitions/AlertMcpTo"
      +      },
      +      "type": {
      +        "const": "TEXT",
      +        "description": "Markdown note. Liquid templates (`{{ }}` / `{% %}`) can print live cost numbers from the alert's cost query. Only `contentMarkdown` is required. Optional `queries` plus `datePreset` or `from`/`to` store a chart override; omit them to inherit the alert's cost query.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "contentMarkdown"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "datePreset": {
      +        "$ref": "#/definitions/AlertMcpDatePreset"
      +      },
      +      "description": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "from": {
      +        "$ref": "#/definitions/AlertMcpFrom"
      +      },
      +      "queries": {
      +        "$ref": "#/definitions/AlertMcpQueries"
      +      },
      +      "title": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "to": {
      +        "$ref": "#/definitions/AlertMcpTo"
      +      },
      +      "type": {
      +        "const": "GRAPH_SNAPSHOT",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "comparison": {
      +        "default": {
      +          "kind": "PREVIOUS_PERIOD"
      +        },
      +        "description": "Baseline: PREVIOUS_PERIOD (default; the previous day at send time on alerts) or a CUSTOM { from, to } range.",
      +        "discriminator": {
      +          "propertyName": "kind"
      +        },
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "PREVIOUS_PERIOD",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "properties": {
      +              "from": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "kind": {
      +                "const": "CUSTOM",
      +                "type": "string"
      +              },
      +              "to": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "from",
      +              "to"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "cutOff": {
      +        "default": 0,
      +        "description": "Minimum absolute cost change for a row to qualify (default 0).",
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "datePreset": {
      +        "$ref": "#/definitions/AlertMcpDatePreset"
      +      },
      +      "description": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "flopN": {
      +        "default": 5,
      +        "description": "Number of largest-decrease rows (default 5).",
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "from": {
      +        "$ref": "#/definitions/AlertMcpFrom"
      +      },
      +      "queries": {
      +        "$ref": "#/definitions/AlertMcpQueries"
      +      },
      +      "title": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "to": {
      +        "$ref": "#/definitions/AlertMcpTo"
      +      },
      +      "topN": {
      +        "default": 5,
      +        "description": "Number of largest-increase rows (default 5).",
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "type": {
      +        "const": "TOP_FLOP",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dashboardId": {
      +        "description": "Id of the dashboard to render as a PDF (from `search`/`get`).",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "datePreset": {
      +        "$ref": "#/definitions/AlertMcpDatePreset"
      +      },
      +      "description": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "from": {
      +        "$ref": "#/definitions/AlertMcpFrom"
      +      },
      +      "title": {
      +        "default": "",
      +        "type": "string"
      +      },
      +      "to": {
      +        "$ref": "#/definitions/AlertMcpTo"
      +      },
      +      "type": {
      +        "const": "DASHBOARD_PDF",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "dashboardId"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / scout / description
      Previous value: -"Scout persona NAME (from list_scouts) or its id, assigned to dynamic explanations. Omitted = no scout."New value: +"Scout persona NAME (from list_scouts) or its id, assigned to dynamic explanations. Omitted = no scout. Setting this does not require DIGEST display \"summary\" or enableAiInvestigation — do not ask the user for a digest explanation."
  3. Changed1 schema field changed
    • changedInput schema / properties / condition / description
      Previous value: -"Alerts v3 firing rule: a single boolean expression over the query names (`name` field of each query). Supports arithmetic (+ - * /), comparisons (> >= < <= == !=), logical and/or/not, parentheses, and these window functions: rollingSum(a, N, UNIT) (trailing sum over the last N units, UNIT ∈ DAY|WEEK|MONTH, inclusive of today), weekToDateSum(a) (Monday-to-date), monthToDateSum(a) (1st-of-month-to-date), and timeShift(a, N, UNIT) (value shifted back N units; may wrap a window function). Examples: `a > 1000`, `rollingSum(a, 7, DAY) > 1000`, `(a - timeShift(a, 1, DAY)) / timeShift(a, 1, DAY) > 0.2`, `a > 10000 or rollingSum(a, 7, DAY) > 50000`."New value: +"Alerts v3 firing rule: a single boolean expression over the query names (`name` field of each query). Supports arithmetic (+ - * /), comparisons (> >= < <= == !=), logical and/or/not, parentheses, and these window functions: rollingSum(a, N, UNIT) (trailing sum over the last N units, UNIT ∈ DAY|WEEK|MONTH where MONTH is a 30-day window, not a calendar month, inclusive of today), weekToDateSum(a) (Monday-to-date), monthToDateSum(a) (1st-of-month-to-date), and timeShift(a, N, UNIT) (value shifted back N units; UNIT ∈ DAY|WEEK only — MONTH and YEAR are not supported; use timeShift(a, 30, DAY) as a 30-day approximation; may wrap a window function). Examples: `a > 1000`, `rollingSum(a, 7, DAY) > 1000`, `(a - timeShift(a, 1, DAY)) / timeShift(a, 1, DAY) > 0.2`, `a > 10000 or rollingSum(a, 7, DAY) > 50000`."
  4. Changed4 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\""New value: +"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."
    • changedInput schema / properties / queries / description
      Previous value: -"Same series objects as the `query` tool `queries` array (cost / metric / usage / externalMetric / formula / budget). Each requires `type` (never omit) and a `name` (prefer short ids like a/b/c); put human labels in `alias`."New value: +"Same series objects as the `query` tool `queries` array (cost / metric / usage / externalMetric / formula / budget). Each requires `type` (never omit) and a `name` (use short ids like a/b/c); put human labels in `alias`."
    • changedInput schema / properties / scout / description
      Previous value: -"Scout persona NAME (from list_scouts) — preferred — or its id, assigned to dynamic explanations. Omitted = no scout."New value: +"Scout persona NAME (from list_scouts) or its id, assigned to dynamic explanations. Omitted = no scout."
    • changedInput schema / required
      Previous value: -[
      -  "queries",
      -  "name",
      -  "condition",
      -  "dedup",
      -  "notificationChannel",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "queries",
      +  "name",
      +  "condition",
      +  "dedup",
      +  "notificationChannel",
      +  "context"
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "queries",
      -  "name",
      -  "condition",
      -  "dedup",
      -  "notificationChannel"
      -]New value: +[
      +  "queries",
      +  "name",
      +  "condition",
      +  "dedup",
      +  "notificationChannel",
      +  "context",
      +  "llm_model"
      +]
  6. Changed5 schema fields changed
    • changedInput schema / properties / emails / items / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • removedInput schema / properties / scopeId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / scopeId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / scout
      Added value: +{
      +  "description": "Scout persona NAME (from list_scouts) — preferred — or its id, assigned to dynamic explanations. Omitted = no scout.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "condition",
      -  "dedup",
      -  "notificationChannel"
      -]New value: +[
      +  "queries",
      +  "name",
      +  "condition",
      +  "dedup",
      +  "notificationChannel"
      +]
  7. Changed2 schema fields changed
    • addedInput schema / definitions
      Added value: +{
      +  "AlertMcpDatePreset": {
      +    "description": "Query period preset for this widget — any preset accepted by the `query` tool or the alert's top-level `datePreset` (e.g. MTD, LAST_MONTH, TRAILING_7_DAYS, TRAILING_90_DAYS). Omit to inherit the alert's effective-day period. Mutually exclusive with from/to. Invented values are rejected.",
      +    "type": "string"
      +  },
      +  "AlertMcpFrom": {
      +    "description": "Custom range start (YYYY-MM-DD). Use with to instead of datePreset.",
      +    "type": "string"
      +  },
      +  "AlertMcpQueries": {
      +    "description": "Optional explicit query override: `queries` (same series objects as the `query` tool) plus an optional period (`datePreset` or `from`/`to`, daily grain). Omit entirely to inherit the alert's first source cost query, resolved with the alert's currency, scope, and effective-day period at send time.",
      +    "items": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "AlertMcpTo": {
      +    "description": "Custom range end (inclusive, YYYY-MM-DD). Use with from instead of datePreset.",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / messageWidgets
      Added value: +{
      +  "description": "Replaces the alert's message-widget list wholesale (alert body plus optional TEXT / GRAPH_SNAPSHOT / TOP_FLOP / DASHBOARD_PDF extras). Omit to leave the stored list unchanged. Exactly one ALERT widget is required; DIGEST is not supported on alerts. Read the current list via `get` and echo each entry's `config` back verbatim for widgets you are not changing (the prose `parameters` summary is truncated and not writable).",
      +  "items": {
      +    "discriminator": {
      +      "propertyName": "type"
      +    },
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "description": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "title": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "type": {
      +            "const": "ALERT",
      +            "description": "The triggered-alert body itself (date, condition, firing groups, explore links). Exactly one ALERT widget is required in every list.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "contentMarkdown": {
      +            "description": "Markdown content, 1–10,000 characters.",
      +            "maxLength": 10000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "description": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "title": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "type": {
      +            "const": "TEXT",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "contentMarkdown"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "datePreset": {
      +            "$ref": "#/definitions/AlertMcpDatePreset"
      +          },
      +          "description": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "from": {
      +            "$ref": "#/definitions/AlertMcpFrom"
      +          },
      +          "queries": {
      +            "$ref": "#/definitions/AlertMcpQueries"
      +          },
      +          "title": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "to": {
      +            "$ref": "#/definitions/AlertMcpTo"
      +          },
      +          "type": {
      +            "const": "GRAPH_SNAPSHOT",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "comparison": {
      +            "default": {
      +              "kind": "PREVIOUS_PERIOD"
      +            },
      +            "description": "Baseline: PREVIOUS_PERIOD (default; the previous day at send time on alerts) or a CUSTOM { from, to } range.",
      +            "discriminator": {
      +              "propertyName": "kind"
      +            },
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "PREVIOUS_PERIOD",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "properties": {
      +                  "from": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "kind": {
      +                    "const": "CUSTOM",
      +                    "type": "string"
      +                  },
      +                  "to": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "from",
      +                  "to"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "cutOff": {
      +            "default": 0,
      +            "description": "Minimum absolute cost change for a row to qualify (default 0).",
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "datePreset": {
      +            "$ref": "#/definitions/AlertMcpDatePreset"
      +          },
      +          "description": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "flopN": {
      +            "default": 5,
      +            "description": "Number of largest-decrease rows (default 5).",
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "from": {
      +            "$ref": "#/definitions/AlertMcpFrom"
      +          },
      +          "queries": {
      +            "$ref": "#/definitions/AlertMcpQueries"
      +          },
      +          "title": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "to": {
      +            "$ref": "#/definitions/AlertMcpTo"
      +          },
      +          "topN": {
      +            "default": 5,
      +            "description": "Number of largest-increase rows (default 5).",
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "type": {
      +            "const": "TOP_FLOP",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "dashboardId": {
      +            "description": "Id of the dashboard to render as a PDF (from `search`/`get`).",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "datePreset": {
      +            "$ref": "#/definitions/AlertMcpDatePreset"
      +          },
      +          "description": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "from": {
      +            "$ref": "#/definitions/AlertMcpFrom"
      +          },
      +          "title": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "to": {
      +            "$ref": "#/definitions/AlertMcpTo"
      +          },
      +          "type": {
      +            "const": "DASHBOARD_PDF",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "dashboardId"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
  8. Changed1 schema field changed
    • changedInput schema / properties / datePreset / description
      Previous value: -"Official date preset (same DatePreset as dashboards/reports, e.g. MTD, LAST_MONTH, TRAILING_30_DAYS). Prefer this over hand-computed from/to when a preset matches. Mutually exclusive with from/to."New value: +"Official date preset (same as Explore, e.g. MTD, LAST_MONTH). Forecast: CURRENT_MONTH / CURRENT_QUARTER / CURRENT_YEAR. Mutually exclusive with from/to."
  9. Changed1 schema field changed
    • changedInput schema / properties / scopeId / description
      Previous value: -"Optional saved team scope id (from list_teams). Merges the scope whereClause into cost/usage queries."New value: +"Team scope id (list_teams). Stored on the alert, not merged into query filters. Omit for no scope."
  10. Changed1 schema field changed
    • addedInput schema / properties / tagIds
      Added value: +{
      +  "description": "`list_tags` id or `{ name, color? }` (created if missing, default #6366F1). Omit and [] leave it untagged.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "description": "Existing tag ID",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "color": {
      +            "default": "#6366F1",
      +            "description": "Hex color for the new tag (defaults to #6366F1)",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "name": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "type": "array"
      +}
  11. Changed1 schema field changed
    • changedInput schema / properties / datePreset / enum
      Previous value: -[
      -  "TRAILING_90_DAYS",
      -  "TRAILING_30_DAYS",
      -  "TRAILING_45_DAYS",
      -  "TRAILING_7_DAYS",
      -  "TRAILING_3_DAYS",
      -  "TRAILING_14_WEEKS",
      -  "MTD",
      -  "QTD",
      -  "YTD",
      -  "CURRENT_MONTH",
      -  "CURRENT_QUARTER",
      -  "CURRENT_YEAR",
      -  "LAST_WEEK",
      -  "LAST_MONTH",
      -  "LAST_6_MONTHS",
      -  "LAST_12_MONTHS",
      -  "LAST_4_YEARS",
      -  "LAST_3_MONTHS",
      -  "LAST_INVOICE_MONTH"
      -]New value: +[
      +  "TRAILING_90_DAYS",
      +  "TRAILING_30_DAYS",
      +  "TRAILING_45_DAYS",
      +  "TRAILING_7_DAYS",
      +  "TRAILING_3_DAYS",
      +  "TRAILING_1_DAYS",
      +  "TRAILING_14_WEEKS",
      +  "MTD",
      +  "QTD",
      +  "YTD",
      +  "CURRENT_MONTH",
      +  "CURRENT_QUARTER",
      +  "CURRENT_YEAR",
      +  "LAST_WEEK",
      +  "LAST_MONTH",
      +  "LAST_6_MONTHS",
      +  "LAST_12_MONTHS",
      +  "LAST_4_YEARS",
      +  "LAST_3_MONTHS",
      +  "LAST_INVOICE_MONTH"
      +]
  12. Changed1 schema field changed
    • changedInput schema / properties / dedup / description
      Previous value: -"Deduplication config controlling how often a still-firing alert notifies. Either CALENDAR (kind: CALENDAR, calendarUnit: WEEK | MONTH) = at most once per current ISO week / calendar month, or ROLLING (kind: ROLLING, windowDays: N) = at most once every N days."New value: +"Deduplication config controlling how often a still-firing group notifies. The window is per groupBy value; delivery stays one message listing newly eligible groups. Either CALENDAR (kind: CALENDAR, calendarUnit: WEEK | MONTH) = at most once per current ISO week / calendar month, or ROLLING (kind: ROLLING, windowDays: N) = at most once every N days."
  13. Changed1 schema field changed
    • changedInput schema / properties / datePreset / enum
      Previous value: -[
      -  "TRAILING_90_DAYS",
      -  "TRAILING_30_DAYS",
      -  "TRAILING_45_DAYS",
      -  "TRAILING_7_DAYS",
      -  "TRAILING_3_DAYS",
      -  "TRAILING_14_WEEKS",
      -  "MTD",
      -  "QTD",
      -  "YTD",
      -  "LAST_WEEK",
      -  "LAST_MONTH",
      -  "LAST_6_MONTHS",
      -  "LAST_12_MONTHS",
      -  "LAST_4_YEARS",
      -  "LAST_3_MONTHS",
      -  "LAST_INVOICE_MONTH"
      -]New value: +[
      +  "TRAILING_90_DAYS",
      +  "TRAILING_30_DAYS",
      +  "TRAILING_45_DAYS",
      +  "TRAILING_7_DAYS",
      +  "TRAILING_3_DAYS",
      +  "TRAILING_14_WEEKS",
      +  "MTD",
      +  "QTD",
      +  "YTD",
      +  "CURRENT_MONTH",
      +  "CURRENT_QUARTER",
      +  "CURRENT_YEAR",
      +  "LAST_WEEK",
      +  "LAST_MONTH",
      +  "LAST_6_MONTHS",
      +  "LAST_12_MONTHS",
      +  "LAST_4_YEARS",
      +  "LAST_3_MONTHS",
      +  "LAST_INVOICE_MONTH"
      +]
  14. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and openWorldHint, but the description goes well beyond them: notifications are irreversible and reach other people through Slack, Teams, or email, including addresses outside the organization, and the agent must obtain explicit user confirmation after showing scope, condition, frequency, and recipients. It also discloses the creator-only/Admin ownership default and how to share via set_object_permissions.

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

Conciseness3/5

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

Purpose and routing are front-loaded and the safety paragraph is well placed at the end, but the body is a dense wall of prose covering 22 parameters with redundant sentences (the compact-series note appears twice, and the scopeId sentence restates the schema description). Length is partly justified by tool complexity, yet it could be trimmed and structured into sections.

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 22-parameter tool with nested messageWidgets and no output schema, the description covers creation semantics, the condition expression language with worked examples, dedup vs. period, recipient discovery, tagging, widget composition, and the returned URL the agent must surface. Nothing material appears missing for correct invocation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description does add real cross-parameter meaning: dedup controls re-notification while the period defines the look-back window, scopeId is stored but not merged into query filters, tagIds create missing tags with a default color, and messageWidgets order matters with exactly one ALERT widget. Some of this duplicates the schema verbatim (e.g. the series-schema compactness note is stated twice), which keeps it from a full 5.

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 ('Create a saved Costory cost monitor that evaluates queries and sends notifications when its condition fires') and immediately distinguishes itself from immediate-delivery tools by noting creation configures future delivery rather than sending a notification. It also distinguishes itself from update_alert and preview_alert implicitly through the creation framing.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('Use when the user requests ongoing monitoring'), an explicit contrast with immediate/preview behavior, and routes to concrete helpers: set_object_permissions for sharing, list_available_destinations for Slack/Teams IDs, query.queries for the full series schema. It also states that no separate query call is required, which removes a likely wrong turn.

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