Skip to main content
Glama

save_project_structure_tool

Save or update a project's structure configuration file (project.structure.yml) with YAML content to preserve codebase layout knowledge for AI-assisted project management.

Instructions

儲存或更新專案的結構配置檔 (project.structure.yml)

Args: project_name: 專案名稱 content: YAML 配置內容

Returns: 執行結果訊息

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_name": "<project_name>",
      "content": "<content>"
    },
    "name": "save_project_structure_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
project_nameYes

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 carries the full burden. It does disclose the key behavioral trait that this is an upsert (overwrite if exists) and identifies the target file path, which is useful. It says nothing about validation of the YAML, failure modes, permissions, or whether writes are reversible.

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 sentence is front-loaded and the Args/Returns block is compact. The Returns note is largely redundant given an output schema exists, but overall there is little wasted wording.

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?

An output schema exists, so return values need not be explained, and the two parameters are at least labeled. For a write tool with zero annotation coverage, though, the definition is thin on the consequences of overwriting an existing project.structure.yml.

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 does label both parameters ('專案名稱' and 'YAML 配置內容'), which is better than nothing. However, it adds no detail on the expected YAML structure, key names, or size limits, so an agent still cannot construct valid content from the definition alone.

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 gives a specific verb pair ('儲存或更新' = save or update) and a concrete resource, naming the exact artifact it writes: project.structure.yml. This makes it distinguishable from siblings like detect_project_structure_tool and get_project_structure_tool, though it does not name those siblings explicitly.

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?

Beyond the implicit upsert semantics of 'save or update', the description offers no guidance on when to use this instead of detect_project_structure_tool or get_project_structure_tool, nor any prerequisite (e.g., must the project already exist, must the structure be detected first).

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