Skip to main content
Glama

get_codebase_overview

Get a high-level overview of an unfamiliar codebase: entry points, key classes, file structure, and symbol statistics to quickly orient yourself.

Instructions

Get a high-level overview of the codebase architecture.

Returns entry points, key classes, file structure, and symbol statistics.
Use this to quickly orient yourself in an unfamiliar codebase.

Args:
    directory: Path to the codebase directory

Returns:
    Structured overview of the codebase architecture

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "directory": "<directory>"
    },
    "name": "get_codebase_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the shape of what comes back (entry points, key classes, structure, symbol stats), which is useful, but it never states that the operation is read-only, nor whether a directory must first be indexed (relevant given sibling tools like index_directory and sync_index), nor any cost or performance characteristics.

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 short and front-loaded: purpose first, then contents, then when to use it. The trailing 'Args:'/'Returns:' block is somewhat redundant with the output schema and parameter name, but it costs little and does not bury the key information.

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?

An output schema exists, so the return summary is optional duplication rather than a gap-filler. What remains missing is context specific to this codebase tool: whether the directory must be indexed/watched first and whether the call is safe and read-only. For a one-parameter orientation tool this is adequate but not 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 0% for the single 'directory' parameter, so the description must compensate. 'Path to the codebase directory' adds only marginal meaning over the parameter name — it confirms it is a path to a codebase root, but gives no format, relative-vs-absolute, or indexing-state expectations.

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?

The description opens with a specific verb and resource ('Get a high-level overview of the codebase architecture') and enumerates what's returned (entry points, key classes, file structure, symbol statistics). It clearly reads as an orientation/summary tool distinct from lookup siblings like get_symbol_definition or find_references, though it never names an alternative explicitly.

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 gives a concrete usage scenario: 'Use this to quickly orient yourself in an unfamiliar codebase.' That is clear positive guidance for when to reach for this tool. It stops short of exclusions or pointing to alternatives (e.g., use super_grep for targeted searching), so it is not a full when/when-not statement.

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