Skip to main content
Glama

List Cost-Alert Rules

list_alert_rules
Read-only

List the cost-alert rules configured for the organization. Each rule defines when a spend alert fires: alertType (trend | anomaly | budget | expiry | tokens_per_request) with alertTypeLabel (the Alerts page's name: Trend Spike, Anomaly Scan, Spend Threshold, Expiry, Tokens per Request Rise (OpenAI only)), providerType (which provider's spend the rule targets; "all" = org-wide), frequency (how often it evaluates), analysisPeriod, thresholdPercent / thresholdAmount, the services/accounts it watches, scope ({costCenterId} = a Spend Threshold / Trend Spike measured on that cost center and its child cost centers, as on the Allocation page; {dimension: api_key|model, minRequests, values?} on a tokens_per_request rule; {} otherwise), isActive (+ autoPausedReason when the backend paused it), and who it notifies (channels + emails). Many organizations have no alert rules configured — an empty list is normal, not an error. Optionally scope with integration_id; limit caps the list. Use response_format="concise" (default) for the core fields, "detailed" for every field. Read-only. Example: {} returns all alert rules for the org; pass an integration_id to scope to one connection.

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_alert_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax alert rules to return (default: no cap beyond the truncation guard).
integration_idNoScope to a single provider connection (integration id). Omit for all connections.
response_formatNoconcise = key fields only (default, lower token cost); detailed = the full parsed payload.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description restates 'Read-only' rather than adding to it. What it does add is genuinely useful behavior: an empty result is a valid state, not a failure, and rules may be backend-paused (autoPausedReason), so the agent can interpret unusual output. No pagination or truncation behavior is explained beyond what the limit parameter's schema entry states.

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?

Purpose is front-loaded in the first clause and the remaining text is field documentation rather than filler, which partially compensates for the missing output schema. The single dense enumeration of rule fields is hard to scan, and the scope clause ({costCenterId} / {dimension: api_key|model,...}) is convoluted, but no sentence is redundant.

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?

There is no output schema, so the description carries the return-value burden, and it does so comprehensively: enum meanings for alertType and its labels, providerType semantics, thresholds, scope shapes per rule type, pause state, and notification targets. Combined with the empty-list caveat and response_format tradeoff, an agent has everything needed to call it and interpret the result.

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 three parameters are already documented in structured fields, establishing a baseline of 3. The description duplicates that guidance (integration_id scoping, limit capping, concise vs detailed) and adds only mild nuance about what the two response formats contain. It does not add format or syntax detail beyond the schema.

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?

Opens with a specific verb and resource: 'List the cost-alert rules configured for the organization,' and immediately scopes it as an org-wide listing rather than a single-rule fetch. The following enumeration of rule fields makes it unmistakable that this is the plural/collection view, distinguishing it from get_alert_rule without having to name it.

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 concrete invocation guidance: pass integration_id to scope to one connection, omit it for org-wide, use limit to cap, and choose response_format='concise' vs 'detailed'. It also pre-empts a misread by stating an empty list is normal rather than an error. It stops short of naming alternatives (e.g., get_alert_rule for a single rule, list_triggered_alerts for fired alerts), so routing to siblings is left implicit.

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