Skip to main content
Glama

host-facts

Read-only

Run gated host operations: collect facts and check, start, stop, or restart services using inventory-managed credentials and maintenance-window controls.

Instructions

dbabrain common.cli host-facts: A gated action on a host: facts, a service, a restart. server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password. Request fields (pass them as request):

  • target: The machine or instance: a server_id, or <db_type> <ip>[:port].

  • access: An inline cmd_access, for a host outside the inventory.

  • platform: windows | linux, when the inventory does not say.

  • action: host-service: status | start | stop | restart.

  • services: host-service: which services.

  • wait: Wait for the end state.

  • window: The maintenance window it must fall in.

  • ignore_window: Run outside that window, deliberately.

  • overrides: Blocking gates accepted on purpose.

  • evidence: Where to write the evidence file.

  • sudo: Run through sudo on Linux.

  • dry_run: Plan only: change nothing.

  • confirm: The payload declares the operator agreed.

  • assume_yes: Unattended: take the typed yes as given.

  • authorized_by: Who approved it, for example {"channel": "telegram"}.

  • reason: Why, for the evidence.

  • policy: The maintenance policy that times this host operation: the node's maintenance_policy.json defaults with this server's own values over them. {} means the built-in defaults. The app that calls fills it from its own data...

  • rules: What the operation costs to confirm: {level, confirmations, challenge, effects} - the node's own emergency_operations.json entry for it. Absent, the ladder the package ships prices it; malformed, it is refused rather ...

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "host-facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior1/5

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

The description describes service start/stop/restart actions, sudo execution, maintenance-window overrides, confirmation gates, accepted overrides and evidence-file writing — mutations — while annotations declare readOnlyHint=true and destructiveHint=false. Although the text supplies useful gate/window/confirmation context, it directly contradicts the declared safety profile, so an agent relying on the annotation would be badly misled.

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

Conciseness3/5

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

The field-by-field bullet list is scannable and appropriate for an 18-field request payload, but the opening sentence is vague and not front-loaded on the tool's actual purpose, and two bullets trail off mid-sentence, wasting space without delivering the rule they were meant to state.

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?

The description covers the request payload thoroughly and an output schema exists, so return values needn't be explained. However, for a gate-heavy, confirmation-driven operation the missing pieces matter: what `facts` returns, how gates/overrides fail, and the contradiction with the read-only annotations leave an agent unable to call it safely.

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

Parameters4/5

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

Schema description coverage is 0% with a single opaque `request` object, so the description has to carry the load, and it does enumerate the request fields with one-line meanings (target, access, platform, action, services, wait, window, ignore_window, overrides, evidence, sudo, dry_run, confirm, assume_yes, authorized_by, reason, policy, rules). Value is eroded by truncation of the last two entries ("...fills it from its own data...", "refused rather ...") and by no indication of required vs optional fields.

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

Purpose2/5

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

"A gated action on a host: facts, a service, a restart" never states a specific verb for what host-facts itself does — it reads as a generic gated-host-action wrapper and explicitly folds in service start/stop/restart, which are the apparent domains of the sibling tools host-service and host-restart. An agent cannot tell from this whether the tool gathers host facts, mutates services, or both.

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 when-to-use or when-not-to-use guidance and no routing to alternatives, even though host-service, host-restart and probe-host appear as siblings with overlapping scope. The field list implies capabilities (action, dry_run, confirm, window) but never says under what conditions an agent should pick this tool over its siblings.

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