Skip to main content
Glama
paladini

devutils-mcp-server

hash_bcrypt_verify

Verify if a plain text string matches a bcrypt hash for secure password validation. Returns true on successful match.

Instructions

Verify a string against a bcrypt hash. Returns true if matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe plain text string
hashYesThe bcrypt hash to verify against

Implementation Reference

  • The tool 'hash_bcrypt_verify' is registered and implemented within 'src/tools/hash.ts'. It uses 'bcrypt.compare' to verify the input against a hash.
    server.tool(
      "hash_bcrypt_verify",
      "Verify a string against a bcrypt hash. Returns true if matches.",
      {
        input: z.string().describe("The plain text string"),
        hash: z.string().describe("The bcrypt hash to verify against"),
      },
      async ({ input, hash }) => {
        const isMatch = await bcrypt.compare(input, hash);
        return {
          content: [
            {
              type: "text" as const,
              text: JSON.stringify({ match: isMatch }),
            },
          ],
        };
      }
    );
Behavior3/5

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

No annotations provided, so description carries full burden. It adds crucial return value information ('Returns true if matches') which compensates for missing output schema, but omits error handling behavior or validation of hash format.

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?

Two efficient sentences with zero redundancy. First clause states operation, second states return value. Appropriately front-loaded for quick comprehension.

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?

Adequate for a simple 2-parameter utility with full schema coverage. The return value disclosure compensates for lack of output schema. Sufficient for agent invocation despite missing edge case documentation.

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 has 100% coverage describing both parameters ('input' as plain text, 'hash' as bcrypt hash). Description adds no additional parameter-specific guidance beyond what schema provides, warranting baseline score.

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

Purpose5/5

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

Specific verb 'verify' with specific resource 'bcrypt hash' clearly distinguishes this from sibling 'hash_bcrypt' (generation). The scope is precisely defined.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance or comparison to sibling 'hash_bcrypt' for generation vs verification workflows. Relies entirely on tool name for selection context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paladini/devutils-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server