Skip to main content
Glama

Unusual daily changes

meta_insights_get_anomalies
Read-only

Unusual daily changes (spikes/drops) in Google/Meta spend, clicks, conversions, revenue, Shopify revenue/orders and Search Console clicks, vs a typical same weekday.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "meta_insights_get_anomalies"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
daysNo
limitNo
actionNo
statusNo
date_toNo
page_idNo
sort_byNo
user_idNo
platformNo
site_urlNo
client_idNo
date_fromNo
ad_accountNo
ig_user_idNo
user_emailNo
window_daysNo
range_presetNo
activity_onlyNo
campaign_nameNo
property_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / platform
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Platform"
      +}
    • addedInput schema / properties / window_days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Window Days"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / action
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Action"
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Status"
      +}
  3. Added

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful behavioural context: the comparison is weekday-adjusted, so a weekend drop is not flagged, and the metric scope is enumerated. It says nothing, however, about sensitivity thresholds, how many anomalies are returned by default, whether results cover only accounts the user can access, or how 'action'/'status' alter output.

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?

A single front-loaded sentence that names the phenomenon first and the metric scope second, with no filler. It is dense but readable and every clause conveys scope information. Slightly more structure (e.g. a clause on the comparison window) would help without bloat.

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?

Output schema exists, so return values need not be described. But for a 21-parameter anomaly tool the definition omits the essentials an agent needs to call it correctly: how days vs window_days vs range_preset differ, what action/status filter, and what a sensible minimal call looks like. Complete enough to recognise the tool's purpose, not complete enough to invoke it confidently.

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?

The schema has 21 parameters with 0% description coverage, and the description explains none of them. High-impact parameters such as days, window_days, range_preset, action, status, sort_by, platform and limit are left entirely opaque. With this coverage gap the description carries the full burden and fails to do so.

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 gives a specific verb-equivalent (detects unusual daily changes/spikes/drops) plus the resource (a defined metric set spanning Meta/Google spend, clicks, conversions, revenue, Shopify and Search Console). It also names the baseline ('vs a typical same weekday'), which makes the analytic output conceptually distinct from siblings like fatigue or budget pacing. It stops short of explicitly naming which sibling to use instead, so it does not reach a 5.

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 when-to-use or when-not-to-use guidance and no pointer to an alternative tool among the many insight siblings (overview, fatigue, budget pacing, compare_platforms). The agent must infer that this is for anomaly hunting rather than routine reporting. Nothing states prerequisites, e.g. whether an account/ad account or date range must be supplied first.

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.