Skip to main content
Glama

read_symbol

Extract specific code symbols like functions, classes, or types from files across multiple programming languages using streaming and concurrency for efficient searching.

Instructions

Find and extract symbol block by name from files, supports a lot of file formats (like TS, JS, GraphQL, CSS and most that use braces for blocks). Uses streaming with concurrency control for better performance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYesSymbol name(s) to find (functions, classes, types, etc.), case-sensitive, supports * for wildcard
file_pathsNoFile paths to search (supports relative and glob). Defaults to "." (current directory). IMPORTANT: Be specific with paths when possible, minimize broad patterns like "node_modules/**" to avoid mismatches
limitNoMaximum number of results to return. Defaults to 5
optimizeNoUnless explicitly false, this tool will strip comments and spacing to preserve AI's context window, omit unless you REALLY it unchanged (default: true)

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/OrionPotter/flesler-mcp-tools'

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