Skip to main content
Glama

dataartsstudio__CreateSecurityDynamicMaskingPolicy

Creates a dynamic data masking policy to protect sensitive columns in a specified database table, defining masking algorithms and assigning users or user groups.

Instructions

[DATAARTSSTUDIO] 创建动态数据脱敏策略

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": {
      "cluster_id": "<cluster_id>",
      "cluster_name": "<cluster_name>",
      "conn_id": "<conn_id>",
      "conn_name": "<conn_name>",
      "database_name": "<database_name>",
      "datasource_type": "<datasource_type>",
      "name": "<name>",
      "policy_list": "<policy_list>",
      "project_id": "<project_id>",
      "table_name": "<table_name>"
    },
    "name": "dataartsstudio__CreateSecurityDynamicMaskingPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes策略名称。英文和汉字开头, 支持英文、汉字、数字、下划线, 2-64字符。
usersNo用户列表,用户名称逗号分隔(非必填项,但用户、用户组必须二选其一进行配置),例如:"user1,user2"。
conn_idYes数据连接id,获取方法请参见[查询数据连接列表](ListDataconnections.html)。
table_idNo数据表id,获取方法请参见[获取数据源中的表](getDataTables.html)。
conn_nameYes数据连接名称,获取方法请参见[查询数据连接列表](ListDataconnections.html)。
cluster_idYes集群id。请于集群管理页面查看集群ID信息。。
project_idYesproject id
table_nameYes数据表名称, 获取方法请参见[获取数据源中的表](getDataTables.html)。
policy_listYes动态数据脱敏策略列表。
schema_nameNoDWS数据源的模式名称。
user_groupsNo用户组列表,用户组名称逗号分隔(非必填项,但用户、用户组必须二选其一进行配置)。例如:"userGroup1,userGroup2"。
cluster_nameYes集群名称。请于集群管理页面查看集群名称信息。。
database_nameYes数据库名称。获取方法请参见[获取数据源中的表](getDataTables.html)。
datasource_typeYes数据源类型

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the entire burden of behavioral disclosure, and it discloses nothing. It does not say that this is an irreversible write, what permissions or project scope are needed, that users and user_groups are mutually exclusive and one is effectively required, or that policy_list is capped at 100 entries.

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?

A single short front-loaded phrase with no wasted words, so there is no bloat. However, the brevity stems from under-specification rather than disciplined editing, leaving no structure for the agent to navigate.

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 complex 14-parameter, 10-required mutation tool with a nested policy array, no annotations, and no output schema, so the description should compensate heavily. Instead it offers one sentence that duplicates the tool name, leaving the agent with no operational context whatsoever.

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% across all 14 parameters, including nested policy_list fields with detailed constraints, so the schema already does the explanatory work. The description adds no parameter meaning of its own beyond the bare verb, which meets the baseline-3 expectation when the schema is self-documenting.

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

Purpose2/5

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

The description is a direct Chinese-language restatement of the tool name ("创建动态数据脱敏策略" = create dynamic data masking policy). It identifies the verb and resource, but adds nothing an agent could not infer from the identifier itself, and it never distinguishes this create operation from the sibling Show/Update/List/BatchDelete masking-policy tools.

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?

No guidance at all is given about when to call this tool versus dataartsstudio__UpdateSecurityDynamicMaskingPolicy (modifying an existing policy) or dataartsstudio__CreateSecurityDataClassificationRule. There is no mention of prerequisites such as needing an existing connection, table, or cluster before a policy can be created.

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