Skip to main content
Glama

davinci_ar_version

Detect the AUTOSAR release used by a project or modules from directories, .dpa, .dvjson, or ARXML files, returning evidence, confidence, module mismatches, and unresolved modules for spec lookup.

Instructions

探测工程/模块使用的 AUTOSAR 版本,用于查对应版本的规范(只读)。

传工程根目录、.dpa、.dvjson 或一组 ARXML 都行。返回:

  • project.release:工程版本 + confidence(high/medium/low)+ 证据出处;

  • modules:每个 ECUC 模块的版本、来源文件、建议的 SWS 文档名与检索式;

  • mismatches:与工程主版本不一致的模块(BSW 包、第三方 MCAL 常见);

  • unresolved:连版本证据都找不到的模块。

证据等级:工程设置字段(high) > xsi:schemaLocation / 模块 ADMIN-DATA(medium)

命名空间 r4.0(low)。探不到就返回 null,不会默认成最新版本。

Args: paths: 工程目录或文件;目录会自动找 .dpa/.dvjson/Settings/.json/Config/**/.arxml, 找不到时递归找 .arxml(BSW 包、MCAL 目录没有 Config 结构)。可以同时传工程与 BSW 包目录,用来核对「模块定义是按哪个版本做的」。 max_files: 最多扫描多少文件(默认 200,上限 400)。 deep: 目录扫描时是否连 Output/Appl 等生成目录一起扫(默认只扫 Config)。 include_evidence: 是否返回逐条证据(关掉可减小返回体积)。 include_modules: 是否返回模块清单与冲突分析(关掉只回工程版本,返回更小)。

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": {
      "paths": "<paths>"
    },
    "name": "davinci_ar_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNo
pathsYes
max_filesNo
include_modulesNo
include_evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.5/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 declares the tool is read-only, spells out the evidence hierarchy (project settings high > xsi:schemaLocation / ADMIN-DATA medium > namespace r4.0 low), and explicitly guarantees no silent defaulting to the newest release (returns null instead). It also discloses scan scope defaults and the max_files ceiling, though it says nothing about runtime cost on very large trees or how truncation at the file cap is surfaced.

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 purpose, then a bulleted return contract, then a compact Args block — every section is scannable and the evidence-level sentence earns its place. It is on the long side for a five-parameter tool, but little is filler; the Args lines mostly add semantics rather than restating the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and no annotations exist, so the description supplies the return contract itself (release + confidence + evidence provenance, per-module versions and suggested SWS doc names, mismatches, unresolved) plus the null-on-unknown guarantee. For a read-only probing tool with five parameters, an agent has everything needed to call it and interpret results without further lookups.

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 for all five parameters: paths (accepts one or many, directories auto-resolve .dpa/.dvjson/Settings/*.json/Config/**/*.arxml with a recursive .arxml fallback), max_files (default 200, hard cap 400), deep (include Output/Appl generated dirs, default only Config), and both include_* toggles with their return-size tradeoffs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states a specific verb+resource: '探测工程/模块使用的 AUTOSAR 版本' (probe the AUTOSAR version used by a project/module), with the downstream goal of looking up matching specs. The enumerated return sections (project.release, modules, mismatches, unresolved) further pin down the exact output shape, making it clearly distinct from siblings such as davinci_version or davinci_ecuc_audit.

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 clear context for when this is the right tool (to find the spec version for a project) and explains accepted inputs, including the non-obvious case of passing both a project dir and a BSW package dir to cross-check which version module definitions were built against. It stops short of explicit exclusions or naming a sibling to use instead when, e.g., the agent only wants tool-level version info.

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