Skip to main content
Glama

get_project_structure_tool

Reads the project.structure.yml configuration for a specified project and returns its YAML contents, helping AI agents inspect and understand the project structure.

Instructions

讀取專案目前的結構配置檔 (project.structure.yml)

Args: 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_name": "<project_name>"
    },
    "name": "get_project_structure_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2601.5

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it does establish that this is a read of a specific on-disk YAML file and that the payload is raw YAML content. It omits failure behavior when the file is absent, whether the project must already be registered, and any permission or path-scoping constraints.

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?

Front-loaded single-line purpose followed by a clear Args/Returns block with no filler. Slight redundancy in restating the return value as YAML content when an output schema already exists, but it is short and easy to parse.

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 one-parameter read tool with an output schema, purpose and return type are covered adequately. The gaps are the ambiguous identifier format and the absence of error/not-found behavior, which matter because the tool reads a specific named file.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single required parameter, so the description must compensate. It only restates the parameter as '專案名稱' (project name), leaving unresolved whether project_name is a display name, a slug, a directory identifier, or an ID used to locate the file.

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 uses a specific verb '讀取' (read) and a precise resource: the project's current structure config file, naming the concrete artifact project.structure.yml. That artifact-level detail distinguishes it from siblings like save_project_structure_tool and detect_project_structure_tool, though it never explicitly contrasts itself with them.

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?

The word '目前' (current) hints that this reads an existing configuration, but there is no statement of when to call this versus detect_project_structure_tool or save_project_structure_tool. No preconditions, no exclusions, and no note on what to do if no structure file exists yet.

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