Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Fixter. If you published it, claim ownership there.

Get Alert Rules

get_alert_rules
Read-onlyIdempotent

Fetch the calling tenant's alert rules.

Omit ruleId to list every rule; supply ruleId to fetch a single rule. Either way returns the full rule definition (source, filter, measure, groupBy, compiledQuerySql, condition).

This does not say where a rule's alerts are delivered. To state where they go, call get_alert_rule_destinations and report what it returns. To change where they go, call set_alert_rule_destinations.

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

Input Schema

NameRequiredDescriptionDefault
ruleIdNoOptional rule id (UUID); omit to list every rule

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • changedInput schema / properties / ruleId / description
      Previous value: -"Optional rule id (UUID); omit to list every rule for the tenant"New value: +"Optional rule id (UUID); omit to list every rule"
  3. Added
  4. Removed
  5. 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 readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds tenant scoping, the shape of what is returned (source, filter, measure, groupBy, compiledQuerySql, condition), and a clear negative boundary about delivery destinations. The one remaining gap is what happens when listing a large tenant's rules – no pagination, result cap, or ordering is disclosed.

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?

The mode-selection rule is front-loaded in the first two lines and the boundary/alternative routing follows logically. Slightly long for one optional parameter, and the destination paragraph, while valuable, takes three lines to deliver one boundary statement.

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's enumeration of returned rule fields is doing necessary work, and tenant scoping plus the sibling routing cover the rest. For a one-parameter read tool, an agent has everything needed to call it correctly.

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 the schema already says "Optional rule id (UUID); omit to list every rule," so the description largely restates it. The reinforcement of list-vs-single semantics is helpful but adds little meaning beyond the structured field; baseline 3 applies.

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 ("Fetch the calling tenant's alert rules") and immediately distinguishes the two modes: omit ruleId to list all, supply it for a single rule. An agent can tell this apart from the destination siblings without opening any schema.

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 mode-selection guidance for the single parameter and explicitly names the alternatives for adjacent concerns: get_alert_rule_destinations for reading delivery locations, set_alert_rule_destinations for changing them. It also states a boundary (this tool does not say where alerts are delivered), which prevents a plausible misuse.

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