Skip to main content
Glama

davinci_cfg5_validate

Validates .dpa projects with DaVinci Configurator 5 by parsing ExecutionReport XML and returning structured diagnostics and gate results for accurate pass/fail checks.

Instructions

用 DaVinci Configurator 5 校验 .dpa 工程(DVCfgCmd -p ... -v)。

与 CFG6 不同,CFG5 会输出 ExecutionReport XML;本工具直接解析该报告, 返回与通用工具一致的 diagnostics / gate 结构,比解析控制台文本更准确。

Args: project: .dpa 工程文件。 report_dir: 报告目录;缺省写到 <工程>/Log/davinci-mcp。 fail_on: NONE / ERROR / WARNING,决定 gate.passed 的阈值。 timeout_s: 命令硬超时秒数。 wait_seconds: 同步等待秒数,超时转后台作业并返回 job_id。

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": "<project>"
    },
    "name": "davinci_cfg5_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
fail_onNoERROR
projectYes
timeout_sNo
report_dirNo
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, the description carries the full burden and does well: it discloses that a report file is written (default <project>/Log/davinci-mcp), that the call blocks for wait_seconds and then degrades to a background job returning job_id, and that timeout_s is a hard kill. It also says the return shape mirrors the generic tools' diagnostics/gate structure. It does not state whether validation locks or mutates the project, which is the remaining gap for a write-adjacent tool.

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 operation, then the CFG5-vs-CFG6 rationale, then a compact Args block. Nearly every sentence earns its place. The prose is slightly dense but no line 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?

No output schema exists, yet the description explains that the tool parses the ExecutionReport XML and returns the standard diagnostics/gate structure, plus how async fallback is signaled via job_id. Combined with the full parameter coverage, an agent has enough to invoke it correctly. Only the mutation/locking side effects of running DVCfgCmd are unaddressed.

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 does: all five parameters are explained, including fail_on's NONE/ERROR/WARNING values and their effect on gate.passed, report_dir's default location, timeout_s as a hard timeout, and wait_seconds' sync-then-background semantics. Defaults already appear in the schema, so the incremental value is in the meaning, not the values.

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: validate a .dpa project via DVCfgCmd -p ... -v, and names the underlying executable. It also distinguishes itself from the CFG6 path by noting CFG5 emits an ExecutionReport XML that this tool parses. It stops short of naming the sibling davinci_project_validate, so the routing boundary against that tool is not spelled out.

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?

Usage context is implied by 'unlike CFG6' and by the .dpa project argument, which tells an agent this is the CFG5-specific path. There is no explicit when-not guidance and no named alternative for cases where a generic validator would be preferred. The fail_on threshold is explained, but that is parameter behavior rather than tool selection guidance.

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