Skip to main content
Glama

davinci_build

Validate, optionally update, generate, and export AUTOSAR DaVinci projects in one command; stop on validation errors to avoid generating from invalid configurations.

Instructions

一条命令跑完「校验 →(可选)更新 → 生成 →(可选)导出」。

校验存在错误时默认中止,避免在错误配置上浪费时间生成。 适合 CI 或「把工程编译出代码」这类端到端诉求。

Args: project: .dvjson 工程文件。 bsw_package: BSW 包目录。 modules: 只处理这些模块。 update_first: 生成前先跑 project update。 update_confirmed: 允许 update 写回工程(update_first=true 时必须为 true)。 generate: 是否生成代码。 export: 生成后执行的导出器 ID。 export_output: 导出目录。 fail_on: 校验失败阈值 NONE / ERROR / WARNING。 continue_on_validation_error: 即使校验有错误也继续生成。

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_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
exportNo
fail_onNoERROR
modulesNo
projectYes
generateNo
timeout_sNo
bsw_packageNo
update_firstNo
export_outputNo
update_confirmedNo
continue_on_validation_errorNo

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 does real work: it discloses that validation errors abort by default, that update writes back to the project file, and that update_confirmed must be true when update_first is true — a genuine safety gate. It still omits what the tool returns, whether generation overwrites existing files, and what timeout_s does on expiry, so the behavioral picture is incomplete for an 11-parameter mutating pipeline.

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-loaded with the pipeline in one line, then the abort default, then the use case, then a compact Args list. Every sentence adds information and nothing is repeated from the schema titles.

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 an 11-parameter, no-annotation, no-output-schema tool, the definition covers the pipeline and most parameter semantics well. It is still missing the return value (which the absent output schema leaves entirely to the description) and the timeout_s behavior, so an agent cannot fully predict outcomes of a run.

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 carries the full burden and mostly succeeds: it documents 10 of 11 parameters with meaning beyond their titles, including the fail_on enum values (NONE/ERROR/WARNING) and the cross-parameter constraint that update_confirmed must be true when update_first is true. Gaps remain: timeout_s is undocumented, and 'export: 导出器 ID' gives no hint how an agent discovers valid IDs.

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 opening line names the exact pipeline (validate → optional update → generate → optional export) and the tool's role as the single-command end-to-end entry point, which is specific enough to distinguish it from granular siblings such as davinci_cfg5_validate or davinci_export_run. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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?

"适合 CI 或「把工程编译出代码」这类端到端诉求" gives a clear use context, and the abort-on-validation-error default tells the agent the intended happy path. There is no explicit when-not-to-use guidance (e.g. 'for validation only, call davinci_cfg5_validate'), which keeps it below a 5.

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