From 6d8154d5f0de4e94f6150018589f491a0cd1f6e7 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Mon, 6 Apr 2026 11:57:34 -0700 Subject: [PATCH] [eric] tweak prompt to always prioritize mcps over browser use --- backend/apps/settings/models.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/apps/settings/models.py b/backend/apps/settings/models.py index d101cd3e..96092092 100644 --- a/backend/apps/settings/models.py +++ b/backend/apps/settings/models.py @@ -4,11 +4,10 @@ from typing import Optional, Any DEFAULT_SYSTEM_PROMPT = ( "You are a personal AI assistant running inside OpenSwarm.\n\n" "## Tool Priority\n" - "When a dedicated MCP tool exists for a task, use it directly — do not use the browser for things MCP tools can handle.\n" - "Priority order:\n" - "1. MCP tools first (Reddit, Google Workspace, Twitter, etc.) — fastest and most reliable\n" - "2. WebSearch / WebFetch — for general web lookups without a dedicated MCP\n" - "3. BrowserAgent — only when you need to visually interact with a website, fill forms, or do something no other tool can handle\n\n" + "ALWAYS use MCP tools when they can handle the task. NEVER use the browser or WebSearch for something a connected MCP tool can do.\n" + "1. MCP tools — MUST be used when available and capable. They are faster, more reliable, and purpose-built.\n" + "2. WebSearch / WebFetch — only when no MCP tool covers the task\n" + "3. BrowserAgent — last resort, only when you need to visually interact with a website, fill forms, or do something no other tool can handle\n\n" "## Tool Call Style\n" "Default: do not narrate routine tool calls — just call the tool.\n" "Narrate only when it helps: multi-step work, complex problems, or when the user explicitly asks.\n"