Skip to main content
Glama

davinci_script_create

Creates a .dv.groovy automation script from a selected template at a specified path without executing it; requires overwrite and confirm flags to replace existing files.

Instructions

从模板创建 .dv.groovy 脚本(写文件,不执行)。

路径可以省略 .groovy 后缀,服务会自动补成 .dv.groovy。 覆盖已有文件需要 overwrite=true 且 confirm=true。

Args: script_path: 目标脚本路径,例如 D:/work/ecu/Scripts/CheckAll.dv.groovy。 template: 模板 key,见 davinci_script_templates。 task_name: 任务名(默认沿用模板里的名字)。 task_type: DV_PROJECT / DV_APPLICATION / DV_GENERATION_STEP / DV_ON_GENERATION_START 等。 description: 任务描述,会写入 taskDescription。 overwrite: 允许覆盖已有脚本。 confirm: 覆盖时必须为 true。

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": {
      "script_path": "<script_path>"
    },
    "name": "davinci_script_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
templateNoblank
overwriteNo
task_nameNo
task_typeNo
descriptionNo
script_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description still carries useful context: it is a write operation, it never executes, it automatically appends the .dv.groovy suffix, and overwriting requires a two-flag confirmation gate. It does not describe permissions, error behavior for an invalid template key, or what is returned.

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?

The description is front-loaded with the core action and the two key behavioral facts, and the Args block is scannable. The interleaving of path-suffix and overwrite rules before the parameter list is helpful, though slightly repetitive.

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

Completeness4/5

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

For a 7-parameter mutation tool with no annotations and no output schema, the definition covers the write semantics, the overwrite gate, and each parameter. It stops short of saying what a successful call returns or how failures surface, which the missing output schema would otherwise cover.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden, and it documents all seven parameters with meaning beyond their types. It gives a concrete path example, names valid task_type values, explains that description maps to taskDescription, and states the default behavior for task_name.

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 states a clear verb+resource pair: creating a .dv.groovy script from a template. It explicitly clarifies this writes a file and does not execute it, which helps distinguish it from the sibling davinci_script_run. However, it does not explicitly distinguish itself from the similar-sounding sibling davinci_script_write.

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

Usage Guidelines4/5

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

The description gives concrete preconditions for the overwrite path (overwrite=true plus confirm=true) and directs the reader to davinci_script_templates for the template key. It does not explain when to use this tool instead of davinci_script_write or davinci_script_setup.

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