Skip to main content
Glama
database.ts1.77 kB
// src/prompts/database.ts // DEPRECATED: Legacy prompts that execute actions instead of providing guidance // All legacy prompts have been removed as they were actually tools that executed actions. // For new implementations, use the template prompts in templates.ts and advanced-templates.ts import { createLogger } from '../utils/logger.js'; import { PromptDefinition } from './types.js'; const logger = createLogger('prompts:database'); /** * Sets up prompts related to database structure * and returns a map with their definitions. * * NOTE: All legacy prompts have been removed as they were actually tools that executed actions. * Use the new template prompts in templates.ts and advanced-templates.ts instead. * * This function is kept for backward compatibility and returns an empty map. * * @returns {Map<string, PromptDefinition>} Empty map (legacy prompts removed). */ export const setupDatabasePrompts = (): Map<string, PromptDefinition> => { const promptsMap = new Map<string, PromptDefinition>(); logger.info('Legacy database prompts have been removed. Use template prompts instead.'); return promptsMap; }; // --- LEGACY CODE REMOVED --- // // The following prompts were removed because they executed actions instead of providing guidance: // - analyzeTablePrompt (use describe-table tool instead) // - listTablesPrompt (use list-tables tool instead) // - analyzeTableRelationshipsPrompt (use describe-table + schema resources instead) // - databaseSchemaOverviewPrompt (use /schema resource instead) // - analyzeTableDataPrompt (use analyze-table-statistics tool instead) // // For complex workflows, use the new template prompts: // - database-health-check // - schema-design-review // - migration-planning // - security-audit

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