Skip to main content
Glama

davinci_cfg5_project_create

Create a new CFG5 project by cloning an existing .dpa template: copies the project and config directories, rewrites root paths and project name, then runs a smoke check. Use it to build projects without the GUI.

Instructions

以现有 .dpa 工程为模板,创建新的 CFG5 工程(模板克隆)。

CFG5 5.x 没有 dvcfg-b project create 那样的结构化创建命令: 从零建工程要在 GUI 里选 SIP/BSW、MCU 与编译器(5.30 SP1+ 的 Linux CLI 才提供创建入口)。本工具用「复制 .dpa + 配置目录 → 重写工程根路径与工程名 → 冒烟校验」达到同样结果: 新工程与 GUI 新建的结构一致,Project Settings 沿用模板。

Args: template_project: 模板 .dpa;常用 SIP 的 StartApplication 工程。 output_dir: 新工程放在哪个目录下(新工程会建为 output_dir/project_name)。 project_name: 新工程名;缺省沿用模板名(同名时请显式指定)。 copy_dirs: 额外复制的工程根一级目录,默认 ["Config"];Appl/GenData/Log 不可复制。 replacements: 额外文本替换,例如 {"D:/old/bsw": "D:/new/bsw"},大小写敏感。 verify: 创建后跑一次 -v 冒烟校验(默认 true)。 dry_run: 只返回复制与改写计划,不落盘。 confirm: 真正写入磁盘时必须为 true。 timeout_s: 冒烟校验的命令超时秒数。

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": {
      "template_project": "<template_project>",
      "output_dir": "<output_dir>"
    },
    "name": "davinci_cfg5_project_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
verifyNo
confirmNo
dry_runNo
copy_dirsNo
timeout_sNo
output_dirYes
project_nameNo
replacementsNo
template_projectYes

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 carries the full burden and does well: it discloses that the template's Project Settings are inherited, that Appl/GenData/Log cannot be copied, that replacements are case-sensitive, and that disk writes are gated behind confirm. It omits what happens if the target directory already exists and whether a failed verify rolls back the copy.

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?

Front-loaded with the action and the rationale for the clone-based approach, then a compact per-argument list. The GUI/CLI history paragraph is slightly longer than strictly needed but justifies why the tool behaves as it does, so little is wasted.

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 nine-parameter mutation tool with no annotations and no output schema, the description covers inputs, side effects and safety gating well. It leaves unspecified the shape of the returned plan/verify result and behavior on pre-existing output paths, which an agent would need before calling it unattended.

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% and all nine parameters are given meaning in the description, including non-obvious ones: output_dir concretely resolves to output_dir/project_name, project_name defaults to the template name, copy_dirs defaults to ["Config"] with explicit exclusions, and replacements is an example-mapped, case-sensitive dict. This fully compensates for the empty schema descriptions.

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 concrete verb and resource: create a new CFG5 project by cloning an existing .dpa template, including the three-step mechanism (copy .dpa + config dirs, rewrite root path/project name, smoke-verify). The mechanism itself distinguishes it from a plain project-create, but no sibling tool is named, so the differentiation is inferred rather than explicit.

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?

Explains why the tool exists (CFG5 5.x lacks a structured `project create` CLI, GUI is the alternative) and supplies operating conditions: confirm must be true to touch disk, dry_run returns only a plan, verify defaults to a smoke test. It stops short of naming which sibling to use instead for a from-scratch project.

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