mongodb-logs
Fetches recent mongod log events with optional filtering by log type (global/startup warnings) and entry limit.
Instructions
Returns the most recent logged mongod events
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": "mongodb-logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The type of logs to return. Global returns all recent log entries, while startupWarnings returns only warnings and errors from when the process started. | global |
| limit | No | The maximum number of log entries to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| shownCount | Yes | ||
| totalLinesWritten | Yes |