Skip to main content
Glama

detect_project_structure_tool

Scans a project's structure and generates suggested YAML configuration content, helping you bootstrap config files from an existing codebase.

Instructions

掃描目前專案結構並產生建議的配置檔內容 (YAML)

Args: project_path: 專案根目錄絕對路徑 project_name: 專案名稱 (用於生成配置)

Returns: YAML 配置建議內容

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_path": "<project_path>",
      "project_name": "<project_name>"
    },
    "name": "detect_project_structure_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_nameYes
project_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2601.5

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry full behavioral burden. It does disclose the output (YAML config suggestions) and implies a scan-read rather than a write, which is meaningful since save_project_structure_tool exists separately. However, it does not state whether the operation touches or creates any files, what happens if project_path does not exist, or any permission requirements.

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 definition is short and front-loaded with the purpose sentence, followed by a clean Args/Returns breakdown. Every line carries information, though the Returns line is largely redundant given an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 2-parameter tool with an output schema, purpose, both parameters, and the return type are covered. The gaps are sibling differentiation and side-effect/prerequisite behavior, which matter because three sibling tools also concern project structure.

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 provides meaning for both parameters — project_path as the absolute project-root path and project_name as the value used when generating config — which is a reasonable compensation. It still omits path format edge cases and validation rules, so it is adequate rather than complete.

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 states a specific verb+resource+output: '掃描目前專案結構並產生建議的配置檔內容 (YAML)' — scan project structure and produce a suggested YAML config. It is clear what the tool does, but it never distinguishes itself from sibling get_project_structure_tool or save_project_structure_tool, leaving the agent to infer the split between detecting, getting, and saving.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no named alternatives. The agent is not told whether to call this instead of get_project_structure_tool, nor what prerequisites exist before scanning. Usage is only implied by the verb 'detect'.

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