Skip to main content
Glama

davinci_scan_output

Scans a generated output directory to report total file count, extension breakdown, and latest files, helping you see exactly what was produced.

Instructions

统计某个输出目录里的生成产物:文件总数、按扩展名分布、最新文件列表。

生成完成后想知道「到底产出了什么」时使用。只知道工程、不知道输出目录在哪时, 用 davinci_generation_roots(从工程设置取证)或 davinci_generated_files(直接列清单)。

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": {
      "path": "<path>"
    },
    "name": "davinci_scan_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does disclose the shape of what comes back (totals, extension breakdown, newest files), which is real value, but it never says whether scanning recurses into subdirectories, how it behaves on a nonexistent or empty path, whether it is purely read-only, or how expensive it is on large trees.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short paragraphs: what it returns first, then routing guidance. No filler, and the highest-value information is front-loaded.

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 2-parameter read tool with no output schema and no annotations, the description covers purpose, routing, and the returned data categories well. The remaining gaps — recursion behavior, limit semantics, and failure cases — are minor but real.

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

Parameters3/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. It clarifies that path is an output directory to scan, but says nothing about limit (default 20) — the reader must infer that it caps the 最新文件列表. Half the parameters remain semantically unexplained.

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 (输出目录里的生成产物), then enumerates exactly what is produced: 文件总数, 按扩展名分布, 最新文件列表. It also distinguishes itself from siblings, so an agent can tell it apart from davinci_generated_files without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit trigger condition (生成完成后想知道「到底产出了什么」) and names two alternatives with the condition that selects them: when the output directory is unknown, use davinci_generation_roots or davinci_generated_files. This is exactly the when/when-not/alternatives structure.

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