Skip to main content
Glama

list_alarms

list_alarms
Read-onlyIdempotent

Retrieve alarm records filtered by tag, alarm type, time range, or unread status to quickly identify relevant alerts.

Instructions

【📊 查询】查询告警记录,可按标签、告警类型、时间范围、已读状态筛选。

参数:

  • tagCode: 标签编码(可选)

  • alarmType: 告警类型(可选),如"超时"、"越界"、"低电量"

  • isUnread: 只看未读告警(可选),true=未读, false=已读

  • timeRange: 时间范围(可选),单日"2026-07-09"或范围"2026-07-01,2026-07-09"

  • pageSize: 每页数量,默认50

  • page: 页码,默认1

返回: 告警记录列表,含类型、时间、区域、内容、已读状态

提示: 处理告警时设 isUnread=true 只看未读。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo页码,默认1
tagCodeNo标签编码,如 UWB001
isUnreadNo是否只看未读告警,true=未读, false=已读
pageSizeNo每页数量,默认50,最大500
alarmTypeNo告警类型,如 "超时", "越界", "低电量"
timeRangeNo时间范围,格式 "YYYY-MM-DD",如 "2026-07-09"
Behavior4/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds behavioral details: returns a list with fields (type, time, area, content, read status), explains pagination (pageSize defaults to 50, max 500), and parameter formats. No contradiction.

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 with clear sections for parameters and return. Every sentence adds information; no fluff. The emoji and header ('📊 查询') provide visual cue. It is front-loaded and appropriate length.

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?

For a query-only tool with comprehensive annotations and schema, the description covers all necessary aspects: filters, pagination, return fields. With no output schema, it still lists key return fields. It feels complete for agent decision-making.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all 6 parameters. The description adds value by providing examples for alarmType (e.g., '超时', '越界'), explicit timeRange format ('YYYY-MM-DD' or range), and a usage tip for isUnread. This goes beyond the schema's basic descriptions.

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 clearly states the tool queries alarm records with specific filters (tag, type, time range, read status). It uses the verb '查询' (query) and resource '告警记录' (alarm records). Distinguishes from siblings like 'get_unread_alarms' (focused on unread) and 'export_alarm_csv' (export format).

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?

The description includes a usage tip: '处理告警时设 isUnread=true 只看未读' (when handling alarms, set isUnread=true to see only unread). It provides context for parameter usage but does not explicitly mention alternatives or when not to use this tool, though siblings like 'get_unread_alarms' exist.

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