Skip to main content
Glama

alert_alert_define

Define a named alert rule with conditions like greater than, equals, or contains, and set severity to info, warning, error, or critical.

Instructions

[alert] Define a named alert rule. Conditions: gt/gte/lt/lte/eq/ne/between/outside/contains/not_contains/is_empty/is_truthy. Severity: info/warning/error/critical.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
conditionYes
thresholdNo
threshold_highNo
severityNo
messageNo
metricNo
cooldown_sNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden. It only says 'define' without explaining side effects (e.g., persistence, validation, or dependencies). It also fails to describe the return value or error conditions.

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 description is very concise (2 sentences) and front-loads the purpose. However, it could be structured better (e.g., grouping conditions vs. parameters) to improve readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 8 parameters and no output schema documentation, the description is incomplete. It omits details about non-required parameters, the return value, and behavioral context. An output schema exists but is not referenced.

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

Parameters2/5

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

Schema description coverage is 0%, and the description only lists condition operators and severity values. It does not explain how to use parameters like 'threshold', 'threshold_high', 'message', 'metric', or 'cooldown_s', leaving their semantics ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Define a named alert rule' which clearly indicates the action and resource. It lists condition operators and severity levels, making the purpose understandable. However, it does not differentiate from sibling tools like alert_alert_evaluate or alert_alert_get.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as alert_alert_evaluate, alert_alert_get, or other alert-related tools. The description does not mention prerequisites, context, or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server