Skip to main content
Glama

skim_repo

Build a token-budgeted map of a code repository, returning ranked file skeletons with expansion handles for lossless access.

Instructions

Build a LOSSLESS, ranked, token-budgeted map of a whole repo/directory.

Returns each code file's skeleton (signatures + structure, bodies folded), ranked by relevance to query (or by size if no query), trimmed to budget_tokens. Every file gets a handle, so skim_expand(handle, anchors=[...]) returns exact code from any file. Files that didn't fit are listed by name so you can skim_open them individually. Use to understand a codebase cheaply, then expand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
queryNo
max_filesNo
budget_tokensNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool returns skeletons (bodies folded), ranks by query or size, trims to budget_tokens, and lists excluded files. This gives a good understanding of behavior without contradictions.

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 concise, about four sentences, with the main purpose front-loaded. Each sentence adds meaningful information without fluff, earning its place.

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?

Given no annotations, no output schema, and 0% schema coverage, the description provides a decent overview but lacks details on supported file types, error handling, or output format. It is minimally viable but has gaps.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain parameters. It mentions query and budget_tokens implicitly but does not define them clearly. 'max_files' is not mentioned at all. Path is implied but not explained. The description adds minimal value beyond the schema structure.

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 builds a lossless, ranked, token-budgeted map of a repo/directory. It specifies the output (skeleton of files, handles for expansion) and distinguishes from siblings like skim_expand and skim_open.

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?

The description explicitly advises using this tool to understand a codebase cheaply, then expand with skim_expand. It mentions using skim_open for files not included, providing clear context for when to use this tool vs alternatives.

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/helloderekg/skim-mcp'

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