Skip to main content
Glama

dsc__ChangeRule

Modifies custom sensitive data recognition rules, letting you update rule name, type, content, risk level, match threshold, and logic operator for data classification.

Instructions

[DSC] 修改自定义的敏感数据识别规则

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": {
      "category": "<category>",
      "id": "<id>",
      "logic_operator": "<logic_operator>",
      "min_match": "<min_match>",
      "project_id": "<project_id>",
      "risk_level": "<risk_level>",
      "rule_content": "<rule_content>",
      "rule_name": "<rule_name>",
      "rule_type": "<rule_type>"
    },
    "name": "dsc__ChangeRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes规则ID
categoryYes规则类别,内置规则(BUILT_IN)或自建规则(BUILT_SELF)
min_matchYes最小匹配次数
rule_descNo规则描述
rule_nameYes规则名称
rule_typeYes规则类型,关键字(KEYWORD)、正则表达式(REGEX)或自然语言(NLP)
project_idYes项目ID
risk_levelYes风险等级
rule_contentYes规则内容
logic_operatorYes逻辑运算符,"AND","OR","REGEX"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers almost none of it. It does not state whether this is a full replacement or partial update (relevant because 9 of 10 parameters are required), whether changes are reversible, what permissions are needed, or whether built-in rules can actually be modified.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single short sentence is front-loaded and contains no filler, which is structurally clean. However, it is under-specified rather than concise — the brevity is a byproduct of missing content, not of tight writing.

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

Completeness1/5

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

This is a 10-parameter mutation tool with 9 required fields, no annotations, and no output schema, so the description must carry the definition. A single nine-character sentence leaves the agent without update semantics, permission/scope caveats, or any indication of what a successful change returns.

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 every parameter including enums for `category` and `rule_type` and the `logic_operator` values is already documented, which sets the baseline at 3. The description adds no parameter-level meaning beyond the schema, and its "custom rule" phrasing slightly muddies interpretation of `category`.

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

Purpose3/5

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

The description does state a verb and resource ("修改...敏感数据识别规则" = modify a sensitive-data recognition rule), so the broad intent is recoverable. But it qualifies the target as "自定义的" (custom), which conflicts with the schema's `category` enum that also accepts BUILT_IN, leaving the actual scope ambiguous. It also gives no differentiation from siblings such as dsc__AddRule, dsc__DeleteRule, or dsc__ShowRules.

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?

There is no when-to-use guidance at all: nothing says whether this is for existing rules only, whether dsc__AddRule should be used to create, or what prerequisites (project scope, existing rule ID) are required. The only implied usage is the verb "modify", which the agent must infer.

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