Skip to main content
Glama

dataartsstudio__UpdateDirectory

Update a DataArts Studio directory for data standards or code tables by changing its name, parent, previous node, type, or description within a project.

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": {
      "name": "<name>",
      "parent_id": "<parent_id>",
      "prev_id": "<prev_id>",
      "project_id": "<project_id>",
      "type": "<type>"
    },
    "name": "dataartsstudio__UpdateDirectory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoID,创建时可不传,更新时必填。填写String类型替代Long类型。
nameYes目录名称。
typeYes目录类型。
ref_idNo关联的主题ID,ID字符串。
prev_idYes上个节点ID,首节点传null。填写String类型替代Long类型。
root_idNo根节点ID,根节点此ID为自身ID,只读。填写String类型替代Long类型。
childrenNo子目录。
create_byNo创建人,只读。
parent_idYes父目录ID,首层传null。填写String类型替代Long类型。
update_byNo更新人,只读。
project_idYes项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。
create_timeNo创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。
descriptionNo描述。
from_publicNo是否来自公共层,只读。
update_timeNo更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。
qualified_nameNo目录的资产名称,只读。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool, and it discloses almost nothing: no required permissions, no statement of what changes (rename only? re-parenting? reordering via prev_id?), no mention that readOnly fields are ignored, and no effect on children when a directory moves. The single sentence adds no context beyond the verb.

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?

One short, front-loaded sentence with a bracketed service prefix and no filler. It is efficient, though its brevity is closer to under-specification than to disciplined conciseness.

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

Completeness2/5

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

For a 16-parameter mutation tool with no annotations and no output schema, the description is far too thin: an agent cannot tell what a successful update returns, whether partial updates are allowed, or what happens to child nodes. The rich schema mitigates this somewhat, but the description itself leaves major gaps.

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 the tricky prev_id first-node-null and parent_id first-layer-null cases) is already documented in the schema, which sets the baseline at 3. The description adds nothing further, though the '(数据标准、码表)' parenthetical loosely reinforces the type enum values.

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 gives a verb and resource ('修改目录' / modify directory) and the parenthetical '(数据标准、码表)' hints at the standard-element and code-table scopes matching the 'type' enum. However, it never states that it updates an existing directory by ID, and it does not differentiate itself from siblings like CreateDirectory/DeleteDirectory beyond the verb stem in its own name.

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 guidance on when to use this versus CreateDirectory, DeleteDirectory, or ShowDirectoryTree, and no prerequisites (e.g., that the directory must already exist, or how project_id/type constrain the target). The agent must infer usage entirely from the name.

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