Skip to main content
Glama

ssh_unlock

Prompts the user to run rsh unlock --session <name> in their own terminal when sudo requires a password, because the tool cannot enter passwords.

Instructions

模式3:sudo 需要用户密码。此工具不能替用户输入,会返回请用户在自己终端执行 rsh unlock --session <名字> 的提示。

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": {
      "session": "<session>"
    },
    "name": "ssh_unlock"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the key behavioral trait: the tool cannot enter the user's password and instead returns a message telling the user to run `rsh unlock --session <name>` in their own terminal. That warning that the call has no unlocking side effect is genuinely useful; what is missing is any statement of whether the call changes session state at all.

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?

Two tight sentences with no filler, and the limitation is front-loaded. The undefined '模式3' label costs some clarity but nothing is padded.

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?

For a one-parameter, annotation-free tool with no output schema, the description covers the most consequential behavior (no password entry, guidance message returned) but leaves the meaning of 'unlock', the undefined mode 3, and the session parameter format unresolved.

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 coverage is 0% for the single `session` parameter, so the description must compensate. It partially does by showing `--session <名字>` in the suggested command, implying the parameter is a session name, but it gives no format, naming convention, or validity rules.

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 implies the tool is invoked in a 'mode 3' situation where sudo needs a password, and states that it does not perform the unlock itself but returns guidance text. However it never says plainly that this unlocks an SSH session, so the actual resource and action are only inferable from the tool name and the referenced `rsh unlock` command.

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?

It gestures at a triggering condition ('模式3:sudo 需要用户密码') but never explains what mode 3 is, when the agent should call this versus ssh_exec or other siblings, or what to do after receiving the returned prompt other than relay it to the user.

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