Skip to main content
Glama
k9fr4n

thruk-mcp

by k9fr4n

thruk_hostgroup_availability

Calculate uptime and SLA percentages for hosts or services within a hostgroup over a defined time period, with options to include downtimes and soft states.

Instructions

Compute availability (uptime / SLA %) for all hosts/services in a hostgroup.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoWhat to return: 'hosts' (default), 'services', or 'both'. Hosts return time_up_percent; services return time_ok_percent.hosts
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.
hostgroupYesHostgroup name
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).
Behavior1/5

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

No annotations provided, so description must bear full burden. It states only the purpose, with no disclosure of side effects, read-only nature, permissions, performance impact, or data volume considerations. Completely inadequate for behavioral transparency.

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?

Single sentence, no waste, front-loaded with key information. However, could benefit from slightly more structure (e.g., separate lines) to improve readability.

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?

With 8 parameters and no output schema, the description is too sparse. It doesn't explain return format or differentiate between 'hosts' vs 'services' output. Many sibling tools exist, but no contextual hints are provided.

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 itself provides clear parameter definitions. The description adds no additional meaning beyond the schema, which is acceptable but not helpful. Baseline score of 3 applies.

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?

Description clearly states verb 'compute', resource 'availability', and scope 'for all hosts/services in a hostgroup'. Distinguishes from sibling tools like thruk_host_availability (single host) and thruk_hostgroup_availability_summary (aggregate).

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?

No explicit guidance on when to use this tool versus alternatives like thruk_host_availability, thruk_service_availability, or thruk_hostgroup_availability_summary. Missing context about when to choose this tool over siblings.

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