Skip to content

Commit b06c1d1

Browse files
feat: enhance safety instructions for invoke_dbatools_command tool
1 parent 5fcefd2 commit b06c1d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ server.tool(
208208
// ---------------------------------------------------------------------------
209209
server.tool(
210210
"invoke_dbatools_command",
211-
"Execute a dbatools command via PowerShell and return structured JSON output. Non-readonly commands require confirm:true when safe mode is enabled.",
211+
"Execute a dbatools command via PowerShell and return structured JSON output.\n\nSAFETY: For any destructive or change command (Remove, Drop, Disable, Reset, etc.), always explain the consequences to the user and ask for explicit confirmation before running. Only proceed with confirm:true if the user has clearly confirmed their intent. Respect DBATOOLS_SAFE_MODE: never bypass safety checks. For any command that modifies or deletes data, double-check with the user before proceeding. Show the exact command and output for transparency. Non-readonly commands require confirm:true when safe mode is enabled.",
212212
{
213213
commandName: z
214214
.string()

0 commit comments

Comments
 (0)