Skip to main content
Glama

pls_create_alarm_rule

pls_create_alarm_rule

Create an alarm rule in the PLS system by specifying alarm type, threshold, and monitored period after confirmation.

Instructions

【🔧 管理】创建告警规则实体。

参数:

  • confirm: 二次确认(必填),必须传 "确认"

  • 根据实体类型传入对应字段

返回: {success: true/false, entity: 实体名称, action: 操作类型}

提示: 确认+只传必填字段

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo告警规则ID(更新/删除时必填,长整型以字符串传入)
nameNo规则名称
confirmYes⚠️ 写操作需二次确认,必须传 "确认"
alarmTypeNo告警类型: 0-入侵, 1-越界, 2-超限, 3-低位, 4-超时, 5-低电, 6-超速
thresholdsNo阈值
monitoredPeriodNo受控时段, 如 "08:00-18:00"
Behavior3/5

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

The description adds the confirmation requirement ('confirm: 二次确认(必填)') beyond annotations, but does not disclose side effects, permissions, or rate limits. Annotations indicate a non-read, non-destructive write operation, which aligns.

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 three well-structured sentences plus a hint line, with no extraneous content. It front-loads the purpose and parameter notes, but the emoji and formatting could be streamlined.

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

Completeness3/5

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

While the return structure is described, the description lacks information on error scenarios, idempotency (annotations say false), and the exact fields required beyond confirm. For a 6-parameter create tool, more context would help.

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%, so parameters are already documented. The description adds vague guidance ('根据实体类型传入对应字段') and repeats confirm details, without clarifying which fields are actually needed for creation.

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 title and first sentence '【🔧 管理】创建告警规则实体' clearly state the verb (创建) and resource (告警规则实体), distinguishing it from sibling tools like pls_update_alarm_rule and pls_delete_alarm_rule.

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?

The description provides no explicit guidance on when to use this tool versus alternatives. It hints at '只传必填字段' but does not mention prerequisites, nor does it differentiate from update/delete operations.

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