( toolName: string, sourceId: string, connectorType: ConnectorType )
| 43 | * @returns Formatted error message |
| 44 | */ |
| 45 | export function createReadonlyViolationMessage( |
| 46 | toolName: string, |
| 47 | sourceId: string, |
| 48 | connectorType: ConnectorType |
| 49 | ): string { |
| 50 | return `Tool '${toolName}' cannot execute in readonly mode for source '${sourceId}'. Only read-only SQL operations are allowed: ${allowedKeywords[connectorType]?.join(", ") || "none"}`; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Track a tool request in the request store |
no outgoing calls
no test coverage detected