Skip to main content
Glama
mcp-server-repo-context

mcp-server-repo-context

pack_repo

Packs a repository tree and prioritized files into one markdown document within a token budget, listing skipped files explicitly instead of truncating them silently.

Instructions

Pack the repo tree plus the most important files into one markdown document that fits a token budget. Skipped files are listed, never truncated silently.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
excludeNoGlob patterns to exclude
includeNoGlob patterns to include, e.g. ['*.py', 'src/**']
budget_tokensNoMax estimated tokens (default 8000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 disclose one valuable behavioral trait — skipped files are listed rather than silently truncated — but leaves the central mechanism ('most important files') undefined: no ranking heuristic, no ordering rule, and no statement that the operation is a read-only, non-destructive generation step.

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?

Two tight sentences, front-loaded with what the tool produces and immediately followed by the guarantee about skips. No filler, though it could have spent one more sentence on the selection heuristic instead of stopping there.

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?

No output schema exists, and the description does say the result is a single markdown document with a skip listing, which covers the return shape at a high level. Nevertheless, for a tool whose whole value depends on which files get chosen and how the budget is allocated, that mechanism is left unexplained.

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 coverage is 75%, with exclude, include, and budget_tokens documented in the schema; the description only echoes the token budget concept. The bare 'path' parameter (likely the repo root) receives no explanation anywhere, and the interaction between include/exclude and the importance ranking is not clarified.

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?

Names a specific verb and composite resource: packing the repo tree plus selected files into a single markdown document under a token budget. That is clearly distinguishable from repo_tree, read_file, and search_code by its output artifact, though the description never explicitly contrasts itself with them.

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?

The token-budget framing implies the use case (producing context that fits a model window), but there is no explicit when-to-use or when-not guidance, and no alternative tool is named for cases where the agent just needs a tree or a single file. Usage is inferable rather than stated.

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