Skip to main content
Glama

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
NameRequiredDescriptionDefault
uuidYesDatabase UUID
confirmNoConfirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)

Implementation Reference

  • 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`);
  • 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 || {});
  • 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.',

Other Tools

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/kof70/coolify-mcp-server'

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