Skip to main content
Glama
k9fr4n

thruk-mcp

by k9fr4n

thruk_recent_events

Retrieve recent monitoring events from Thruk within a customizable time window, with optional filters for hosts, services, or message patterns.

Instructions

Return the most recent monitoring events from the last N hours (default 1 h).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNo
limitNo
filterNoStructured filter tree supporting AND/OR nesting. Two node types: leaf: {"type":"leaf", "field":"...", "op":"...", "value":...} group: {"type":"group", "operator":"and"|"or", "conditions":[...]} Available fields: custom_var, host, hostgroup, message, service, since, until Operators: eq, gte, in, lte, neq, regex The 'since'/'until' fields accept Thruk relative time ("-2h", "-7d") or ISO datetime ("2026-05-21 14:00:00"). Examples: # Log entries matching a pattern since -2h: {"type":"group","operator":"and","conditions":[ {"type":"leaf","field":"message","op":"regex","value":"DISK.*CRITICAL"}, {"type":"leaf","field":"since","op":"gte","value":"-2h"} ]}
offsetNo
columnsNoComma-separated columns to return. Omit for a curated default set tuned for this tool; pass '' (empty string) to return all available columns.
backendsNoComma-separated backend names (sites). Omit for all backends.
only_alertsNo
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It only mentions the time range, omitting key behaviors such as sorting (implicitly most recent first?), pagination (though parameters limit/offset exist), data freshness, or side effects. For a 7-parameter tool, this is insufficient.

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?

The description is a single concise sentence (14 words), front-loading the core purpose. While efficient, it could include more context without losing clarity, such as the default limit or filter capabilities.

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

Completeness2/5

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

Given the complexity (7 parameters, no output schema, no annotations), the description is incomplete. It fails to summarize what events are returned, how filtering works (despite complex filter schema), or any output format details. The schema provides structure, but the description doesn't integrate it.

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

Parameters1/5

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

Schema description coverage is 43%, yet the tool description adds no parameter explanations. The description does not address any of the 7 parameters (hours, limit, filter, offset, columns, backends, only_alerts). The schema contains some parameter descriptions, but the tool description itself adds zero value for parameter understanding.

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?

The description clearly states the tool returns recent monitoring events with a configurable time window (default 1 hour). The verb 'Return' and resource 'monitoring events' are specific. However, it does not explicitly differentiate from sibling tools like thruk_list_alerts or thruk_problems, which also list events.

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

Usage Guidelines3/5

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

The description implies usage for recent events by specifying the default time window, but it provides no explicit guidance on when to use this tool vs alternatives (e.g., thruk_list_logs, thruk_problems). No exclusions or prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/k9fr4n/thruk-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server