Skip to main content
Glama
alberthild

ShieldAPI MCP

shieldapi.check_password_range

Check if a password hash prefix appears in breach databases using the HIBP k-Anonymity API to identify compromised credentials.

Instructions

Look up a SHA-1 hash prefix in the HIBP k-Anonymity database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prefixYesFirst 5 characters of the SHA-1 password hash

Implementation Reference

  • The tool 'shieldapi.check_password_range' is registered dynamically within a loop that iterates over the 'TOOLS' configuration object. It uses the 'callShieldApi' function as its handler to perform the API request.
    for (const [name, def] of Object.entries(TOOLS)) {
      server.tool(
        name,
        def.description,
        { [def.param]: z.string().describe(def.paramDesc) },
        { ...readOnlyAnnotations, title: TOOL_TITLES[name] || name },
        async (params) => formatResult(await callShieldApi(def.endpoint, params as Record<string, string>))
      );
    }
  • Definition of the 'shieldapi.check_password_range' tool within the 'TOOLS' configuration object.
    'shieldapi.check_password_range': {
      description: 'Look up a SHA-1 hash prefix in the HIBP k-Anonymity database.',
      param: 'prefix',
      paramDesc: 'First 5 characters of the SHA-1 password hash',
      endpoint: 'check-password-range',
    },

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/alberthild/shield-api-mcp'

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