Skip to main content
Glama

davinci_ecuc_index

Builds a queryable index of modules, containers, and parameters from ECUC ARXML files, enabling parameter-level inspection beyond full-project command-line validation. Merges multiple files and caches results.

Instructions

把 ECUC ARXML 解析成模块/容器/参数的结构索引(只读)。

CFG5 命令行只能整工程校验,看不到参数级内容;用它先建立一份可查询的视图。 支持一次传多个文件(真实工程通常按模块分文件),索引会合并。 解析结果按「路径+mtime+大小」缓存 10 分钟,反复查询不会重复解析。

Args: arxml: 一个或多个 .arxml 路径。 release: AUTOSAR 版本标记,默认 R21-11;一般不用改。 cache: 是否复用缓存。 limit: 容器树最多展开多少个节点。

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": {
      "arxml": "<arxml>"
    },
    "name": "davinci_ecuc_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
arxmlYes
cacheNo
limitNo
releaseNoR21-11

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.3/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 meaningful work: it declares read-only semantics, explains that multiple files are merged into one index, and discloses a specific caching contract (keyed on path+mtime+size, 10-minute TTL) that affects whether changes are re-parsed. It omits error/partial-parse behavior, which is the main remaining gap.

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-loads purpose in the first line, then motivation, then behavioral notes, then a compact args block. Every sentence contributes; the args block is slightly redundant with the schema but earns its place because the schema has no descriptions.

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, and the description largely covers the return side — a merged structural index of modules/containers/parameters bounded by limit — though the precise response shape is not given. For a four-parameter read-only indexing tool with no annotations, this is close to complete; error handling and returned node fields are the residual gaps.

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: arxml is one or more .arxml paths (multi-file merge explained), release is an AUTOSAR version tag defaulting to R21-11 with advice not to change it, cache controls reuse, and limit caps container-tree nodes. Only the exact semantics of limit (per-query depth/breadth tradeoff) and accepted release values remain thin.

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?

States a specific verb and resource: parses ECUC ARXML into a module/container/parameter structural index, and declares the operation read-only. This is distinguishable from CFG5 whole-project validation (explicitly contrasted) and from sibling ecuc_query/audit/diff tools, whose existence in the catalog makes 'build a queryable view' a clear preparatory role.

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?

Gives a concrete when-to-use rationale: the CFG5 command line only validates at project level and cannot see parameter-level content, so use this first to build a queryable view. It does not name the follow-up sibling (e.g. davinci_ecuc_query) or state when-not to use it, so it stops short of full routing guidance.

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