Skip to main content
Glama

List Cost Anomalies

list_anomalies
Read-only

List cost anomalies for the organization. Anomalies are derived per provider scope: OMIT provider to analyze all cloud providers combined (AWS + Azure + GCP — the backend default), or pass "aws", "azure", "gcp", "snowflake", "anthropic", or "openai" to analyze one provider's spend. The backend does NOT precompute anomalies, so this tool DERIVES them client-side from the cost-dashboard anomalies view: a service is flagged when its month-over-month cost increase clears min_pct_increase (default 25%), or when spend appears for a service that had no baseline (a new-service anomaly). Each anomaly also carries the week-over-week delta from the weekly slices, which are returned alongside. Tune with min_pct_increase, min_cost, service, and limit. Read-only — never modifies anything. Example: { "provider": "snowflake", "min_pct_increase": 50, "min_cost": 100, "limit": 20 } returns Snowflake services whose spend jumped ≥50% month-over-month (or newly appeared) above $100.

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": "list_anomalies"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax anomalies to return, ordered by severity (largest % increase / absolute jump first). Default 50.
serviceNoRestrict the derivation to a single service by its provider-native name (e.g. "AmazonEC2" on AWS).
min_costNoIgnore services whose current-period cost is below this dollar floor (default 0 = no floor). Filters out noise from trivially small services.
providerNoProvider scope for the anomaly data: "aws", "azure", "gcp", "snowflake", "anthropic", or "openai". OMIT = every connected provider combined (the backend default for the anomalies view). Pass a provider to analyze only that provider's cost movement. One provider per call.
response_formatNoconcise = the derived anomaly list + the raw weekly slices (default). detailed = additionally the full parsed anomalies payload.concise
min_pct_increaseNoFlag a service as an anomaly when its month-over-month cost increase is at least this percent (default 25; must be >= 0). New services (no baseline) are flagged when their current cost clears `min_cost`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the "Read-only — never modifies anything" line is largely redundant. The description does add genuinely non-obvious behavior: the backend does not precompute anomalies, so derivation happens client-side from the cost-dashboard view, and weekly slices are returned alongside with WoW deltas.

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?

Dense and front-loaded: purpose, then derivation model, then tuning, then an example that anchors the parameter interactions. It runs long and spends a sentence restating the read-only annotation, which is waste, but no sentence is filler.

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?

With no output schema, the description carries the return-value burden and does so partially — it states the derived anomaly list plus weekly slices are returned, and response_format distinguishes concise vs detailed. For a 6-parameter derivation tool this is solid, though anomaly object fields are never enumerated.

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%, so all six parameters are already documented in the schema, including provider omission semantics and the min_cost interaction with new services. The description adds the interaction between parameters via a concrete example, but the semantic content largely mirrors the schema — baseline 3 is appropriate.

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?

Opens with a specific verb and resource ("List cost anomalies for the organization") and immediately defines what an anomaly is in this system — MoM increase above a threshold or a new-service spend. It does not name any sibling (e.g. dismiss_anomaly, list_anomaly_dismissals) to disambiguate the anomalies family, so it stops short of 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 Guidelines4/5

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

Gives clear when-to guidance on the key branching decision: omit `provider` to analyze all clouds combined, or pass one of six enumerated values for single-provider analysis. It also explains how to tune results and closes with a worked example, but offers no explicit when-not-to-use or pointer to an alternative tool.

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