Skip to main content
Glama

davinci_module_assets

Locates a BSW module's Vector User Manual and read-only static code in an AUTOSAR project, resolving paths from project settings or a BSW package for parameter-level checks.

Instructions

定位一个 BSW 模块的 Vector User Manual 与静态代码(只读)。

AUTOSAR 规范讲「参数应该是什么」,Vector User Manual 讲「Vector 实现 里这个参数怎么用、有什么限制」,静态代码是最终事实。回答参数级问题 时,三层一起看才不会给出规范里有、Vector 里没有的答案。

定位按证据分层:bsw_package 参数 > 工程设置里的 BSW 包路径 > 工程目录/父目录布局 > 白名单根目录推断。手册按「文件名含模块名 + manual/UM 词形、位于 doc/ 目录、集中文档目录」识别;静态代码取模块 目录下的 src/ / inc/,生成输出目录里的 .c/.h 会标成 generated_code 并排除在静态代码之外。

本工具只定位文件(stat,不读内容);拿到的路径直接用读文件工具打开。

Args: project: 工程目录、.dvjson、.dcf 或 .dpa。 module: ECUC 模块短名,例如 NvM / CanIf / Dem。 bsw_package: BSW 包(MICROSAR 交付)根目录;设置里找不到时用它显式指定。 allow_outside: 允许读取 DAVINCI_MCP_ROOTS 之外的工程(只读)。

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>",
      "module": "<module>"
    },
    "name": "davinci_module_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
moduleYes
projectYes
bsw_packageNo
allow_outsideNo

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 supplied, the description carries the whole burden and does well: it declares read-only behaviour, states the tool only stats files and never reads content, discloses the resolution hierarchy (bsw_package param > project settings > directory layout > whitelist inference), and warns that files under a generated output directory are labelled generated_code and excluded from static code. It stops short of describing failure behaviour when no manual or source tree is found, or the shape of the result.

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 purpose and the three-layer rationale are front-loaded, then the lookup strategy, then the argument notes. The motivation paragraph about spec vs. manual vs. code justifies why all three layers are returned and therefore earns its space, though the whole text is on the long side and the Args block partly restates schema names.

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 four-parameter, annotation-free, output-schema-free tool this covers scope, read-only safety, resolution fallback order, generated-code exclusion and argument formats. The one remaining gap is that no output schema exists and the description only implies the returned fields (manual path, source directories, generated_code marker) without stating the result shape.

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 description coverage is 0%, so the description must compensate and it does: project accepts '工程目录、.dvjson、.dcf 或 .dpa', module takes an ECUC short name with examples (NvM / CanIf / Dem), bsw_package is explained as a MICROSAR delivery root used when settings do not contain it, and allow_outside is tied to the DAVINCI_MCP_ROOTS whitelist with its read-only nature. Every parameter gains meaning the bare schema titles do not provide.

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 description names a specific verb (locate) and a concrete resource (a BSW module's Vector User Manual plus static code for one ECUC module), and explicitly bounds the scope with '本工具只定位文件(stat,不读内容)'. It does not name any sibling tool, so the differentiation from tools like davinci_generated_files or davinci_ecuc_query has to be inferred from behaviour rather than being 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear trigger for use: answering parameter-level questions that need the spec, the Vector manual and the static code together. It also tells the agent what to do afterwards ('拿到的路径直接用读文件工具打开'). There is no explicit when-not-to-use clause or named alternative for other kinds of lookups, 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.