Skip to main content
Glama

code_get_files

Get contents of multiple files from a remote public git repository in a single call. Reduces round-trips when you need to read several related files. Max 10 files per batch, 5000 total lines budget across all files. Each file supports optional line ranges. Failed files return per-file errors without blocking other files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesList of files to read. Each entry has a path and optional line range.
max_linesNoPer-file safety cap on lines returned (cap: 2000).
repositoryYesGit URL of a public remote repository

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description takes on full responsibility and discloses key behaviors: 'Max 10 files per batch', '5000 total lines budget', 'per-file errors without blocking other files'. It omits return format details but covers operational limits and error handling.

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?

The description is four sentences, each conveying distinct important information (function, use case, limits, error handling). It is front-loaded and free of redundancy.

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 no output schema, the description could benefit from explaining return structure, but the core behavior (contents, limits, per-file errors) is well covered. The tool's simplicity and sibling context make the description sufficiently complete.

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 description coverage is 100%, so the baseline is 3. The description adds a global line budget context but otherwise duplicates what the schema already explains about paths and line ranges.

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 explicitly states the tool 'gets contents of multiple files from a remote public git repository in a single call', with a clear verb and scope. This distinguishes it from siblings like code_get_file or code_search by emphasizing batch retrieval.

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?

It provides clear context by saying 'reduces round-trips when you need to read several related files', implying when to use this over single-file tools. However, it does not explicitly mention alternatives or when not to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool targets a distinct function: repo overview, file tree, single file, multiple files, detailed findings, and code search. The overlap between code_analyze and code_get_findings is explicitly staged as a workflow (analyze first, then drill into findings), so there's no real ambiguity.

Naming Consistency4/5

All tools share the 'code_' prefix and use snake_case, but while most use imperative verbs (analyze, get, search), code_file_tree uses a noun phrase, slightly breaking the verb_noun pattern. The style is consistent enough to be predictable, but the one deviation prevents a perfect score.

Tool Count5/5

The 6 tools are well-scoped for a read-only code analysis and search server. They cover the core needs without redundancy or bloat, fitting comfortably in the ideal 3-15 range.

Completeness5/5

The toolset provides a complete read-only workflow: analyze repo (code_analyze), explore structure (code_file_tree), search code (code_search), retrieve files individually or in bulk (code_get_file/code_get_files), and access detailed findings (code_get_findings). No obvious gaps for the stated purpose.

Resources