Skip to main content
Glama

sa__ChangeAlert

Updates selected properties of an existing security alert by alert ID, project, and workspace, leaving unmodified fields unchanged.

Instructions

[SA] 编辑告警,根据实际修改的属性更新,未修改的列不更新

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "alert_id": "<alert_id>",
      "project_id": "<project_id>",
      "workspace_id": "<workspace_id>"
    },
    "name": "sa__ChangeAlert"
  }
}

Input Schema

NameRequiredDescriptionDefault
alert_idYes告警ID
project_idYesID of project
data_objectNo告警详情
workspace_idYesID of workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavioral value by declaring PATCH-style merge semantics (untouched columns are preserved), but says nothing about required permissions, reversibility, side effects on related objects, or what the call returns — significant omissions for a mutation tool.

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?

A single short sentence with the mutation semantics front-loaded and no filler. The '[SA]' tag and the run-on comma structure are slightly noisy, and the extreme terseness leaves gaps, but nothing is wasted.

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?

For a mutation tool with a deep nested payload, no annotations and no output schema, the definition covers only the update semantics. It does not tell an agent what a successful response looks like, whether a read-back is needed, or what errors occur on invalid alert_id — leaving the most complex part of the contract implicit.

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 description coverage is 100%, so the baseline is 3; the nested data_object fields are all individually documented. The description's merge semantics add meaning about how data_object is applied, but it contributes no detail on the path parameters or on which subset of alert fields is actually editable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (编辑/edit) and resource (告警/alert), so an agent can distinguish it from sa__CreateAlert, sa__DeleteAlert and sa__ShowAlert without opening the schema. It does not explicitly say how it differs from the rule-oriented siblings (sa__UpdateAlertRule), but the resource noun is unambiguous.

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

Usage Guidelines3/5

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

It states a partial-update contract ('未修改的列不更新'), which implies this is the tool to use when changing only some fields of an existing alert. It gives no explicit when-not guidance, no prerequisites for the required alert_id/project_id/workspace_id trio, and never names an alternative for full replacement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools