stop_service
Stops a DBngin local database service by ID or name, waits until its port stops answering, and returns already stopped if the service is down.
Instructions
Stop a DBngin local database service. PostgreSQL is stopped with 'pg_ctl stop -m fast'; Redis receives 'SHUTDOWN NOSAVE' via redis-cli (fallback: taskkill only if the port listener is redis-server.exe). Waits until the port stops answering (up to 15s). Returns 'already_stopped' without failing if the service is down.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | DBngin service ID from list_services. Takes precedence over 'name'. | |
| name | No | Service name as shown in DBngin (case-insensitive). Names can repeat across engine types; pass 'type' to disambiguate (e.g. { name: 'myapp', type: 'redis' }). | |
| type | No | Engine type used to disambiguate services that share the same name. |