Skip to main content
Glama

Scan Repository Structure

scan_repo_structure

Scan a local folder or GitHub URL to explain a project's tech stack and architecture without cloning, helping you understand codebase structure and key components.

Instructions

Scans a project and explains the tech stack and architecture. Accepts a local folder path OR a GitHub URL (e.g. https://github.com/user/repo) — no cloning needed.

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": {
      "repo_path": "<repo_path>"
    },
    "name": "scan_repo_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathYesLocal folder path OR a GitHub repo URL (https://github.com/user/repo)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 add real behavioral context — that a GitHub URL is accepted and "no cloning needed" — which is valuable and non-obvious. It omits whether private repos or auth are supported, whether the operation is strictly read-only with no local side effects, and any size/rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the purpose before the input options, with no filler or redundancy.

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 this covers purpose and accepted inputs adequately. However, with no annotations and no output schema, the description should do more to characterize the result (structure, depth, limits) and the safety profile, which it leaves implicit.

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?

There is a single parameter with 100% schema description coverage, and the schema already states "Local folder path OR a GitHub repo URL". The description restates the same constraint with an example, adding no new semantics, 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?

"Scans a project and explains the tech stack and architecture" names a specific verb (scans) and a concrete output (stack + architecture), so an agent knows what it gets back. It does not explicitly differentiate itself from siblings like ask_codebase or identify_key_files, which keeps it 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 Guidelines2/5

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

The description says what the tool does but never states when to choose it over ask_codebase, explain_auth_flow, or identify_key_files, nor any when-not-to-use condition. The only guidance offered is about input format (local path or GitHub URL), which is not usage guidance.

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