Prompts
Reusable text templates with parameters that AI assistants can invoke via MCP. Define once, use everywhere — no code changes needed.
How It Works
- Create
prompts.jsonwith template definitions - MCP server registers them as available prompts
- AI assistant (Claude Code, etc.) can invoke them by name with parameters
- Template renders into a structured instruction for the AI
Use Cases
- Standardize team workflows (e.g., "analyze collection before optimization")
- Create project-specific search patterns (e.g., "find code related to ticket X")
- Build guided wizards for complex operations
Setup
-
Create a prompts configuration file (e.g.,
prompts.jsonin the project root). Seeprompts.example.jsonfor example configurations. -
Configure the server (optional — only needed for custom path):
{
"mcpServers": {
"qdrant": {
"env": {
"PROMPTS_CONFIG_FILE": "/custom/path/to/prompts.json"
}
}
}
}
- Use prompts in your AI assistant:
/mcp__tea-rags-mcp__find_similar_docs papers "neural networks" 10
Template Syntax
Templates use {{variable}} placeholders:
- Required arguments must be provided
- Optional arguments use defaults if not specified
Example Prompts
See prompts.example.json for ready-to-use prompts including:
setup_rag_collection— create RAG-optimized collectionsanalyze_collection— collection insights and recommendationscompare_search_methods— semantic vs hybrid search comparison