Skip to main content
Glama

get_overview

Read-only

Get a large file's structure, size, and semantic outline before reading it; returns line counts, headings, code functions/classes, and search suggestions.

Instructions

Get file structure, size, and semantic outline for large files (code, logs, data).

Use FIRST when working with any file over 1000 lines or when you need to
understand file structure. Returns: line count, byte size, binary detection,
long line stats, section headings, and suggested search patterns. For code
files, uses Tree-sitter to extract functions, classes, and structure;
Markdown files get ATX headings. The response includes outline_status:
"ok" (semantic outline produced), "unsupported_language" (no parser/
extractor for the extension), or "parse_failed" (semantic parse failed;
a plain-text fallback outline is returned). Does NOT return file
content - use read_content or search_content for that.

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": {
      "absolute_file_path": "<absolute_file_path>"
    },
    "name": "get_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
changed_linesNoOptional list of changed line ranges from a diff. Each entry is [start, end] or [start, end, type] where type is "added", "modified", or "removed". Example: [[10, 15, "added"], [45, 52]]. Available from diffchunk list_chunks file_details output.
absolute_file_pathYesAbsolute path to target file (e.g., /path/to/large_module.py)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this a read-only, non-destructive operation, and the description still adds substantial context: the exact return fields, the parser used per file type (Tree-sitter for code, ATX headings for Markdown), and the three possible outline_status values with their meanings including fallback behavior on parse failure.

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?

Purpose and the "use FIRST" trigger are front-loaded, then return details follow. The outline_status enumeration is dense but earns its place given there is no output schema; minor tightening is possible but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden of explaining returns and does so thoroughly, including status semantics and the explicit negative space (no file content). Nothing an agent needs to call this correctly is missing.

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 both parameters (including the changed_lines diff ranges) are already documented in the schema. The description adds nothing about parameter usage or format, so the baseline of 3 applies.

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?

States a specific verb and resource ("Get file structure, size, and semantic outline"), scopes it to large files, and explicitly distinguishes itself from siblings by declaring it does NOT return file content and pointing to read_content and search_content instead.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ("Use FIRST when working with any file over 1000 lines") plus a secondary condition (when you need to understand file structure), and names the alternative tools for the case this one doesn't cover.

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