Skip to main content
Glama

davinci_project_generate_swct

Generates Software Component Template and Contract Phase header files for an AUTOSAR DaVinci project using the configured generation mode, optionally for selected components.

Instructions

生成 Software Component Template 与 Contract Phase 头文件(generate-swct)。

生成模式由工程设置 swctGeneration.generationMode 决定 (SWCT_AND_CP_HEADER / SWCT_ONLY / CP_HEADER_ONLY)。不传 components 表示全部组件。

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

Input Schema

NameRequiredDescriptionDefault
no_saveNo
projectYes
timeout_sNo
componentsNo
output_dirNo
report_dirNo
bsw_packageNo
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that output shape is driven by swctGeneration.generationMode with three enumerated values, which stops an agent hunting for a mode parameter. It says nothing about file-write side effects, whether the project must be saved first (despite a no_save flag), timeout/wait behavior, or failure modes.

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?

Three short lines, front-loaded with the deliverable, followed by mode configuration and the components default. No filler, though the parenthetical command name is redundant with the tool name.

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?

Explains what is produced and how the mode is chosen, which is the core of the tool. For an 8-parameter generation tool with no annotations and no output schema, it still omits where artifacts land (output_dir/report_dir), what the wait/timeout semantics are, and what a successful run returns.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate. It only clarifies one of them (components, defaulting to all); no_save, timeout_s, wait_seconds, output_dir, report_dir, and bsw_package are left entirely unexplained in both schema and description.

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 concrete artifacts: generates Software Component Template and Contract Phase header files, with the internal command name (generate-swct) given in parentheses. This is clearly distinguishable from generic siblings like davinci_project_generate, though it never explicitly frames itself against them.

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?

Useful behavioral cue that omitting `components` means all components, and that the generation mode is fixed by the project setting rather than chosen per call. However, there is no explicit guidance on when to use this instead of davinci_project_generate or davinci_cfg5_generate, and no prerequisites (open project, save state) are stated.

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