Skip to main content
Glama

repo_stats

Retrieve a language and size breakdown for a local repository, providing total files, total lines, and per-extension details sorted by line count.

Instructions

Get a language and size breakdown for a local repository.

Args: path: Filesystem path to the repo root (default: current directory).

Returns: Dict with total_files, total_lines, and a per-extension breakdown (files + lines), sorted by line count descending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo.
Behavior4/5

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

No annotations provided, so description carries the burden. It transparently describes the return structure (total_files, total_lines, per-extension breakdown) and sorting. It's a read operation with no destructive behavior. Could mention potential performance impact for large repos, but overall clear.

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?

Three concise sentences covering purpose, arguments, and returns. Front-loaded with purpose. No redundant or irrelevant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple parameter and no output schema, the description fully covers input, behavior, and output. It is complete for the tool's complexity.

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

Parameters4/5

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

The only parameter, path, is explained: 'Filesystem path to the repo root (default: current directory).' This adds meaning beyond the schema (which only specifies type and default). With 0% schema description coverage, the description compensates well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves a language and size breakdown for a local repository. It specifies the verb 'Get' and the resource 'local repository', and is distinct from sibling tools like find_large_files or tech_stack.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives. The context implies it's for initial repo analysis, but lacks explicit when/when-not or comparisons to siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AzamHosseinian/devinsight-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server