Skip to main content
Glama
k9fr4n

thruk-mcp

by k9fr4n

thruk_host_availability

Calculate host uptime and SLA percentage over a custom time window with options for downtimes and soft states.

Instructions

Compute availability (uptime / SLA %) for a host over a configurable time window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesHost name
sinceNoStart of analysis window. Thruk relative time ("-7d", "-1m") or ISO datetime ("2026-05-01 00:00:00"). Default: last 7 days. Ignored when ``timeperiod`` is set.-7d
untilNoEnd of analysis window (same formats as ``since``). Defaults to now. Ignored when ``timeperiod`` is set.
backendsNoComma-separated backend names (sites). Omit for all backends.
timeperiodNoThruk-native time period shortcut: "last24hours", "lastweek", "lastmonth", "thismonth", etc. Overrides ``since``/``until`` when provided.
with_downtimesNoCount scheduled downtime periods as outages (withdowntimes=1).
include_soft_statesNoInclude soft state changes in calculations (includesoftstates=1).
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It correctly implies a read-only computation with no side effects, but does not explicitly state this or disclose any other behaviors (e.g., data sources, performance impact, output structure).

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

Conciseness5/5

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

The description is a single, well-constructed sentence that front-loads the core verbs and key options. Every word carries meaning, with no wasted text.

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?

With 7 parameters, medium complexity, and no output schema, the description covers the main purpose but lacks details about return values (e.g., percentage, time series) and does not explain the full context needed for effective use.

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%, so the schema already documents all parameters thoroughly. The description adds only the high-level notion of a 'configurable time window', providing marginal extra meaning beyond the schema.

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

Purpose5/5

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

The description clearly states the tool computes host availability (uptime/SLA%) over a configurable time window. It uses a specific verb-resource pair ('Compute availability' for a 'host') and distinguishes from siblings like thruk_service_availability and thruk_hostgroup_availability.

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 host availability queries but does not explicitly guide when to use this tool versus alternatives (e.g., thruk_service_availability for services, thruk_hostgroup_availability for groups). No when-not-to-use 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