Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_cron_jobs

Read-only

Retrieve system, run-parts, and user cron jobs over read-only SSH; secrets are redacted. Audit scheduled tasks on remote hosts, with root viewing all users or login-user access otherwise.

Instructions

Every cron job (system crontabs, run-parts scripts, user crontabs): as root for every user, else only what the login user can read. Timers: get_systemd_list_timers. Values that look like secrets are redacted.

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>"
    },
    "name": "get_cron_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
timeoutNo
key_pathNo
password_envNo
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: -20New value: +60
  3. Addedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds substantive behavior on top of that — output completeness is privilege-dependent (all users' crontabs as root, otherwise only what the login user can read), run-parts scripts are included, and secret-looking values are redacted. That redaction note is exactly the kind of caveat an agent needs before reporting results as complete. It stops short of describing output shape or pagination, but the output schema covers returns.

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?

Three short, front-loaded fragments with no filler: scope first, alternative second, caveat third. The telegraphic style (colon-separated clauses) is dense but readable. Nothing superfluous is present.

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?

An output schema exists, so return values need not be described, and the scope/redaction notes cover the main behavioral risks. The gap is on the input side: for a 7-parameter tool with 0% schema coverage, an agent gets no explanation of authentication (key_path, password_env, accept_new_hostkey) or timeout behavior, which is a meaningful omission for a remote-host tool.

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 7 parameters, so the description must carry the burden and largely does not: host, port, timeout, key_path, password_env, and accept_new_hostkey are never explained. The only indirect help is the privilege framing ('as root for every user, else only what the login user can read'), which hints that the user parameter determines visibility, but connection and auth parameters remain undocumented in both places.

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 description names a specific resource (cron jobs) and enumerates the exact sources it covers: system crontabs, run-parts scripts, and user crontabs. It also explicitly excludes systemd timers by pointing to get_systemd_list_timers, so an agent can distinguish it from the timer sibling without opening either schema.

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

Usage Guidelines4/5

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

It gives a clear routing rule: use this for cron jobs, use get_systemd_list_timers for timers. It also tells the agent what result to expect depending on privilege level (root vs login user), which helps decide whether calling it is worthwhile. It does not, however, state any exclusion relative to get_crontab_tasks, so the guidance is clear but not exhaustive.

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