Skip to main content
Glama

Run John

run_john

Crack password hashes using wordlist, single, incremental, mask, or session-based attacks; display previously recovered passwords and resume saved sessions.

Instructions

John the Ripper is a powerful password cracking tool supporting hundreds of hash types. Tags: password-cracking, security, pentest, brute-force, exploitation, authentication, hash-cracking

Usage Guide:

  • Wordlist Attack (mode="wordlist"): Standard dictionary attack. Set rules=True to enable word mangling.

  • Single Crack (mode="single"): Uses GECOS/username info. Best first step for system accounts.

  • Incremental (mode="incremental"): Pure brute-force mode.

  • Mask Attack (mode="mask"): Cracks passwords matching a specific pattern (default: ?u?l?l?l?d?d).

  • Show Results (mode="show"): Displays previously cracked passwords for a hash file.

  • Session Management: Use mode="session" to start a named session, and mode="restore" to resume using session_name.

Warnings: This tool is used for brute-force and exploitation. Ensure you have explicit authorization.

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": {
      "mode": "<mode>"
    },
    "name": "run_john"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskNo?u?l?l?l?d?d
modeYes
rulesNo
wordlistNo/usr/share/wordlists/rockyou.txt
hash_fileNo
hash_formatNoraw-md5
session_nameNoName for saving/restoring session progress.work_task

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real behavior beyond the schema: defaults for mask and wordlist, that rules enables word mangling, and that session/restore are linked by session_name, plus an authorization warning. It omits what an agent most needs operationally — whether the call blocks for the duration of a crack, how output is returned for a long-running session, and what happens when hash_file is left null (the declared default).

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 tool identity, then a clearly sectioned Usage Guide and Warnings block that is scannable. The trailing 'Tags:' keyword line is noise that adds no decision value, and the mask default is stated twice (prose and schema).

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. However, with 7 parameters and only 14% schema coverage, an agent still cannot determine acceptable hash_format values or how hash_file relates to the file being cracked — details that determine whether the invocation succeeds.

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 14% (only session_name is documented), so the description must compensate and it partly does: it effectively enumerates the values of the required mode parameter, explains rules, and reveals the default mask pattern. Three parameters — hash_file, hash_format, wordlist — get no explanation of expected format or path semantics beyond their defaults, leaving the highest-coverage gap unaddressed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific tool (John the Ripper) and the resource domain (hundreds of hash types) with the verb implied by the mode enumeration. It does not differentiate from the sibling run_hashcat, which exists in the catalog, so a 4 rather than a 5.

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?

The Usage Guide is genuinely useful: each of the seven mode values is paired with a condition that selects it (single as 'best first step for system accounts', wordlist as the standard dictionary attack, show for previously cracked results, session/restore for resumption). It stops short of routing between this tool and alternatives like run_hashcat or john_prepare.

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