Skip to main content
Glama

dlf__UpdateScript

Updates the content and settings of an existing DLF script by project and script name, supporting SQL, Flink, Spark, Hive, DWS, and Shell script types.

Instructions

[DLF] 修改脚本内容

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": {
      "project_id": "<project_id>",
      "script_name": "<script_name>"
    },
    "name": "dlf__UpdateScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
typeNo脚本类型
contentNo脚本内容
databaseNo脚本执行所在的数据库
directoryNo脚本关联的目录
queueNameNo脚本关联的DLI队列名称
project_idYes
script_nameYes
configurationNo脚本的配置项参数
connectionNameNo脚本关联的连接名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/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 it discloses nothing: no permissions required, no statement about partial vs full updates (critical given 8 optional fields), no indication of whether unspecified fields are preserved or cleared, and no note on side effects or irreversibility.

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 phrase is front-loaded and contains no filler, so it is not verbose. However, brevity here comes from under-specification rather than economy, leaving the definition effectively a title restatement.

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 10-parameter mutation tool with no annotations, no output schema and only 70% schema coverage, the definition is far too thin. An agent cannot tell what a successful update returns, whether omitted fields are wiped, or what prerequisites apply before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 70%, and both required path parameters (project_id, script_name) have empty descriptions. The description adds no meaning beyond the schema — it does not explain the enum values for type, what configuration contains, or how directory/queueName/connectionName interact with the script.

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+resource ("修改脚本内容" / modify script content), but the input schema shows that name, type, database, directory, queueName, configuration and connectionName can also be changed, so restricting the stated purpose to "content" understates the operation. It also does nothing to separate this from sibling mutation tools such as dlf__UpdateJob, dlf__UpdateResource or dlf__UpdateConnection.

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 when to update versus CreateScript/DeleteScript/ExecuteScript, nor whether the script must already exist. The only implied context is that this is the mutation counterpart to reading a script, which the agent must infer on its own.

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