Skip to main content
Glama

davinci_generated_files

List generated folders and files in an AUTOSAR DaVinci project, classify each as generated, likely generated, or unverified, and show evidence so you can avoid hand-editing generated artifacts.

Instructions

列出生成目录里的文件夹和文件,并标注哪些是生成的。

目录来源与 davinci_generation_roots 相同(工程设置优先)。每个文件给 category:generated(有明确证据)/ likely_generated(默认目录或命名推测)/ unverified(只有位置线索);evidence 说明依据。生成文件不要手改。

Args: project: .dvjson 或 .dpa 工程文件。 dirs: 覆盖或补充的生成目录;不传就用工程设置/默认布局。 view: tree=目录树+文件(默认),folders=只看文件夹统计,files=只看文件。 pattern: 只列匹配的路径,例如 [".h", "Rte/"]。 exclude: 排除匹配的路径,例如 ["_Callout.c", "/temp/*"]。 max_depth: 相对生成目录的最大深度,0 表示只看根目录。 limit: 最多返回多少个文件条目(统计仍覆盖全部扫描文件)。 classify: 是否读取文件头并分类;false 时只看目录与命名(更快)。 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>"
    },
    "name": "davinci_generated_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirsNo
viewNotree
limitNo
excludeNo
patternNo
projectYes
classifyNo
max_depthNo
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 at all, the description carries the full load and does well: it discloses that classification is evidence-based, that classify=true reads file headers, that limit only caps returned entries while statistics still cover all scanned files, and that allow_outside is gated by the DAVINCI_MCP_ROOTS boundary. What's missing is any statement that this is a read-only operation and whether 'evidence' has a fixed shape.

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 opening sentence is front-loaded and the remaining content is all substantive, with a clean lead paragraph followed by per-argument lines. The 'Args:' block is slightly mechanical and the awkward line wrapping costs a little readability, but there is no filler.

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 9-parameter scanning tool with no output schema and no annotations, the description is nearly complete: it explains categories, evidence, view modes, limit-versus-statistics behaviour, and the sandbox escape hatch. It stops short of describing the returned entry structure (path fields, stat fields) which matters given there is no output schema.

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% and there are 9 parameters, so the description must compensate entirely — and it does, documenting every parameter with meaning and examples (glob patterns like ["*.h", "Rte/*"], max_depth 0 meaning root only, view default tree). It also notes that dirs overrides or supplements project settings, which the schema does not convey.

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: list folders and files in generated directories and tag which are generated, with three named categories (generated/likely_generated/unverified). It also anchors the directory source to the sibling tool davinci_generation_roots, so the agent can tell what this tool does and how it relates to a neighbouring one.

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?

The description implies when to use each view mode (tree/folders/files) and when to disable classify for speed, which is genuine situational guidance. However, it never states when to prefer this tool over davinci_generation_roots or other index tools, and the 'don't hand-edit generated files' line is a warning rather than usage guidance.

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