From bc48b9289a332673335adb3fc80bde6721cde27b Mon Sep 17 00:00:00 2001 From: Matthew Zeng Date: Thu, 12 Mar 2026 14:28:51 -0700 Subject: [PATCH] Update tool search prompts (#14500) - [x] Add mentions of connectors because model always think in connector terms in its CoT. - [x] Suppress list_mcp_resources in favor of tool search for available apps. --- codex-rs/core/templates/search_tool/tool_description.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/codex-rs/core/templates/search_tool/tool_description.md b/codex-rs/core/templates/search_tool/tool_description.md index 07df9dc51..db6b4e34a 100644 --- a/codex-rs/core/templates/search_tool/tool_description.md +++ b/codex-rs/core/templates/search_tool/tool_description.md @@ -1,5 +1,6 @@ -# Apps tool discovery +# Apps (Connectors) tool discovery -Searches over apps tool metadata with BM25 and exposes matching tools for the next model call. +Searches over apps/connectors tool metadata with BM25 and exposes matching tools for the next model call. -Tools of the apps ({{app_names}}) are hidden until you search for them with this tool (`tool_search`). \ No newline at end of file +Tools of the apps ({{app_names}}) are hidden until you search for them with this tool (`tool_search`). +When the request needs one of these connectors and you don't already have the required tools from it, use this tool to load them. For the apps mentioned above, always prefer `tool_search` over `list_mcp_resources` or `list_mcp_resource_templates` for tool discovery.