Skip to main content
Glama

request_host_access

Request access to multiple SSH hosts in one approval window, with per-host modes and separate granted/denied results so you can plan around what you did not get.

Instructions

Requests access to one or more hosts in a single approval window. The user can approve some hosts and deny others, and can change the mode per host, so the response reports "granted" and "denied" separately — plan around what you did not get rather than assuming the whole batch succeeded. A grant below the mode you asked for carries "requestedMode" and a "reason": "max_mode" (the host allows no more), "user_lowered", or, when you asked to raise a grant you already hold, "user_denied", "timeout" or "cancelled" with the held grant kept. Do not re-ask an upgrade the user denied; work within the mode you have or tell the user. Call this once with everything you expect to need for the task at hand: open_session refuses to open an approval window on its own, so a host missing from this call means a HOST_ACCESS_REQUIRED error later.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "hostIds": "<hostIds>",
      "reason": "<reason>"
    },
    "name": "request_host_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesA short, human-readable reason for the request. Shown to the user verbatim in the approval window, e.g. "Investigating disk usage on the web tier".
hostIdsYesThe opaque hostId values (from list_hosts or describe_host) to request access to.
requestedModeNoAccess mode to request for every host in this call. Never granted above a host's own maxMode (see list_hosts), and the user can still lower it per host in the approval window. Omit to ask for each host's maxMode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses partial approval semantics (some hosts granted, some denied), per-host mode lowering, the fact that grants can land below the requested mode, and the exact reason codes (max_mode, user_lowered, user_denied, timeout, cancelled) including that a held grant is kept on denial/timeout. It also implies blocking-until-decision behavior via the timeout case.

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?

Front-loaded with the action, then the failure-planning advice, then the batching rule. Dense but nearly every clause carries operational meaning; the quoted reason-code enumeration is lengthy, though it is the kind of detail an agent needs and there is no output schema to carry it.

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 no-output-schema, no-annotation mutation/request tool, the definition supplies both the call strategy and the response semantics needed to act correctly. Minor gaps remain, such as where the resulting grant is visible afterward or whether the call blocks for a bounded time, but nothing essential to invoking it is missing.

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 hostIds, reason, and requestedMode are already documented, including the omit-to-request-maxMode behavior. The description adds cross-parameter outcome semantics (per-host mode may be lowered, requestedMode echoed in the response), but nothing about formats, limits, or hostId sources 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 opening sentence states a specific verb and resource with scope: 'Requests access to one or more hosts in a single approval window.' This is clearly distinguishable from siblings like open_session (which it explicitly contrasts) and add_host.

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

Usage Guidelines5/5

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

Explicit routing guidance: call once with everything needed, and the stated consequence ('open_session refuses to open an approval window on its own, so a host missing from this call means a HOST_ACCESS_REQUIRED error later'). It also gives a when-not rule: 'Do not re-ask an upgrade the user denied; work within the mode you have or tell the user.'

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