Skip to content

The agent that grows with you

fix(connectors): display description says how to suggest and not to repeat the list

alt-glitch64da6093d5f5
diff --git a/tests/fixtures/prompt_surface/surfaces.json b/tests/fixtures/prompt_surface/surfaces.json
index c7c231bf330..ae2d281b206 100644
--- a/tests/fixtures/prompt_surface/surfaces.json
+++ b/tests/fixtures/prompt_surface/surfaces.json
@@ -5,7 +5,7 @@
"stable": 1935,
"volatile": 1813
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
@@ -48,7 +48,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
@@ -91,7 +91,7 @@
"stable": 1866,
"volatile": 1811
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
@@ -134,7 +134,7 @@
"stable": 2640,
"volatile": 1809
},
- "tool_tokens": 13491,
+ "tool_tokens": 13494,
"tools": [
"browser_back",
"browser_cdp",
@@ -177,7 +177,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
@@ -220,7 +220,7 @@
"stable": 1317,
"volatile": 1813
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
@@ -263,7 +263,7 @@
"stable": 1579,
"volatile": 1814
},
- "tool_tokens": 13972,
+ "tool_tokens": 13975,
"tools": [
"browser_back",
"browser_cdp",
@@ -307,7 +307,7 @@
"stable": 1349,
"volatile": 1814
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
@@ -350,7 +350,7 @@
"stable": 1382,
"volatile": 1814
},
- "tool_tokens": 13336,
+ "tool_tokens": 13339,
"tools": [
"browser_back",
"browser_cdp",
diff --git a/tests/fixtures/prompt_surface/tools/manage_connections.json b/tests/fixtures/prompt_surface/tools/manage_connections.json
index 09e8e95772b..5eb782049d8 100644
--- a/tests/fixtures/prompt_surface/tools/manage_connections.json
+++ b/tests/fixtures/prompt_surface/tools/manage_connections.json
@@ -1,5 +1,5 @@
{
- "description": "Connect the user to apps. Two kinds: a hosted connector account (Gmail, Notion, ...) served through the tool gateway, and a local MCP server from the bundled catalog. Targets go in 'connectors': a bare slug or {\"name\": \"gmail\"} is a hosted connector account; {\"name\": \"linear\", \"mcp\": true} is a local MCP server. Many names exist on both sides, so the user's own words decide. Pass \"mcp\": true only when the user asks for an MCP server, a local server or an install, or when the name exists only as a catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side owns is refused with the call that does work. Hosted actions: 'display' (desktop only; elsewhere returns status) shows every connector, 'connectors' pinned as Suggested, waits for Continue (300 s); returns connected/newly_connected, plus timed_out on the deadline. Use it to browse; use 'connect' when the user names an app. 'status' lists connectors and whether each is connected; 'connect' starts an authorization for the given connectors; 'reconnect' checks each one and repairs only what is not connected ('force': true restarts even a working one, for an account switch). A second account of one app is 'connect' with a new 'alias': pick a short lowercase name from the user's words (e.g. 'work'), and ask the user if unsure. 'status' lists each connector's accounts; 'rename' names or renames one. Pass SEVERAL slugs in one call. In the desktop app, the terminal UI and the interactive CLI the call shows the user a card and blocks until every app is connected, skipped, or the deadline passes; the result lists each target as connected / skipped / not_connected and never carries a link. Where no card exists (a one-shot run, a scheduled job, a messaging platform) the result carries a connect_url per app for the USER to open in a browser (never open it yourself); ask them to say when they are done, then use 'status'. When a hosted connector tool call returns CONNECTION_REQUIRED, use 'connect'. MCP actions (every target must carry \"mcp\": true): 'install' adds a catalog entry, 'enable' re-enables a disabled configured server, 'authorize' runs its OAuth. They show the user an approval card and block until it settles. Never hand-edit mcp_servers config — always use this tool. After a skip or a timeout, do not re-ask on your own: continue without the app or ask in chat. A later request from the USER for that same app is not a re-ask — run it. A connected server's tools are named in the result and are callable at once through tool_describe/tool_call. Where no card exists an MCP target runs at once and the result says what happened, with a link for the user to open when one is needed. This tool can NOT disconnect, delete, or revoke an account — that is deliberately user-only. When asked, say so and direct the user to the Nous Portal (their org's Connectors page) or the desktop app.",
+ "description": "Connect the user to apps. Two kinds: a hosted connector account (Gmail, Notion, ...) served through the tool gateway, and a local MCP server from the bundled catalog. Targets go in 'connectors': a bare slug or {\"name\": \"gmail\"} is a hosted connector account; {\"name\": \"linear\", \"mcp\": true} is a local MCP server. Many names exist on both sides, so the user's own words decide. Pass \"mcp\": true only when the user asks for an MCP server, a local server or an install, or when the name exists only as a catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side owns is refused with the call that does work. Hosted actions: 'display' (desktop only; elsewhere returns status) shows every connector and waits for Continue (300 s); put slugs to suggest in 'connectors'. Returns connected/newly_connected (+timed_out); the user saw the list, so do not repeat it. 'connect' is for an app the user names. 'status' lists connectors and whether each is connected; 'connect' starts an authorization for the given connectors; 'reconnect' checks each one and repairs only what is not connected ('force': true restarts even a working one, for an account switch). A second account of one app is 'connect' with a new 'alias': pick a short lowercase name from the user's words (e.g. 'work'), and ask the user if unsure. 'status' lists each connector's accounts; 'rename' names or renames one. Pass SEVERAL slugs in one call. In the desktop app, the terminal UI and the interactive CLI the call shows the user a card and blocks until every app is connected, skipped, or the deadline passes; the result lists each target as connected / skipped / not_connected and never carries a link. Where no card exists (a one-shot run, a scheduled job, a messaging platform) the result carries a connect_url per app for the USER to open in a browser (never open it yourself); ask them to say when they are done, then use 'status'. When a hosted connector tool call returns CONNECTION_REQUIRED, use 'connect'. MCP actions (every target must carry \"mcp\": true): 'install' adds a catalog entry, 'enable' re-enables a disabled configured server, 'authorize' runs its OAuth. They show the user an approval card and block until it settles. Never hand-edit mcp_servers config — always use this tool. After a skip or a timeout, do not re-ask on your own: continue without the app or ask in chat. A later request from the USER for that same app is not a re-ask — run it. A connected server's tools are named in the result and are callable at once through tool_describe/tool_call. Where no card exists an MCP target runs at once and the result says what happened, with a link for the user to open when one is needed. This tool can NOT disconnect, delete, or revoke an account — that is deliberately user-only. When asked, say so and direct the user to the Nous Portal (their org's Connectors page) or the desktop app.",
"name": "manage_connections",
"parameters": {
"properties": {
diff --git a/tools/connectors/tool.py b/tools/connectors/tool.py
index e356878bfd7..8183a379842 100644
--- a/tools/connectors/tool.py
+++ b/tools/connectors/tool.py
@@ -60,9 +60,9 @@ MANAGE_CONNECTIONS_SCHEMA = {
"catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted "
"actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side "
"owns is refused with the call that does work. "
- "Hosted actions: 'display' (desktop only; elsewhere returns status) shows every connector, "
- "'connectors' pinned as Suggested, waits for Continue (300 s); returns connected/newly_connected, "
- "plus timed_out on the deadline. Use it to browse; use 'connect' when the user names an app. "
+ "Hosted actions: 'display' (desktop only; elsewhere returns status) shows every connector and "
+ "waits for Continue (300 s); put slugs to suggest in 'connectors'. Returns connected/newly_connected "
+ "(+timed_out); the user saw the list, so do not repeat it. 'connect' is for an app the user names. "
"'status' lists connectors and whether each is connected; 'connect' "
"starts an authorization for the given connectors; 'reconnect' checks each one and "
"repairs only what is not connected ('force': true restarts even a working one, for an "