Skip to main content
Glama

file_outline

Generate a hierarchical outline of a file's classes, functions, and methods with line ranges and signatures. Read this summary instead of the entire file to understand its structure.

Instructions

Tree of classes/functions/methods in a file with line ranges, signatures, reference counts, imports and importers. Read this instead of the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
show_importsNo
include_privateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/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 implies a read-only operation via "read this instead of the file" and describes returned content, but never explicitly states side-effect-free status, cost, or whether private symbols are hidden by default.

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 resource and output contents, ending with the actionable selection instruction. Zero waste.

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?

An output schema exists, so return values need not be explained, and the description adequately conveys scope. The one gap is the undocumented boolean options, which matter for correct invocation but are minor relative to the overall completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for all three parameters, and the description only loosely gestures at imports (related to show_imports) while saying nothing about include_private or the required path format. The optional flags remain undocumented in both schema and prose.

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 resource (classes/functions/methods in a file) and enumerates the exact payload (line ranges, signatures, reference counts, imports and importers), which cleanly separates it from siblings like repo_map, symbol_source, and grep.

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?

"Read this instead of the file" gives explicit when-to-use guidance. It does not name competing siblings such as grep or symbol_source, so the routing is clear but not exhaustive.

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