Skip to main content
Glama

aidex_query

Search codebases for functions, classes, and variables by name using an indexed approach. Returns precise file locations where terms appear, offering faster and more accurate results than traditional grep searches.

Instructions

Search for terms/identifiers in the AiDex index. Returns file locations where the term appears. PREFERRED over Grep/Glob for code searches when .aidex/ exists - faster and more precise. Use this instead of grep for finding functions, classes, variables by name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to project with .aidex directory
termYesThe term to search for
modeNoSearch mode: exact match, contains, or starts_with (default: exact)
file_filterNoGlob pattern to filter files (e.g., "src/commands/**")
type_filterNoFilter by line type: code, comment, method, struct, property
modified_sinceNoOnly include lines modified after this time. Supports: "2h" (hours), "30m" (minutes), "1d" (days), "1w" (weeks), or ISO date string
modified_beforeNoOnly include lines modified before this time. Same format as modified_since
limitNoMaximum number of results (default: 100)

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/CSCSoftware/AiDex'

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