Skip to main content
Glama

index_repo

Analyzes codebase structure to identify project type, key files, complexity hotspots, and dependencies for AI agents to understand repositories before making changes.

Instructions

Build the semantic index and return a full orientation. Run this once at session start. Returns project type, stats, top files, complexity hotspots, and module dependency map. ~500-700 tokens — everything an agent needs to begin.

exclude_dirs: comma-separated directory prefixes to skip (e.g. "archive,vendor,dist").
  Also reads from .tempo/config.json "exclude_dirs" array. Both sources are merged.
output_format: "text" (default) or "json" for structured response with
{status, data, tokens, duration_ms} fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
exclude_dirsNo
output_formatNotext

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

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/Elmoaid/TempoGraph'

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