Skip to main content
Glama

Get Cost-Alert Rule

get_alert_rule
Read-only

Get a single cost-alert rule by its id. There is no dedicated backend endpoint for one rule, so this fetches the full alert-rule list and filters to the matching alert_id client-side. Returns the rule's type, cadence, thresholds, watched services/accounts, and notification channels; if no rule matches the id you get a clear not-found result (use list_alert_rules to discover valid ids). Optionally scope with integration_id. Use response_format="concise" (default) or "detailed". Read-only. Example: { "alert_id": "a1b2c3d4-..." } returns that one rule.

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": {
      "alert_id": "<alert_id>"
    },
    "name": "get_alert_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
alert_idYesThe alert rule id to fetch (matched against alert_id / alertId in the list response).
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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description reinforces read-only while adding genuinely useful non-obvious context: there is no single-rule backend endpoint, so it fetches the full list and filters client-side. It also lists the returned fields and the not-found behavior. It stops short of discussing cost/latency implications of the full-list fetch or pagination, so not a 5.

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?

Front-loaded with the purpose, then implementation detail, return shape, failure handling, and options in a logical order. The trailing example is helpful but partially redundant with the schema; a sentence or two could be trimmed.

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 simple read tool with no output schema, the description covers what is returned, how failures manifest, how to discover valid ids, and the optional scoping parameter. Nothing an agent needs to invoke it correctly is missing.

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 the baseline is 3. The description restates the integration_id scoping and response_format modes but adds little beyond what the schema already documents (e.g. it does not clarify the id matching behavior more than the schema's own note does).

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 ('Get a single cost-alert rule by its id') and immediately distinguishes it from the list-based sibling by naming list_alert_rules as the discovery path. An agent can tell exactly what this does and what it isn't.

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 explicit when-to-use routing ('use list_alert_rules to discover valid ids'), explains the optional integration_id scoping, and describes the failure mode when the id doesn't match. All three usage decisions an agent faces are covered.

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