GrepAI MCP Tools Reference
This skill provides a complete reference for all tools available through GrepAI's MCP server.
When to Use This Skill
- Understanding available MCP tools
- Learning tool parameters and options
- Integrating GrepAI with AI assistants
- Debugging MCP tool usage
Starting the MCP Server
The server exposes tools via the Model Context Protocol.
Available Tools
1. grepai_search
Semantic code search using embeddings.
Parameters
Example Request
Response (Compact)
Response (Full)
2. grepai_trace_callers
Find all functions that call a specified symbol.
Parameters
Example Request
Response (Compact)
Response (Full)
3. grepai_trace_callees
Find all functions called by a specified symbol.
Parameters
Example Request
Response (Compact)
4. grepai_trace_graph
Build a complete call graph starting from a symbol.
Parameters
Example Request
Response (Compact)
Response (Full)
5. grepai_index_status
Check the health and status of the code index.
Parameters
Example Request
Response
Compact Format Reference
When compact: true, responses use abbreviated keys:
Token Efficiency
Compact mode reduces tokens significantly:
Error Responses
Index Not Found
Embedder Connection Failed
Symbol Not Found
Invalid Parameters
Best Practices for AI Integration
- Use compact mode: Reduces token usage by ~80%
- Limit results: Request only what you need
- Check status first: Use
grepai_index_statusbefore searches - Handle errors: Check for error responses
- Combine tools: Search + trace for full understanding
MCP Protocol Details
Request Format
Response Format
Output Format
MCP tools reference summary:


