Skip to main content
Glama

John Prepare

john_prepare

Prepares Linux, ZIP/RAR, SSH, and PDF data into crackable hashes and deduplicates wordlists for John the Ripper.

Instructions

Prepare hashes for John the Ripper by converting various formats or cleaning wordlists. Tags: password-cracking, preparation, security, authentication

Usage Guide:

  • unshadow: Combines /etc/passwd and /etc/shadow for Linux password cracking. input_file should be /etc/passwd.

  • zip/rar/ssh/pdf: Extracts crackable hashes from encrypted archives or keys.

  • unique: Removes duplicates from a wordlist while preserving order.

Warnings: This tool is used for exploitation and brute-force preparation.

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

Input Schema

NameRequiredDescriptionDefault
modeYes
input_fileYes
output_fileNo
shadow_fileNo/etc/shadow

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?

With no annotations, the description carries the full burden. It does disclose the security-sensitive nature ('used for exploitation and brute-force preparation') and that unshadow reads /etc/passwd, but it does not say whether output_file is written, whether inputs are modified, or what the tool returns operationally.

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?

The purpose sentence is front-loaded, and the bulleted usage guide scans quickly. The 'Tags:' line adds little value and the warnings section is a single vague sentence, but overall there is minimal waste.

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 needn't be described, and the mode semantics are covered. But for a four-parameter, no-annotation tool, the missing explanation of output_file and shadow_file is a real gap that leaves the agent guessing about file writes and the shadow path override.

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%, so the description must compensate, and it partially does: it supplies the otherwise-undocumented mode values and explains input_file for the unshadow case. However, output_file and shadow_file are never mentioned, leaving half the parameters without any semantic explanation in either schema or description.

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 description states a specific verb and resource: preparing hashes or wordlists for John the Ripper, via conversion or cleaning. The mode breakdown (unshadow, zip/rar/ssh/pdf, unique) makes the scope concrete and implicitly separates it from the sibling run_john, though no sibling is named explicitly.

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 gives clear per-mode context: unshadow for Linux passwd/shadow, archive/key modes for extracting hashes, unique for deduplicating wordlists. It stops short of stating when not to use this tool or naming run_john as the follow-up step, so it is clear context without exclusions.

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