File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function registerSearchObjectsTool(
8585 readOnlyHint : true ,
8686 destructiveHint : false ,
8787 idempotentHint : true ,
88- openWorldHint : true ,
88+ openWorldHint : false ,
8989 } ,
9090 } ,
9191 createSearchDatabaseObjectsToolHandler ( sourceId )
Original file line number Diff line number Diff line change @@ -109,9 +109,8 @@ export function getExecuteSqlMetadata(sourceId: string): ToolMetadata {
109109 // In readonly mode, queries are more predictable (though still not strictly idempotent due to data changes)
110110 // In write mode, queries are definitely not idempotent
111111 idempotentHint : false ,
112- // In readonly mode, it's safer to operate on arbitrary tables (just reading)
113- // In write mode, operating on arbitrary tables is more dangerous
114- openWorldHint : isReadonly ,
112+ // Database operations are always against internal/closed systems, not open-world
113+ openWorldHint : false ,
115114 } ;
116115
117116 return {
You can’t perform that action at this time.
0 commit comments