Elaway Knowledge Base API
MCP-compatible REST API for semantic search across documents, support tickets, Slack discussions, and WoD deals
32 Tools · JSON-RPC 2.0MCP-compatible REST API for semantic search across documents, support tickets, Slack discussions, and WoD deals
32 Tools · JSON-RPC 2.0Search engine for Elaway's internal knowledge - documents, support history, Slack conversations, and deal data. Automatically syncs daily from 8+ sources and provides semantic search via 32 specialized tools.
Sales: Find similar deals, pricing history, customer issues
Support: Search past ticket resolutions, common problems, FAQs
Product: Discover feature requests, bugs, usage patterns
Leadership: Access company docs, meeting notes, decisions
Base URL: https://<PROJECT_REF>.supabase.co
curl -X POST "https://<PROJECT_REF>.supabase.co/functions/v1/mcp-readonly" \
-H "Authorization: Bearer $SUPABASE_ANON_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "kb_search",
"arguments": {
"query": "charging error codes",
"match_count": 5
}
}
}'
Primary semantic search across all sources (documents, tickets, Slack, WoD)
OpenAI Deep Research compatible search (flat results)
Get full content by ID after search
SQL-like queries with filters (up to 500 rows)
Aggregations, statistics, group by
Discover all 14 tables and schemas
Quick row counts for all tables
Complete Slack thread (up to 200 messages)
Complete HubSpot ticket thread
Full document content (up to 200K chars)
Complete WoD deal with circuits, costs, offers
Navigate Notion page hierarchy
Identify experts by participation
Common issues and resolutions
Find docs by metadata similarity
Side-by-side deal comparison (2-5 deals)
WoD cost analytics
Check sync status for all sources
Raw 1536-dimensional vectors
Convert text to vector
Compare text against records
| Table | Records | Description |
|---|---|---|
documents |
9,588 | PDFs, Word docs, FAQs, specifications, guides |
training_conversations |
15,095 | HubSpot support tickets with embeddings |
training_messages |
~50K | Individual messages within conversations |
slack_threads |
450+ | Slack thread root messages |
slack_messages |
893 | Slack messages with embeddings |
wod_deals |
57 | Wheel of Deal pricing (42 columns) |
notion_pages |
127 | Platform documentation |
| Source | Sync Schedule |
|---|---|
| Slack messages | Daily at 06:00 UTC |
| HubSpot tickets | Daily at 06:00 UTC |
| Notion pages | Daily at 05:00 UTC |
| Documents | Manual ingestion |
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\"results\": [...], \"total\": 5}"
}
]
}
}