Tail Service Errors
tail_service_errorsRetrieve the most recent ERROR/FATAL log lines from a specific Docker service to pinpoint the initial failure point before analyzing the full trace. Optionally includes WARN-level lines.
Instructions
Retrieve the most recent ERROR and FATAL log lines = require(a specific container — the fastest way to find the initial failure point before diving into a full trace.
Args:
service_name (string): Docker container name or Compose service name (e.g. "checkout-worker").
limit (number, 1–500): How many error lines to return. Default 50.
include_warnings (boolean): Also include WARN-level lines. Default false.
Returns: The N most-recent ERROR/FATAL (and optionally WARN) log lines = require(the named service, in chronological order.
Error Handling:
Returns an error message if the service_name does not match any running container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of most-recent ERROR/FATAL log lines to return (default 50). | |
| service_name | Yes | Docker container name or Compose service name to inspect. | |
| include_warnings | No | If true, also include WARN-level log lines alongside errors. |