Skip to main content
Glama
Aeolun

Repomix MCP Server

by Aeolun

repomix-estimate

Estimate token count for repository content before processing. Use with file filters to assess context size and manage AI model input limits efficiently.

Instructions

Estimate repomix output size before retrieval. ALWAYS use this first with the "include" parameter to filter only relevant files (e.g., ".md,.ts,.js" for TypeScript, ".md,*.py" for Python). If estimated tokens are reasonable (<50K), proceed with repomix using the same filters. This helps load the entire relevant context efficiently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoPath to the directory to pack
styleNoOutput format style
compressNoCompress output to reduce token count
includeNoFiles to include (glob pattern). Examples: "*.md,*.ts,*.js" for TypeScript projects, "*.md,*.py" for Python, "*.md,*.go" for Go. Always specify to avoid large outputs!
ignoreNoFiles to exclude (glob pattern). Use to filter out test files, build outputs, etc. Example: "*test*,*spec*,dist/**,build/**"
remoteNoRemote repository URL to process
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's purpose (estimation before retrieval), provides practical guidance on parameter usage, and mentions the token threshold (<50K) for decision-making. However, it doesn't cover potential errors, rate limits, or authentication needs, leaving some behavioral aspects unspecified.

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?

The description is appropriately sized with three sentences that each serve a clear purpose: stating the tool's purpose, providing usage instructions, and explaining the workflow. It's front-loaded with the core purpose and avoids unnecessary repetition. However, the second sentence is somewhat long and could be more streamlined.

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

Completeness4/5

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

Given the tool's complexity (6 parameters, no output schema, no annotations), the description provides good contextual coverage. It explains the purpose, usage workflow, and parameter importance. However, it doesn't describe what the estimation output looks like (token count, file count, etc.), which would be helpful since there's no output schema. The guidance on when to use the sibling tool partially compensates for this gap.

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?

The schema description coverage is 100%, so the schema already documents all 6 parameters thoroughly. The description adds value by emphasizing the importance of the 'include' parameter with specific examples and warnings ('Always specify to avoid large outputs!'), but doesn't provide additional semantic context beyond what's in the schema for other parameters. This meets the baseline for high schema coverage.

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's purpose: 'Estimate repomix output size before retrieval.' It specifies the verb ('estimate'), resource ('repomix output size'), and distinguishes it from its sibling 'repomix' by emphasizing it's for estimation before actual retrieval. This provides specific differentiation from the sibling tool.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'ALWAYS use this first with the "include" parameter to filter only relevant files.' It also specifies when to proceed with the sibling tool: 'If estimated tokens are reasonable (<50K), proceed with repomix using the same filters.' This offers clear alternatives and conditions for tool selection.

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/Aeolun/repomix-mcp'

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