stop_database
Stop a database in Coolify by providing its UUID. Use the confirm parameter when COOLIFY_REQUIRE_CONFIRM is enabled to authorize the operation.
Instructions
Stop a database. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Database UUID | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:407-409 (handler)The handler logic for the 'stop_database' tool. It requires a 'uuid' parameter and makes a GET request to `/databases/{uuid}/stop` using the Coolify client.case 'stop_database': requireParam(args, 'uuid'); return client.get(`/databases/${args.uuid}/stop`);
- src/tools/definitions.ts:1106-1117 (schema)The input schema definition for the 'stop_database' tool, including parameters uuid (required) and confirm (optional boolean for dangerous ops).{ name: 'stop_database', description: 'Stop a database. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Database UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] } },
- src/index.ts:36-38 (registration)Registration of all tools, including 'stop_database', via the ListToolsRequestHandler which returns getToolDefinitions() containing the tool definitions.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-57 (registration)The CallToolRequestHandler dispatches tool calls to handleTool, which implements the 'stop_database' case.const result = await handleTool(this.client, name, args || {});
- src/tools/definitions.ts:72-72 (helper)Warning message for the dangerous 'stop_database' operation used in confirm prompts.stop_database: 'This will stop the database and make it unavailable until restarted.',