get_database_logs
Retrieve database logs from Coolify instances to monitor performance and troubleshoot issues by specifying the database UUID and number of log lines.
Instructions
Get logs from a database. NOTE: This endpoint is not available in Coolify API and will return an error. Database logs are not exposed via the API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Database UUID | |
| lines | No | Number of lines (default: 100) |
Implementation Reference
- src/tools/handlers.ts:386-389 (handler)Handler implementation for the 'get_database_logs' tool. It requires a 'uuid' parameter and returns an error because database logs are not available through the Coolify API.case 'get_database_logs': requireParam(args, 'uuid'); // This endpoint doesn't exist in Coolify API return { error: 'Database logs endpoint is not available in Coolify API. Database logs are not exposed via the API.' };
- src/tools/definitions.ts:574-585 (schema)Schema definition for the 'get_database_logs' tool, including input schema requiring 'uuid' and optional 'lines' parameter.{ name: 'get_database_logs', description: 'Get logs from a database. NOTE: This endpoint is not available in Coolify API and will return an error. Database logs are not exposed via the API.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Database UUID' }, lines: { type: 'number', description: 'Number of lines (default: 100)', default: 100 } }, required: ['uuid'] } },
- src/tools/definitions.ts:4-42 (registration)The 'get_database_logs' tool is registered as a read-only tool in the READ_ONLY_TOOLS array, used to filter tools in read-only mode.export const READ_ONLY_TOOLS = [ 'get_version', 'health_check', 'list_teams', 'get_team', 'get_current_team', 'get_current_team_members', 'get_team_members', 'list_servers', 'get_server', 'get_server_resources', 'get_server_domains', 'list_projects', 'get_project', 'list_environments', 'get_environment', 'list_applications', 'get_application', 'get_application_logs', 'get_application_envs', 'get_application_deployments', 'list_services', 'get_service', 'get_service_envs', 'get_service_logs', 'list_databases', 'get_database', 'get_database_backups', 'get_database_logs', 'list_deployments', 'get_deployment', 'list_private_keys', 'get_private_key', 'list_resources', 'list_github_apps', 'get_github_app', 'get_github_app_repositories', 'get_github_app_repository_branches' ];