Skip to main content
Glama

trace_symbol

Find all occurrences of a symbol, including constant values and hardcoded literal copies, to assess impact across your codebase.

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)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does not state whether the operation is read-only, any side effects, performance implications, or return format. The only hints come from parameter descriptions in the schema, not from the main description.

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?

The description is extremely concise (two short sentences) and front-loaded with the core purpose. It avoids fluff and efficiently points to alternatives, achieving maximum clarity per word.

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

Completeness3/5

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

The description covers the core purpose and alternatives, and the schema documents all parameters. However, without an output schema or annotations, the description doesn't convey what results to expect or how to interpret them. It's adequate for a simple trace tool but lacks some context.

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 the baseline is 3. The description adds minimal semantic value; it hints at the tool's purpose (tracing constants) which clarifies the symbol parameter, but it doesn't explain parameter interactions or specifics beyond the schema.

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?

The description clearly states the tool's function: tracing constant values and hardcoded copies (magic numbers). It also distinguishes itself from siblings by explicitly pointing to alternatives (impact_analysis for function impact, rename_symbol for renaming), making its scope unambiguous.

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?

The description explicitly tells the agent when to use this tool (for value tracing) versus when to use alternatives: 'Function impact? impact_analysis. Rename? rename_symbol.' This provides clear exclusion guidance and alternative routing.

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

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