Skip to main content
Glama

SaaS Pro Max

Create alert rule

create_alert_rule
Destructive

Create an alert rule that watches a metric, error rate, new issue, uptime monitor, web vital or event volume, and fires to the notification channels you name. condition depends on the kind: a metric rule needs { name, agg }, an uptime rule needs { monitorId }, a vital rule needs { vital }. Requires the write scope and metrics.write.

Input Schema

NameRequiredDescriptionDefault
appYesApplication id, or orgSlug/appSlug as returned by list_apps
kindYes
nameYes
severityNo
conditionNo
thresholdYes
channelIdsNo
comparatorNo
environmentNoEnvironment slug: production, staging or development. Defaults to production.
windowMinutesNo
cooldownMinutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this as a destructive, non-read-only, open-world mutation, and the description adds useful context: it fires notifications to named channels and requires write scope plus metrics.write. It does not restate the destructive annotation, but it adds enough behavioral context beyond the structured hints.

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?

The description is three tightly packed sentences with no filler. The core purpose is front-loaded, followed by the condition caveat and the authorization requirement in a logical order.

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 complex create tool with a nested free-form `condition` object and no output schema, the description covers the most important non-obvious behavior: watched signal types, condition variation by kind, notification channels, and required scope. It is slightly incomplete on parameter details and alert lifecycle behavior, but it is usable as written.

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 low at 18% across 11 parameters, so the description carries significant burden. It usefully explains the otherwise opaque `condition` object with kind-specific shapes for metric, uptime, and vital rules, and it links `channelIds` to notification channels, but it leaves most other parameters such as `threshold`, `comparator`, `windowMinutes`, and `cooldownMinutes` to the schema alone.

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?

The description states a specific verb and resource: create an alert rule. It also names the watched signal types and the firing destination, so its purpose is immediately distinguishable from read/list/update siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the create action and the mention of required write scope, but there is no explicit guidance on when to use this versus other alerting or incident tools, nor when not to use it. It provides prerequisites rather than selection guidance.

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