Skip to main content
Glama

Bcrypt hash / compare

bcrypt
Read-only

Hash a string with configurable salt rounds or verify a password by comparing it to an existing hash.

Instructions

Hash a string with bcrypt, or check a string against an existing bcrypt hash. (Same as IT-Tools /bcrypt.)

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

Input Schema

NameRequiredDescriptionDefault
hashNoExisting bcrypt hash (for compare)
textYes
actionYes
roundsNoSalt rounds (for hash)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and idempotentHint=false, so the safety profile is covered; the non-idempotent hint is consistent with bcrypt's per-call salting. The description adds little behavioral context beyond the annotations — it does not state that compare yields a match result, how an invalid hash is handled, or anything about computational cost from the rounds setting.

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?

Two sentences, front-loaded with the two supported operations and free of filler; the IT-Tools parenthetical is short provenance that does not obstruct. Slightly tight to the point of omitting return-value behavior, but nothing is redundant or padded.

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?

No output schema exists, so the description carries the burden of explaining what an agent gets back, and it omits that compare returns a boolean match result. For a four-parameter tool with one undocumented required parameter and a security-relevant 'rounds' setting, it is adequate but leaves real gaps.

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

Parameters2/5

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

With only 50% schema description coverage, the description needs to compensate and does not. The 'text' parameter is undocumented in both schema and description (is it plaintext to hash or the value to compare?), and the description never mentions 'rounds', its default of 10, or its cost/security tradeoff.

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 gives two specific verb+resource pairs — hash a string with bcrypt, and check a string against an existing bcrypt hash — which mirrors the action enum and lets an agent tell the two modes apart from the name alone. It does not differentiate itself from the generic sibling 'hash_text', so an agent must infer that bcrypt is the algorithm-specific choice.

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 implied by the two stated operations: an agent can infer that 'compare' mode applies when an existing hash is on hand. However, there is no explicit when-to-use guidance versus the sibling hash_text, no mention of which mode requires which parameter, and no exclusion or prerequisite statements.

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