Skip to main content
Glama

scan_project

Read-only

Scans the current workspace read-only to map directory and file paths and returns bounded file:line evidence for project-structure discussions.

Instructions

可选能力:只读扫描当前工作区的目录与文件路径,并返回少量 file:line 证据文本。项目结构只是画板可以讨论的内容之一;本工具不生成图、不改画板、不写文件,也不授权代码变更。需要可视化时用 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; defaults to 3, maximum 6
max_filesNoMaximum number of entries; defaults to 80, maximum 400
include_evidenceNoInclude bounded file:line evidence; defaults to true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 safety profile is covered. The description adds genuinely new behavior beyond that: the output is a small, bounded set of file:line evidence strings, and scan results confer no authorization for code changes. The negative list about not drawing or writing largely restates the annotations, which slightly dilutes the value.

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 purpose is front-loaded in the first clause, followed by scope limits and then the sibling routing advice, which is a sensible order. The four-item negative enumeration (no diagrams, no board change, no file writes, no code-change authorization) is partly redundant with the annotations and could be tightened.

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?

With no output schema, the description carries the burden of describing returns and does so by noting the bounded file:line evidence. Combined with the annotations and fully documented schema, an agent has enough to call this correctly; only the concrete shape of the evidence text is left implicit.

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 coverage is 100% and all three parameters (max_depth, max_files, include_evidence) carry their own descriptions with defaults and bounds. The description adds no parameter-level detail such as what evidence looks like or how max_files interacts with max_depth, so the baseline of 3 applies.

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 description gives a specific verb and resource: a read-only scan of the current workspace's directories and file paths, returning bounded file:line evidence. It explicitly separates this from draw_board, so an agent can choose between the two without inspecting 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 Guidelines4/5

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

It names the alternative (draw_board) and the condition that selects it: when visualization is needed, draw the paths onto the shared board. It also frames the tool as an 'optional capability' and limits its role in the broader board discussion, but it never states a positive condition such as when a scan is the right first step.

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

This server cannot be deployed

Other Tools