Skip to main content
Glama

create_alert_rule

Create an alert rule to monitor CPU, memory, or disk usage.

When the metric crosses the threshold, a notification is sent via email and/or webhook. Max 10 rules per site.

Requires: API key with write scope.

Args: slug: Site identifier metric: "cpu", "memory", or "disk" (percentage-based) threshold: Threshold value 0-100 (e.g. 90 for 90%) operator: "gt" (greater than) or "lt" (less than). Default: "gt" severity: "warning" or "critical". Default: "warning" cooldown_minutes: Min minutes between repeated alerts. Default: 30 notify_email: Send email notification. Default: true notify_webhook: Optional webhook URL for POST notifications

Returns: {"id": "uuid", "metric": "disk", "threshold": 90, ...}

Input Schema

NameRequiredDescriptionDefault
slugYes
metricYes
operatorNogt
severityNowarning
thresholdYes
notify_emailNo
notify_webhookNo
cooldown_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries full weight and does an excellent job: it explains the notification behavior on threshold crossing, the 10-rule limit, required write scope, and shows a return example. No contradictions with structured data.

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 well-structured: purpose, behavior, constraints, auth, parameter list, and return format are all present with no fluff. Each sentence adds valuable information, and the format is easy to scan.

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?

Given the tool's complexity (8 parameters, no output schema), the description covers everything needed: purpose, usage, constraints, auth, parameter semantics, and a return example. It is fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The Args section fully documents all parameters, including allowed values, defaults, and meaning (e.g., metric options, threshold range, operator choices). This completely compensates for the 0% schema description coverage.

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 'Create an alert rule to monitor CPU, memory, or disk usage,' clearly specifying the verb, resource, and scope. This distinguishes it from sibling tools like delete_alert_rule and list_alert_rules.

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?

Provides context for when to use the tool: monitoring CPU/memory/disk and receiving notifications on threshold crossings. Mentions a constraint (max 10 rules per site) and a prerequisite (API key with write scope), but does not explicitly name alternative tools or when not to use.

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.