Skip to main content

Droost: Log Entries

droost_logs Read-only

Module: Droost core

Recent watchdog entries, filterable by type and severity. The wider lens behind droost_last_error; check it after cron runs, migrations, or any batch of writes.

Example call
{
    "tool": "droost_logs",
    "arguments": {
        "limit": 5
    }
}
Example response — captured live on this site
{
    "success": true,
    "message": "5 log entries.",
    "data": {
        "filters": {
            "type": null,
            "max_severity": null,
            "limit": 5
        },
        "count": 5,
        "entries": [
            {
                "wid": 151,
                "severity": "Debug",
                "type": "mcp_server",
                "message": "Manual element registration complete.",
                "uid": 0,
                "location": "https://droost-site.ddev.site/",
                "timestamp": 1783274221
            },
            {
                "wid": 150,
                "severity": "Debug",
                "type": "mcp_server",
                "message": "Manual element registration complete.",
                "uid": 0,
                "location": "https://droost-site.ddev.site/",
                "timestamp": 1783274182
            },
            {
                "wid": 149,
                "severity": "Warning",
                "type": "droost_search",
                "message": "No embedding backend configured; semantic index skipped (lexical search still works).",
                "uid": 0,
                "location": "https://droost-site.ddev.site/",
                "timestamp": 1783274074
            },
            {
                "wid": 148,
                "severity": "Debug",
                "type": "mcp_server",
                "mes
… (truncated — run it yourself for the rest)

Reads the most recent Drupal log entries (dblog/watchdog), newest first. Optional "type" filters by channel; "severity" keeps entries this severe or worse (severity number <= the value; 0=emergency … 7=debug); "limit" caps results. Requires the Database Logging (dblog) module. Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "type": {
            "type": "string",
            "description": "Log channel/type to filter by, e.g. \"php\", \"cron\", \"system\"."
        },
        "severity": {
            "type": "integer",
            "description": "RFC severity ceiling 0-7 (0=emergency, 3=error, 7=debug); only entries this severe or worse are returned."
        },
        "limit": {
            "type": "integer",
            "description": "Max entries to return (default 20, max 100)."
        }
    }
}