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

mcp-server-repo-context

repo_tree

Show a repository directory tree that respects .gitignore, helping AI coding agents orient themselves in an unfamiliar codebase before exploring files.

Instructions

Show the repository directory tree (respects .gitignore). Use first to orient yourself in an unfamiliar codebase.

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

Input Schema

NameRequiredDescriptionDefault
pathNoSub-directory, default repo root
excludeNoGlob patterns to exclude
includeNoGlob patterns to include, e.g. ['*.py', 'src/**']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does add a genuine behavioral trait — .gitignore is respected — but says nothing about output shape, depth limits, or how large trees are handled, which matters for a no-annotation tool.

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?

Two short sentences, front-loaded with the verb and resource, with the usage hint immediately following. No filler or 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?

For a read-only, three-optional-parameter orientation tool with full schema coverage and no output schema, this covers purpose and usage adequately. Only the absence of any note on output or size limits keeps it from a 5.

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 path, exclude, and include parameters are already documented with defaults and examples. The description adds no parameter meaning beyond the schema and mentions neither exclusion nor inclusion behavior, so the baseline 3 applies.

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?

States a specific verb and resource ('Show the repository directory tree') and adds a scoping qualifier ('.gitignore' is respected). It is clear on its own, though it does not explicitly contrast itself with siblings like search_code or read_file.

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?

'Use first to orient yourself in an unfamiliar codebase' gives explicit when-to-use context, which is exactly the kind of routing hint an agent needs. It stops short of stating when not to use it or which sibling to prefer for targeted lookups.

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