Skip to main content
Glama

get_project_structure

Get a high-level overview of an unfamiliar codebase organized by file purpose, so you can understand project structure and decide where to inspect next.

Instructions

Get a high-level overview of project structure organized by file purpose. Best starting point for understanding an unfamiliar codebase. Minimal tokens, maximum insight.

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

Input Schema

NameRequiredDescriptionDefault
projectNoProject namedefault

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.6/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 behavioral burden. It discloses an output-economy trait ('minimal tokens, maximum insight'), which usefully tells the agent the response is compact, but it does not state that the operation is read-only, what happens with an unknown or unindexed project name, or what the overview actually contains.

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?

Three short, front-loaded sentences with the purpose first and the recommendation second. The closing 'Minimal tokens, maximum insight' is partly promotional, though it does convey a real property about response size.

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 one-parameter read tool with no output schema, the description should sketch what the overview looks like. 'Organized by file purpose' is a start, but the agent cannot tell whether it returns a directory tree, purpose categories, or file counts, leaving a real gap given there is no output schema.

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 100% and the single 'project' parameter is documented in the schema with a 'default' value. The description adds no meaning beyond that—no hint about accepted naming, case sensitivity, or behavior when the project is omitted—so the baseline 3 applies.

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 ('Get') and resource ('project structure') and adds a distinguishing qualifier: results are 'organized by file purpose,' which separates it from a raw architecture or symbol view. It never names a sibling like get_architecture to sharpen the contrast, so it stops short of a 5.

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?

'Best starting point for understanding an unfamiliar codebase' gives clear positive guidance on when to reach for this tool. There are no exclusions or named alternatives (e.g., when to prefer get_architecture or search_codebase instead), so an agent must infer the boundary.

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