Skip to main content
Glama

scan_project

Read-only

Scan the current workspace read-only to map directories and file paths, return bounded file:line evidence, and produce a diagram draft for draw_board.diagram to visualize project structure.

Instructions

可选能力:只读扫描当前工作区的目录与文件路径,并返回少量 file:line 证据文本,同时给一份可直接传给 draw_board.diagram 的草图(DIAGRAM_DRAFT_JSON)。项目结构只是画板可以讨论的内容之一;本工具不生成图、不改画板、不写文件,也不授权代码变更。要可视化时把草图传给 draw_board。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scan_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNoMaximum directory depth, 1-6; defaults to 3
max_filesNoMaximum number of entries, 1-400; defaults to 80
include_evidenceNoInclude bounded file:line evidence; defaults to true

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.9.0
    • changedInput schema / properties / max_depth / description
      Previous value: -"Maximum directory depth; defaults to 3, maximum 6"New value: +"Maximum directory depth, 1-6; defaults to 3"
    • changedInput schema / properties / max_depth / maximum
      Previous value: -6New value: +9007199254740991
    • changedInput schema / properties / max_depth / minimum
      Previous value: -1New value: +-9007199254740991
    • changedInput schema / properties / max_files / description
      Previous value: -"Maximum number of entries; defaults to 80, maximum 400"New value: +"Maximum number of entries, 1-400; defaults to 80"
    • changedInput schema / properties / max_files / maximum
      Previous value: -400New value: +9007199254740991
    • changedInput schema / properties / max_files / minimum
      Previous value: -1New value: +-9007199254740991
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the description's negative guarantees (不生成图、不改画板、不写文件、不授权代码变更) are partly redundant but still reinforce the boundary against sibling tools. It adds value beyond annotations by disclosing the shape of the output (bounded evidence text plus a draft object) and the handoff contract with draw_board.

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?

It is compact and front-loaded: capability and outputs first, then scope disclaimers, then the draw_board handoff. Every clause carries either a capability, a boundary, or a routing instruction; nothing is 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 three-optional-parameter, non-mutating scan tool with no output schema, the description covers what is produced (evidence lines and a DIAGRAM_DRAFT_JSON) and what is explicitly not done. The only gap is that the draft's intended consumer is named but its content is not characterized.

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 100%, so depth, file-count caps and the evidence toggle are already documented in the schema. The description only alludes to one of them indirectly through '少量 file:line 证据文本', adding little semantic detail beyond defaults or bounds.

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 and resource (只读扫描当前工作区的目录与文件路径) and states the two artifacts returned: bounded file:line evidence and a DIAGRAM_DRAFT_JSON draft. It also separates itself from draw_board by stating that it does not render diagrams. The hedging opener '可选能力' slightly softens an otherwise precise statement.

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 an explicit handoff rule: when you want visualization, pass the draft to draw_board, and it clarifies that project structure is only one of the things the board can discuss. It does not spell out conditions where scanning is unnecessary or too costly, but the routing guidance is clear.

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

Deploy Server

Other Tools