Skip to main content
Glama

list_alarm_rules

list_alarm_rules
Read-onlyIdempotent

Retrieve alarm rules filtered by type or name keyword. Returns list with name, type, threshold, and control period.

Instructions

【📊 查询】获取告警规则列表,可按告警类型或名称筛选。

参数:

  • alarmType: 告警类型(可选),0-入侵 ~ 6-超速

  • keyword: 规则名称关键词(可选)

返回: 告警规则列表,含名称、类型、阈值、受控时段

提示: 最多返回 2000 条。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordNo按规则名称模糊搜索
alarmTypeNo告警类型: 0-入侵, 1-越界, 2-超限, 3-低位, 4-超时, 5-低电, 6-超速
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. Description adds a useful hint: max 2000 results returned, and outlines return structure (name, type, threshold, controlled period).

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?

Concise, front-loaded with emoji and purpose. Uses bullet points for parameters and return hints. Every sentence adds value; no fluff.

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?

Given simple tool with 2 optional params, annotations present, and no output schema, the description provides essential info: purpose, filters, return content, and limit. Could mention pagination or sorting, but max 2000 hint helps. Adequate for selection.

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 coverage is 100% with parameter descriptions. Description adds minimal value: restates the enum mapping for alarmType (same as schema) and keyword as 'rule name keyword'. No new semantic depth beyond schema.

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?

Description clearly states '获取告警规则列表' (get alarm rules list) with specific filtering options by type or name. It distinguishes from siblings like list_alarms (events) and mutation tools for 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?

Describes optional filters for alarmType and keyword, giving guidance on how to use. Does not explicitly compare to siblings, but the tool's purpose is distinct enough. Context is clear for listing rules.

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/sweet-dog-cyber/pls-mcp'

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