Skip to main content
Glama

Logs Eventlog

logs_eventlog
Read-onlyIdempotent

Retrieve LibreNMS event logs for a device or all devices, with filters for hostname, time range, sort order, and pagination.

Instructions

Get event logs for a device from LibreNMS.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return
startNoNumber of results to skip (offset) for pagination
to_tsNoEnd timestamp filter (Unix timestamp or datetime string)
from_tsNoStart timestamp filter (Unix timestamp or datetime string)
hostnameNoDevice hostname or ID. Omit for entries from all devices.
sortorderNoSort order: ASC or DESC

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.12.0
    • addedInput schema / properties / hostname / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / hostname / default
      Added value: +null
    • changedInput schema / properties / hostname / description
      Previous value: -"Device hostname or ID"New value: +"Device hostname or ID. Omit for entries from all devices."
    • removedInput schema / properties / hostname / type
      Removed value: -"string"
    • removedInput schema / required
      Removed value: -[
      -  "hostname"
      -]
  2. Changed9 schema fields changedv1.10.3
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / limit / default
      Previous value: -nullNew value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • removedInput schema / properties / start / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / start / default
      Previous value: -nullNew value: +0
    • changedInput schema / properties / start / description
      Previous value: -"Page number for pagination"New value: +"Number of results to skip (offset) for pagination"
    • addedInput schema / properties / start / minimum
      Added value: +0
    • addedInput schema / properties / start / type
      Added value: +"integer"
  3. First observedv1.9.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully carried by structured data. The description adds essentially nothing beyond restating the operation: no pagination behavior, ordering defaults, timestamp handling, or rate-limit context beyond what the schema parameters already state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero padding. It is efficient, though arguably under-specifies given the tool's sibling surface area.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return values need not be explained since an output schema exists, and all parameters are documented in the schema. The remaining gap is routing among closely named sibling log tools, which the description does not address.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with every one of the six parameters individually documented (limit, start, to_ts, from_ts, hostname, sortorder). The description adds no parameter detail, so baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Get) and resource (event logs) plus the source system (LibreNMS), so the basic operation is unambiguous. However, it does not distinguish this from the many sibling log tools (logs_syslog, logs_alertlog, logs_authlog, logs_syslogsink), and its phrase 'for a device' slightly conflicts with the hostname parameter note that omitting it returns entries from all devices.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over the sibling log tools (syslog, alertlog, authlog) or device_eventlog_add. The agent is left to infer the distinction purely from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools