Skip to main content
Glama

read_outline

Get a file's symbol hierarchy (functions, classes, signatures) with configurable depth. Avoid full-file reads by returning only structural outlines from the symbol index.

Instructions

File structure: functions/classes/signatures, no full read. depth=hierarchy nesting, NOT call depth. Known symbol? read_symbol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile path relative to workspace_dir (e.g. "src/auth.py")
depthNoHierarchy depth: 0=top-level only, 1=class+methods, 2=full recursive (default: 1)
max_itemsNoMax top-level items to return (default: 50)
include_refsNoInclude reference counts per symbol (default: false)
workspace_dirYesREQUIRED: project root (abs). reindex first if new.
include_test_refsNoInclude test reference counts (default: false)

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/wulun811/LiuHe'

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