Skip to main content
Glama

ScorpTech x402 Tools

Password Hash

password_hash
Read-onlyIdempotent

Hash, verify and identify password hashes — for seeding users, migrating auth systems, writing htpasswd files and auditing leaked hash formats. hash: bcrypt, Argon2id / Argon2i (where the server has libargon2), PBKDF2-SHA256 / SHA512 (Django format), SHA-512 / SHA-256 crypt (Linux shadow) and Apache APR1 (htpasswd). verify: checks a password against bcrypt, Argon2, crypt ($1$ $5$ $6$, DES), APR1, Django / Werkzeug / passlib PBKDF2, phpass ($P$ $H$, WordPress), Drupal 7 ($S$), LDAP {SSHA} / {SHA} / {SSHA256} / {SSHA512} / {SMD5}, MySQL 4.1+ and unsalted MD5 / SHA / NTLM hex. identify: algorithm, parameters and a verdict against the OWASP Password Storage Cheat Sheet, with needsRehash. Passwords are never echoed or stored. Returns JSON with: mode, algorithm, hash, parameters, verdict, warnings. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/password-hash

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "password_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNobcrypt cost (default 12)
hashNoverify / identify: the stored hash
modeNohash
passwordNo
timeCostNoArgon2 iterations
usernameNoapr1: also return an htpasswd line
algorithmNobcrypt
memoryKiBNoArgon2 memory (KiB)
iterationsNoPBKDF2 iterations (default OWASP: 600,000 SHA256 / 210,000 SHA512) or crypt rounds (default 656,000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (which already cover readOnly/idempotent/non-destructive/openWorld), the description discloses three traits an agent could not otherwise know: passwords are never echoed or stored, calls are billed at $0.002 USDC per successful call via x402 on Base or Solana, and Argon2i/Argon2id availability depends on the server having libargon2. It also states the exact JSON response keys, removing uncertainty about output shape. No behavior contradicts the annotations, since hashing computes a value without mutating state.

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?

It is front-loaded with the three mode names and then uses inline 'hash:', 'verify:', 'identify:' labels to segment a dense paragraph, which makes scanning easy. Every clause — algorithm lists, privacy note, cost, HTTPS mirror — carries information, though the run-on length of the algorithm enumerations makes it heavier than strictly necessary.

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

Completeness4/5

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

For a 9-parameter, annotation-rich tool with no output schema, the description is nearly self-sufficient: it states the response keys, the cost, the privacy guarantee and platform caveats. The remaining gap is per-mode parameter requirement (all 9 parameters are optional in schema, so the agent must infer which combinations are valid) and what happens on verification failure or an unidentifiable hash.

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

Parameters4/5

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

The schema covers 67% of parameters, and the description compensates well in one important place: the `algorithm` enum is only 8 values, but the verify path is documented as additionally auto-detecting Django/Werkzeug/passlib PBKDF2, phpass, Drupal 7, LDAP, MySQL 4.1+ and unsalted MD5/SHA/NTLM hex, meaning the agent learns the hash format is inferred rather than selected. It also ties `iterations` to the OWASP defaults for PBKDF2 versus crypt rounds, and explains that `username` only matters for apr1/htpasswd output. It does not clarify which parameters become effectively required per mode (password for hash/verify, hash for verify/identify), despite required_parameters being empty.

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 names three concrete verbs (hash, verify, identify) on a concrete resource (password hashes) and enumerates the exact algorithms each mode supports, so the agent knows precisely what the tool computes. It never names its obvious siblings (password_generate, password_strength, hash_encode, eip712_hash), so the boundary against those tools must be inferred from use-case phrasing rather than stated outright.

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 scenarios are given — seeding users, migrating auth systems, writing htpasswd files, auditing leaked hash formats — which effectively tells the agent when to reach for this tool over generating a password. Mode-level guidance is also implicit: verify takes a hash plus password, identify takes only a hash and returns a verdict. What is missing is any explicit exclusion, e.g. pointing at password_strength for plaintext scoring or password_generate for producing a new secret.

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