2929import psycopg
3030from db import get_database , init_database , close_database , SQLValidationError
3131from cache import get_cache
32- from warehouse_docs import UNIFIED_ANALYTICS_EVENTS_GUIDANCE
3332
3433# Load environment variables
3534load_dotenv ()
@@ -245,8 +244,7 @@ async def list_tools() -> list[Tool]:
245244 description = (
246245 "Execute a read-only SQL query against the data warehouse. "
247246 "Returns a query_id for fetching more rows, plus a preview of results. "
248- "Use LIMIT in your SQL for large tables. Max 10,000 rows cached per query.\n \n "
249- f"Analytics guidance: { UNIFIED_ANALYTICS_EVENTS_GUIDANCE } "
247+ "Use LIMIT in your SQL for large tables. Max 10,000 rows cached per query."
250248 ),
251249 inputSchema = {
252250 "type" : "object" ,
@@ -323,11 +321,8 @@ async def list_tools() -> list[Tool]:
323321 "List all available schemas in the data warehouse.\n \n "
324322 "Key schemas:\n "
325323 "- airtable_unified_ysws_projects_db: Shipped projects and NPS on programs\n "
326- "- public_unified_analytics: User histories and events on users. "
327- "Use public_unified_analytics.events for signups and signup sources; "
328- "the first event per normalized email is the signup.\n "
329- "- loops.audience: User profile fields (geocoded country, etc.); "
330- "do not use loops.audience.source for signup/source attribution\n "
324+ "- public_unified_analytics: User histories and events on users\n "
325+ "- loops.audience: User profile fields (geocoded country, etc.)\n "
331326 "- public_hackatime_analytics: Coding activity (preferred over hackatime schema)"
332327 ),
333328 inputSchema = {
@@ -341,10 +336,7 @@ async def list_tools() -> list[Tool]:
341336 description = (
342337 "Get detailed documentation for a schema including tables, columns, "
343338 "and sample data. Limited to 1000 columns per table. "
344- "Use list_columns for tables with more columns. "
345- "For signup counts and signup sources, describe public_unified_analytics "
346- "and query public_unified_analytics.events; the first event per normalized "
347- "email is the signup."
339+ "Use list_columns for tables with more columns."
348340 ),
349341 inputSchema = {
350342 "type" : "object" ,
0 commit comments