Skip to main content
Glama

500Toolbox

BCrypt Hash

bcrypt-hash
Read-onlyIdempotent

Produces a BCrypt hash suitable for storing a password. BCrypt is intentionally slow, and the work factor controls how slow - higher is more resistant to offline cracking and costs proportionally more time. Costs 2 credits per call.

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": {
      "password": "<password>"
    },
    "name": "bcrypt-hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
passwordYesPlaintext password to hash. Sent over TLS and never stored.
workFactorNoBCrypt cost parameter. Defaults to 11. Each step up doubles the time taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the deliberate slowness of BCrypt, the security/time tradeoff of the work factor, and a concrete cost of 2 credits per call – genuinely useful operational context. It does not state whether repeated calls yield the same hash (relevant given idempotentHint=true, which is questionable for salted bcrypt), leaving one behavioral question open.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: purpose first, then the work-factor tradeoff, then the billing cost front-loaded at the end where an agent will notice it. No filler, no repetition of the parameter list or annotations.

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 two-parameter tool with full schema coverage and annotations, this is nearly complete: it covers purpose, tuning rationale, and cost. Gaps are minor – no mention of the returned value's form (salt-prefixed string) or that each call produces a distinct hash; no output schema exists to cover this instead.

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?

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by explaining *why* workFactor matters – higher values resist offline cracking but cost proportionally more time. This security rationale is meaning the schema does not convey, even though it restates that a work factor exists.

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?

"Produces a BCrypt hash suitable for storing a password" gives a specific verb (produces) and resource (BCrypt hash) plus the intended use case. It does not explicitly name the sibling alternatives (argon2-hash, bcrypt-verify), so the agent must infer that verification goes elsewhere, but the operation itself is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied by "suitable for storing a password" – a hashing-for-storage context. There is no explicit statement about when to prefer this over argon2-hash, nor any note that a matching bcrypt-verify call is needed to check a hash later. Adequate but leaves selection guidance to inference.

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