Skip to main content
Glama

host-service

Destructive

Check, start, stop, or restart services on managed hosts via inventory and encrypted credentials, so requests need no passwords; gated changes require confirmation and a reason.

Instructions

dbabrain common.cli host-service: 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. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. 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-service"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses important behavior: inventory-backed credentials needing no password, emergency-operations confirmation with confirm: yes and reason, maintenance windows, ignore_window, overrides, dry_run, evidence output, and sudo. These are meaningful operational traits for a destructive host command, though the text is truncated and messy in places.

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

Conciseness2/5

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

The definition is bloated, repetitive, and poorly front-loaded, with backticked fragments, dangling ellipses, and awkward phrases such as 'The app that calls fills it from its own data...' and 'malformed, it is refused rather ...'. The field list is useful but would be much clearer as concise grouped documentation.

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

Completeness4/5

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

For a complex destructive host operation, the description includes the key safety and execution context: gating, confirmation, maintenance windows, dry-run behavior, credential sourcing, and evidence handling. An output schema exists, so return values need not be explained, though the definition still lacks explicit sibling routing and some field descriptions are truncated.

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

Parameters5/5

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

The input schema is an opaque request object with 0% schema description coverage, so the description carries the full burden and responds by enumerating the meaningful request fields: target, access, platform, action, services, wait, window, ignore_window, overrides, evidence, sudo, dry_run, confirm, assume_yes, authorized_by, reason, policy, and rules. This adds substantial semantic meaning beyond what the schema provides.

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

Purpose3/5

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

The description eventually establishes that this is a host-service operation with status/start/stop/restart actions, but the opening phrase 'facts, a service, a restart' is muddled and overlaps with sibling tools such as host-facts and host-restart. An agent can infer the core purpose, but the definition does not cleanly distinguish the tool from nearby alternatives.

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?

The description lists many request fields and constraints, but it does not explicitly say when to use this tool instead of host-facts, host-restart, or probe-host. The action values imply usage, but there is no clear routing guidance or when-not-to-use rule.

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