Skip to main content
Glama

davinci_script_setup

Creates a DaVinci automation script environment using the official scaffold, producing a single-file Groovy script or Gradle project; requires confirm=true for non-empty directories.

Instructions

用官方脚手架创建脚本环境(dvcfg-b automation setup)。

kind=dvgroovy 生成单文件脚本环境;kind=project 生成 Gradle 脚本工程(需 JDK)。 目录非空时需要 confirm=true。

Args: path: 目标目录(必须在 DAVINCI_MCP_ROOTS 内)。 kind: dvgroovy 或 project。 language: project 环境的语言,GROOVY 或 KOTLIN。 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": {
      "path": "<path>"
    },
    "name": "davinci_script_setup"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNodvgroovy
pathYes
confirmNo
languageNoGROOVY

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the whole burden; it does disclose key behaviors (scaffold-based generation, JDK requirement for kind=project, path sandboxing, confirm gate on non-empty directories). It does not say what files get written, whether existing content is overwritten or refused, or whether the operation is idempotent, which matters for a filesystem-mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the one-line purpose, then enumerates kind behaviors in a compact line, then the confirm constraint, then an Args block. Every sentence carries information and nothing is padded.

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

Completeness3/5

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

For a four-parameter, no-annotation, no-output-schema mutating tool, the definition covers preconditions well but stops short of post-conditions: which files/directories are produced and what happens on failure or on an existing scaffold are unstated. An agent can call it correctly but cannot predict its side effects precisely.

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 coverage is 0%, so the description is the only source of meaning, and it documents all four parameters: path's root restriction, the dvgroovy/project values for kind, GROOVY/KOTLIN for language, and when confirm must be true. It adds real meaning beyond the bare schema, though it does not state that language only applies to kind=project beyond a brief note.

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?

States a specific verb and resource: creates a script environment using the official scaffold (dvcfg-b automation setup), and splits the outcome by kind (dvgroovy = single-file script, project = Gradle project requiring JDK). That is enough to tell it apart from siblings like davinci_script_create or davinci_cfg5_project_create, although no sibling is named explicitly.

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?

Gives clear selection conditions between the two kinds and the precondition that path must be inside DAVINCI_MCP_ROOTS, plus the confirm rule for non-empty directories. It lacks explicit 'use X instead when...' routing against the many sibling script/project tools.

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