From 5aeac1fc3ac2953d3233feceaf1562c33ad800f1 Mon Sep 17 00:00:00 2001 From: Egor Kraev Date: Tue, 7 Jul 2026 12:46:32 +0200 Subject: [PATCH] Instruct agents to call help() before any other SLayer tool (DEV-1652) Strengthen the MCP server `instructions` so the leading directive mandates calling help() first, and update the typical workflow to help -> search -> inspect -> query. Co-Authored-By: Claude Opus 4.8 (1M context) --- slayer/mcp/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slayer/mcp/server.py b/slayer/mcp/server.py index d3bf0da1..75bcb2a1 100644 --- a/slayer/mcp/server.py +++ b/slayer/mcp/server.py @@ -272,8 +272,8 @@ def create_mcp_server( # NOSONAR(S3776) — FastMCP tool-registration factory; instructions=( "SLayer is a semantic layer for querying databases. " "Instead of writing SQL, describe what data you want using models, measures, dimensions, and filters. " - "Call help() for an overview of SLayer concepts, and help(topic='...') for deep dives on specific topics. " - "Typical workflow: list_datasources → models_summary → inspect → query. " + "Before calling any other SLayer tool, call help() first for an overview of SLayer concepts, then help(topic='...') for deep dives on specific topics. " + "Typical workflow: help → search → inspect → query. " "To connect a new database: create_datasource → describe_datasource (verify + list tables) → ingest_datasource_models → models_summary." ), )