Skip to main content
Glama

cls_get_alarm_detail

Retrieve detailed CLS alarm information by parsing Tencent Cloud alarm URLs or using record ID and region parameters. Returns formatted Markdown with alarm data, trigger conditions, and analysis results.

Instructions

通过告警详情URL获取CLS告警的详细信息。从腾讯云告警详情URL中提取和解析告警信息,支持短链接和长链接格式。 该工具会自动解析URL、获取告警详情,并返回格式化的Markdown文档。

两种查询方式(二选一)

方式一:通过 URL 查询

  • 传入 url 参数(短链接或长链接),工具自动解析并获取告警详情

方式二:通过 record_id + region 查询

  • 传入 record_id 和 region 参数,工具直接构造 API 请求获取告警详情

  • 这两个参数可从 cls_describe_alarm_records 工具的返回结果中获取

参数说明

  • url: 告警详情 URL(可选),与 record_id+region 二选一

  • record_id: 告警记录 ID(可选),从 cls_describe_alarm_records 获取

  • region: 地域标识(可选),如 ap-guangzhou、ap-shanghai,从 cls_describe_alarm_records 获取

支持的URL格式

  1. 短链接:https://alarm.cls.tencentcs.com/WeNZ5sSP

  2. 短链接:https://mc.tencent.com/xxx

  3. 长链接:https://ap-guangzhou-open-monitor.cls.tencentcs.com/cls_no_login?action=GetAlertDetailPage#/alert?RecordId=xxx

返回内容

  • ⚠️ 告警基本信息(名称、ID、级别、地域)

  • 🔍 告警详细数据(监控对象、触发时间、持续时间、触发条件、当前值)

  • 📝 触发语句(CQL/SQL 查询)

  • 📊 多维分析结果(如有)

  • 💬 告警通知内容

  • 🔗 相关链接(详情页、日志查询、认领)

应用场景

  1. 快速查看告警详情:直接粘贴告警通知中的URL即可获取完整信息

  2. 从告警记录列表查看详情:先用 cls_describe_alarm_records 获取 record_id 和 region,再调用本工具

  3. 告警问题排查:查看告警触发条件、触发值、查询语句等关键信息

注意事项

  • url 与 record_id+region 二选一,不能同时提供或同时为空

  • 短链接会自动跳转到长链接进行解析

  • 此接口为免密接口,无需额外认证信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
record_idNo
regionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: the tool automatically parses URLs and returns formatted Markdown, supports both short and long URL formats, short links automatically redirect to long links for parsing, and it's a '免密接口' (password-free interface) requiring no additional authentication. However, it doesn't mention rate limits, error handling, or performance characteristics.

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 well-structured with clear sections (query methods, parameter explanation, URL formats, return content, application scenarios, notes) but could be more concise. Some information is repeated (e.g., the mutual exclusivity rule appears in multiple sections), and the Markdown formatting adds visual clarity but also length. Most sentences earn their place by providing distinct value.

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 (3 parameters with mutual exclusivity rules, multiple input formats, rich output) and the presence of an output schema, the description is remarkably complete. It covers all input methods, parameter semantics, URL formats, detailed return content structure, application scenarios, and important behavioral notes. The output schema existence means the description doesn't need to explain return values in technical detail.

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?

With 0% schema description coverage (titles only provide parameter names), the description fully compensates by providing comprehensive parameter semantics. It explains that 'url' accepts both short and long link formats, 'record_id' comes from cls_describe_alarm_records results, and 'region' is a geographic identifier with examples like 'ap-guangzhou'. It also clarifies the mutual exclusivity rule between parameter groups.

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's purpose: '通过告警详情URL获取CLS告警的详细信息' (get detailed information about CLS alarms through alarm detail URLs). It specifies the verb ('获取' - get/retrieve) and resource ('CLS告警的详细信息' - CLS alarm details), and distinguishes from siblings like cls_describe_alarm_records (which lists alarms) by focusing on retrieving detailed information for specific alarms.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool vs alternatives. It outlines two query methods (URL-based vs record_id+region), explains that record_id and region can be obtained from cls_describe_alarm_records, and specifies application scenarios including '快速查看告警详情' (quickly view alarm details) and '从告警记录列表查看详情' (view details from alarm record list). It also explicitly states 'url 与 record_id+region 二选一' (choose one between url and record_id+region).

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/Tinker-LGD2026/cls-mcp-server'

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