Skip to main content
Glama
joutvhu

Search Code MCP

by joutvhu

find_symbols

Locate functions, classes, interfaces, methods, types, structs, enums, and variables across a codebase by name or pattern, then filter by symbol kind or file type.

Instructions

Find code symbols (functions, classes, interfaces, methods, types, variables, structs, enums) across the codebase. Automatically selects best available engine: Universal Ctags -> ast-grep -> ripgrep regex heuristic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoSymbol name or substring pattern to find (leave empty to list all symbols in target path)
pathNoFile or directory to search symbols in (default: '.').
kindsNoFilter by symbol kinds: 'function', 'class', 'interface', 'method', 'variable', 'type', 'struct', 'enum', 'trait', 'module'
fileTypeNoFile type filter, e.g. 'ts', 'py', 'rust', 'go'
noIgnoreNoWhether to search inside gitignored files
exactMatchNoIf true, only match exact symbol name. If false (default), matches prefix or substring
maxResultsNoMaximum number of symbols to return (default: 100)
filePatternNoGlob pattern to filter files, e.g. '*.ts' or '*.py'
outputFormatNoOutput format: 'table' (default markdown table), 'json', or 'compact' (file:line: [kind] name)table
excludePatternNoGlob pattern to exclude, e.g. '**/node_modules/**', '**/dist/**'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description must carry behavioral disclosure. It usefully reveals the engine fallback chain (Ctags -> ast-grep -> ripgrep) and implicitly that gitignored files are skipped by default, but it never states that the operation is read-only and non-mutating, nor how results are ordered or truncated beyond the maxResults parameter.

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?

Two sentences, front-loaded with the capability before the implementation detail about engines. No filler, though the parenthetical symbol enumeration is somewhat redundant with the kinds enum in the schema.

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?

With 10 parameters fully covered by the schema but no output schema, the description is adequate for invocation but does not describe the shape of results or how outputFormat changes them. It says what is searched but not what comes back, leaving a modest gap for a tool with this much configuration surface.

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 every parameter is already documented in the schema, setting the baseline at 3. The description adds no parameter-level detail beyond what the schema provides, such as the interaction between exactMatch and name, so it neither helps nor hurts.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Find) and resource (code symbols), and enumerates the symbol kinds it covers, so the agent knows what it returns. It does not name or distinguish itself from the sibling 'search' tool, which overlaps in intent, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance relative to siblings like search, count, or dump_tree. The mention of automatic engine selection implies the tool is a higher-level symbol-aware alternative to raw search, but the agent must infer that routing decision itself.

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

Deploy Server

Other Tools