Skip to main content
Glama

davinci_script_run

Execute Groovy automation tasks for DaVinci projects, with compile-check dry runs, task arguments, and automatic background job fallback after the wait limit.

Instructions

执行 Groovy 脚本任务(dvcfg-b automation run)。

脚本是任意代码,真正执行必须 confirm=true;dry_run=true 只加载脚本做编译检查。 不传 tasks 时会从 scripts 里解析任务名。超过 wait_seconds 自动转后台作业。

Args: project: .dvjson 工程文件;纯 DV_APPLICATION 任务可省略。 tasks: 任务名列表,例如 ["Validate"]。 scripts: 脚本文件列表;其所在目录会自动加入 -l。 locations: 额外脚本目录(脚本工程的 build/libs 也放这里)。 task_args: 每个任务的用户参数,值为参数串, 例如 {"Search": "--q=Definition == EcucGeneral"}。 no_save: 加 --no-save,脚本改动不写回工程。 debug_port: 开启 Config Core 调试端口(--debugger=)。 dry_run: 只做编译检查,不执行。 confirm: 执行时必须为 true。 timeout_s: 命令硬超时。 wait_seconds: 同步等待秒数,超时转后台。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "davinci_script_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
tasksNo
confirmNo
dry_runNo
no_saveNo
projectNo
scriptsNo
locationsNo
task_argsNo
timeout_sNo
debug_portNo
bsw_packageNo
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden well: it states the script is arbitrary code, that execution is gated on confirm=true, that dry_run only compiles, that wait_seconds switches to an async background job, and that no_save suppresses write-back to the project. Remaining gaps are the shape of the result (compile diagnostics, task output, background job handle) and permission prerequisites.

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 safety-critical constraint (confirm=true) is front-loaded ahead of the argument list, and the Args block is scannable with one line per parameter. The overlap between the prose dry_run sentence and the dry_run argument line is minor redundancy that still earns its place as a safety cue.

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 12-parameter mutation-capable tool with no annotations and no output schema, the definition covers the execution gate, dry-run mode, async fallback, and nearly every parameter. The notable omissions are bsw_package, the return/background-job identifier, and whether a successful run alters the .dvjson project unless no_save is set.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it documents 11 of 12 parameters with meaning beyond the schema — for example scripts' directory being auto-added to -l, build/libs belonging in locations, and task_args mapping task name to an argument string with a worked example. Only bsw_package is left undocumented.

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 names a concrete verb and resource: execute a Groovy script task via dvcfg-b automation run, and clarifies that dry_run=true performs only a compile check. That distinguishes execute-vs-check behavior, but it never names sibling tools such as davinci_script_lint, davinci_script_tasks, or davinci_automation_run, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

It gives real operational rules: confirm must be true for real execution, dry_run for compile-only, omit tasks to derive names from scripts, and wait_seconds overflow becomes a background job. What is missing is routing guidance — it never says when to prefer this over davinci_script_lint or davinci_script_tasks, so alternative selection is left implicit.

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