Skip to main content
Glama

trace_symbol

Trace a symbol to find its constant value and hardcoded copies (magic numbers) across the project, enabling impact analysis before renaming or modifying code.

Instructions

Trace constant values + hardcoded copies (magic numbers). Function impact? impact_analysis. Rename? rename_symbol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile rel to root where symbol is defined
symbolYesSymbol name to trace (e.g. "MAX_RETRY_COUNT")
max_resultsNoMax results per section (default: 30)
workspace_dirYesREQUIRED: project root (abs). reindex first if new.
include_literalsNoSearch for hardcoded literal values across the project (default: false, slower)

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