Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_lockfiles

Read-only

Locate dependency lockfiles under remote paths and report their sizes; optionally print contents with credentials and tokens redacted. Check metadata first because lockfiles can be large.

Instructions

Finds dependency lockfiles (composer.lock, package-lock.json, poetry.lock, go.sum, Cargo.lock, ...) under abs_paths, with sizes. include_contents=True prints them, with credentials in URLs and tokens redacted; call without it first: they can be MBs.

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": {
      "host": "<host>",
      "user": "<user>",
      "abs_paths": "<abs_paths>"
    },
    "name": "get_lockfiles"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
timeoutNo
key_pathNo
abs_pathsYes
max_depthNo
password_envNo
include_contentsNo
accept_new_hostkeyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • removedInput schema / properties / password
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • addedInput schema / properties / password_env
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / timeout / default
      Previous value: -30New value: +60
  3. Addedv0.1.16

TDQS

A3.8/5.0
Behavior4/5

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

Read-only behavior is already carried by readOnlyHint, yet the description still adds real value beyond the annotations: it discloses that sizes are returned, that include_contents prints file bodies, and critically that credentials in URLs and tokens are redacted. The remaining gap is that it says nothing about traversal behavior (max_depth), failure modes on unreadable files, or authentication requirements.

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

Conciseness5/5

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

Two dense sentences with the search scope first, the caution second, and zero filler. Every clause carries information an agent needs, and the size warning is placed exactly where it prevents a bad call.

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 presence of an output schema removes the need to describe return values, and the lockfile/redaction behavior is well covered. However, for a remote-SSH tool with 10 parameters and no schema documentation, the total silence on connection and authentication parameters is a meaningful completeness gap that the description should have addressed.

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

Parameters2/5

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

Schema description coverage is 0% across 10 parameters, and the description compensates for only two of them: abs_paths (implicitly the search root) and include_contents (semantics plus a caution about size and redaction). Connection parameters such as host, port, user, key_path, password_env, timeout, max_depth, and accept_new_hostkey receive no explanation anywhere, forcing the agent to guess at SSH auth and depth semantics.

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?

States a precise verb-plus-resource: it finds dependency lockfiles and enumerates concrete examples (composer.lock, package-lock.json, poetry.lock, go.sum, Cargo.lock), scoped to abs_paths and returning sizes. This is distinguishable from get_installed_packages because it targets lockfile artifacts on disk rather than installed package state.

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

Usage Guidelines3/5

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

The description gives one genuine ordering rule: run it without include_contents first because the files can be megabytes. That is good operational guidance for the parameter, but there is no guidance on when to reach for this tool versus sibling inspection tools, and no stated prerequisites beyond the implicit SSH context.

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