Skip to main content
Glama

search

Find functions, classes, methods, or variables in source code using name, kind, or text search with filters for language, file patterns, and fuzzy matching.

Instructions

Search symbols by name, kind, or text. Use instead of Grep when looking for functions, classes, methods, or variables in source code. Supports kind/language/file_pattern filters. Set fuzzy=true for typo-tolerant search (trigram + Levenshtein). For natural-language / conceptual queries set semantic="on" (requires an AI provider configured + embed_repo run once). Set fusion=true for Signal Fusion — multi-channel ranking (BM25 + PageRank + embeddings + identity match) via Weighted Reciprocal Rank fusion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query
kindNoFilter by symbol kind (class, method, function, etc.)
languageNoFilter by language
file_patternNoFilter by file path pattern
implementsNoFilter to classes implementing this interface
extendsNoFilter to classes/interfaces extending this name
decoratorNoFilter to symbols with this decorator/annotation/attribute (e.g. "Injectable", "Route", "Transactional")
fuzzyNoEnable fuzzy search (trigram + Levenshtein). Auto-enabled when exact search returns 0 results.
fuzzy_thresholdNoMinimum Jaccard trigram similarity (default 0.3)
max_edit_distanceNoMaximum Levenshtein edit distance (default 3)
semanticNoSemantic mode: auto (default — hybrid if AI available), on (force hybrid), off (lexical-only), only (pure vector). Requires AI provider + embed_repo for non-"off" modes.
semantic_weightNoHybrid fusion weight in [0,1]. 0 = lexical only, 0.5 = balanced (default), 1 = semantic only.
fusionNoEnable Signal Fusion Pipeline — multi-channel WRR ranking across lexical (BM25), structural (PageRank), similarity (embeddings), and identity (exact/prefix/segment match). Produces better results than single-channel search.
fusion_weightsNoPer-channel weights for fusion (auto-normalized). Defaults: lexical=0.4, structural=0.25, similarity=0.2, identity=0.15.
fusion_debugNoInclude per-channel rank contributions in fusion results.
limitNoMax results (default 20)
offsetNoOffset for pagination
Behavior4/5

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

With no annotations provided, the description carries full burden and does an excellent job explaining behavioral traits: it describes fuzzy search behavior (trigram + Levenshtein), semantic search requirements (AI provider + embed_repo), fusion ranking methodology (BM25 + PageRank + embeddings + identity match), and default behaviors (auto-enable fuzzy when exact search returns 0). It doesn't mention rate limits or authentication needs, but covers most operational aspects well.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with each sentence adding distinct value: purpose statement, Grep comparison, filter types, fuzzy search explanation, semantic search requirements, and fusion ranking details. While comprehensive, it remains focused without unnecessary repetition, though it could be slightly more front-loaded.

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?

For a complex tool with 17 parameters, no annotations, and no output schema, the description provides substantial context about behavior, usage scenarios, and parameter relationships. It explains the different search modes (fuzzy, semantic, fusion) and their requirements. The main gap is lack of information about return format or result structure, but otherwise it's quite complete.

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

Parameters4/5

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

With 100% schema description coverage, the baseline is 3. The description adds significant value by explaining the semantic meaning and relationships between parameters: it clarifies that fuzzy=true enables typo-tolerant search, semantic='on' enables AI-powered search with prerequisites, and fusion=true enables multi-channel ranking. This provides context beyond the schema's technical descriptions.

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 searches for symbols (functions, classes, methods, variables) in source code using name, kind, or text criteria. It specifically distinguishes this from Grep for code-specific searches and mentions multiple filter types, making the purpose specific and differentiated from siblings.

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 provides explicit guidance on when to use this tool ('Use instead of Grep when looking for functions, classes, methods, or variables in source code') and offers clear alternatives for different scenarios (fuzzy search for typos, semantic search for conceptual queries, fusion for multi-channel ranking). This gives comprehensive usage context.

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

Install Server

Other Tools

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/nikolai-vysotskyi/trace-mcp'

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