获取报警信息的列表
AI agents call ListAlertMessages to retrieve information from Alibabacloud Dataworks without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
EndTime | string | Yes | 截止报警时间,需要使用yyyy-MM-dd'T'HH:mm:ssZ的UTC格式 |
PageSize | number | Yes | 每页显示的条数,默认为10,最大100条 |
RemindId | number | — | 自定义规则的ID,当AlertRuleTypes参数配置为USER_DEFINE自定义规则时生效。该参数与BaselineId参数配置一个即可 |
AlertUser | string | — | 报警接收人的阿里云UID |
BeginTime | string | Yes | 起始报警时间,需要使用yyyy-MM-dd'T'HH:mm:ssZ的UTC格式 |
BaselineId | number | — | 基线ID。当AlertRuleTypes参数配置为GLOBAL时生效。该参数与RemindId参数配置一个即可 |
PageNumber | number | Yes | 分页的页数。默认值为1、最小值为1、最大值为30 |
AlertMethods | string | — | 报警方式,取值如下:- MAIL:邮件。- SMS:短信。<props="intl">可使用短信告警的地域为:新加坡、马来西亚(吉隆坡)、德国(法兰克福)。</props><props="china">- PHONE:电话。仅DataWorks专业版及以上版本支持。</props>多个报警方式之间使用英文逗号(,)分隔 |
AlertRuleTypes | string | — | 规则类型,包括GLOBAL(全局规则)、USER_DEFINE(自定义规则)和OTHER(其它)。多个规则类型之间使用英文逗号(,)分隔 |
Parameters from the server's own tool schema.
Even though ListAlertMessages only reads data, uncontrolled read access leaks sensitive information and racks up API costs — an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Attacks that exploit this kind of access
获取报警信息的列表. It is categorised as a Read tool in the Alibabacloud Dataworks MCP Server, which means it retrieves data without modifying state.
ListAlertMessages accepts 9 parameters: EndTime, PageSize, RemindId, AlertUser, BeginTime, BaselineId, PageNumber, AlertMethods, AlertRuleTypes. Required: EndTime, PageSize, BeginTime, PageNumber. The full parameter table on this page comes from the server's own tool schema.
Register the Alibabacloud Dataworks MCP server in PolicyLayer and add a rule for ListAlertMessages: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Alibabacloud Dataworks. Nothing to install.
ListAlertMessages is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the ListAlertMessages rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ListAlertMessages. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ListAlertMessages is provided by the Alibabacloud Dataworks MCP server (alibabacloud-dataworks-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.