Skip to main content
Glama

Anomalies and Alerts

get_anomalies
Read-onlyIdempotent

Get recent anomalies detected by MerchantFlow (profit drops, spend spikes, missing sync data, attribution issues).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
severityNoOnly return anomalies at this severity level; omit to return anomalies of every severity.
since_daysNoHow many days back to look for anomalies (1-30, default 7).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
_metaNo
countNo
_messageNo
anomaliesNo
_truncatedNo
window_daysNo
_tenant_contextNo
severity_filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior, so the safety profile is covered. The description adds useful context about the data source (MerchantFlow) and anomaly categories, but it does not disclose operational details like ordering, pagination, or limits; these are partially mitigated by the output schema.

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

Conciseness5/5

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

A single, front-loaded sentence with no filler. The parenthetical examples add valuable specificity without bloating the description.

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

Completeness4/5

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

For a simple read-only query with two optional params, an output schema, and rich annotations, the description is largely complete. It could be slightly stronger with a note about when to use it versus sibling anomaly-adjacent tools, but nothing critical is missing for a correct call.

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

Parameters3/5

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

Schema description coverage is 100% and both parameters already have clear descriptions. The tool description adds no extra parameter-level meaning beyond the schema, which fits the baseline of 3.

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 names a clear resource ('recent anomalies detected by MerchantFlow') with concrete examples that define what counts as an anomaly. It is specific enough to separate this tool from generic getters, though it does not explicitly differentiate it from sibling reporting tools like get_recent_activity.

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?

No guidance is given on when to prefer this tool over alternatives, nor are any exclusions or related tools mentioned. The description only restates the action, leaving the agent to infer when 'get anomalies' is the right call relative to the many sibling reporting tools.

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