Skip to main content
Glama

Project Structure

project_structure

List bounded relative project paths up to a set depth, excluding common generated directories, to give scripts and AI agents a focused project view.

Instructions

Return bounded relative project paths, excluding common generated directories.

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": "project_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
projectNo
max_depthNo

Output Schema

NameRequiredDescriptionDefault
pathsYes
truncatedYes
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavior beyond the schema: paths are relative, output is bounded, and generated directories are filtered out — but 'common generated directories' is never defined, and there is no statement about read-only safety or side effects. Having an output schema relieves it of describing return values.

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?

A single tight sentence with no filler, and the most distinguishing information (relative, bounded, excludes generated) is front-loaded. It is arguably over-compressed rather than padded, but every word earns its place.

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?

Output schema exists so return shape is covered, and all parameters are optional with defaults, which lowers the burden. However, for a traversal tool the agent still lacks guidance on what max_depth=2 means in practice, which directories are excluded, and whether the project argument is required in a multi-project session.

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%, so all three parameters (limit, project, max_depth) are undocumented in structured form. The description's word 'bounded' hints at limit/depth but gives no syntax, defaults, or interaction between them, and it never mentions the project scoping parameter at all — a significant gap it should have filled.

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?

States a specific verb and resource: 'Return bounded relative project paths,' plus the notable exclusion of common generated directories. That is enough to tell it apart from list_projects or project_context at a glance, though it never explicitly names how it differs from those siblings.

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?

No when-to-use or when-not-to-use guidance is given. The agent must infer that this is for inspecting file/folder layout rather than task lists or git state, and nothing tells it whether this is a cheap or expensive call relative to alternatives like project_capabilities.

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