get_logs
Retrieve the last N lines from a DBngin PostgreSQL or Redis service log, defaulting to 50 and capped at 1000, using the service name, ID, or type to target the correct log.
Instructions
Return the last N lines (default 50, max 1000) of a DBngin service log. PostgreSQL reads '/pg_log.log'; Redis reads the DBngin Engines/redis log file written when started through this server. Pass 'name' plus optional 'type' (or 'id') and 'lines'.
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": "get_logs"
}
}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. | |
| lines | No | Number of trailing lines to return (default 50, max 1000). |