Skip to main content
Glama

verify-wire-encryption

Check if your Firebird database connection uses wire encryption to protect data in transit. This tool verifies encryption status for secure communication.

Instructions

Verifies if the current database connection is using wire encryption (requires native driver).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for 'verify-wire-encryption' checks environment variables (USE_NATIVE_DRIVER, WIRE_CRYPT) to determine if the database connection uses wire encryption and returns status information with recommendations.
    handler: async () => { logger.info("Verifying wire encryption status"); try { // Check if native driver is available const driverInfo = { hasNativeDriver: process.env.USE_NATIVE_DRIVER === 'true', wireEncryptionEnabled: process.env.WIRE_CRYPT === 'Enabled', driverType: process.env.USE_NATIVE_DRIVER === 'true' ? 'native' : 'pure-js', recommendation: process.env.USE_NATIVE_DRIVER !== 'true' ? 'Wire encryption requires the native driver. Set USE_NATIVE_DRIVER=true and install node-firebird-driver-native.' : 'Native driver is configured. Ensure WIRE_CRYPT=Enabled for encryption.' }; return { content: [{ type: "text", text: formatForClaude(driverInfo) }] }; } catch (error) { const errorResponse = wrapError(error); logger.error(`Error verifying wire encryption: ${errorResponse.error}`); return { content: [{ type: "text", text: formatForClaude(errorResponse) }] }; } }
  • Zod input schema for the verify-wire-encryption tool, which takes no arguments.
    export const VerifyWireEncryptionArgsSchema = z.object({});
  • Registration of the 'verify-wire-encryption' tool within the setupDatabaseTools function, adding it to the tools Map.
    tools.set("verify-wire-encryption", { name: "verify-wire-encryption", title: "Verify Wire Encryption", description: "Verifies if the current database connection is using wire encryption (requires native driver).", inputSchema: VerifyWireEncryptionArgsSchema, handler: async () => { logger.info("Verifying wire encryption status"); try { // Check if native driver is available const driverInfo = { hasNativeDriver: process.env.USE_NATIVE_DRIVER === 'true', wireEncryptionEnabled: process.env.WIRE_CRYPT === 'Enabled', driverType: process.env.USE_NATIVE_DRIVER === 'true' ? 'native' : 'pure-js', recommendation: process.env.USE_NATIVE_DRIVER !== 'true' ? 'Wire encryption requires the native driver. Set USE_NATIVE_DRIVER=true and install node-firebird-driver-native.' : 'Native driver is configured. Ensure WIRE_CRYPT=Enabled for encryption.' }; return { content: [{ type: "text", text: formatForClaude(driverInfo) }] }; } catch (error) { const errorResponse = wrapError(error); logger.error(`Error verifying wire encryption: ${errorResponse.error}`); return { content: [{ type: "text", text: formatForClaude(errorResponse) }] }; } } });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PuroDelphi/mcpFirebird'

If you have feedback or need assistance with the MCP directory API, please join our Discord server