Skip to main content
Glama

Have I Been Pwned

Pwned Passwords Range Search

hibp_get_pwned_passwords_range
Read-onlyIdempotent

Query the public Pwned Passwords k-anonymity API with a 5-character SHA-1 or NTLM prefix and return matching suffixes with prevalence counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoUse SHA-1 by default or NTLM when mode is set to ntlm.sha1
limitNoMaximum number of items to include in the response. Defaults to 25.
offsetNoNumber of items to skip before returning results. Defaults to 0.
prefixYesThe first 5 hexadecimal characters of a SHA-1 or NTLM hash.
addPaddingNoSend the Add-Padding header and discard padded zero-count entries.
response_formatNoFormat only the text content as markdown (default) or a JSON string. The same machine-readable data is always returned in structuredContent.markdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
limitNo
offsetNo
prefixNo
hasMoreNo
matchesNo
messageNoPresent when the tool returns an error.
guidanceNoAdditional guidance for resolving the tool error.
addPaddingNo
matchCountNo
nextOffsetNo
statusCodeNoPresent when the tool returns an error.
totalCountNo
returnedCountNo
rateLimitResetAtNoUTC timestamp indicating when the current rate limit window should have reset.
retryAfterHeadersNoRetry headers that mirror the standard HTTP rate-limit response when applicable.
retryAfterSecondsNoHow long to wait before retrying, when the tool is rate limited.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / response_format / description
      Previous value: -"Format the text response as markdown (default) or JSON. structuredContent is always returned."New value: +"Format only the text content as markdown (default) or a JSON string. The same machine-readable data is always returned in structuredContent."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that this queries a 'public' API and returns 'matching suffixes with prevalence counts,' which provides some behavioral context beyond the annotations (e.g., external dependency, response shape). However, it does not discuss rate limits, error behavior, or any side effects, so it contributes only modestly beyond structured metadata.

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?

The description is a single, concise sentence that front-loads the core action and result. It contains no filler, redundancies, or extra clauses that dilute meaning. Every word contributes to understanding, and it is well-structured for quick parsing.

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?

Given the tool's moderate complexity (6 parameters, but only 1 required) and the presence of an output schema, the description is largely sufficient. It explains the core operation and the response format (suffixes + counts) without needing to detail every parameter, since those are schema-documented. Missing context like 'check if a password is compromised' would be nice, but the description achieves functional completeness.

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?

All six parameters have descriptions in the schema, giving 100% coverage. The description repeats the prefix concept (SHA-1/NTLM) but adds no new parameter-level semantics beyond the schema. With full schema coverage, the baseline score of 3 is appropriate; the description does not need to add much, and it does not.

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?

The description states a specific verb ('Query'), a clear resource ('Pwned Passwords k-anonymity API'), and the exact operation (using a 5-character prefix, returning suffixes with prevalence counts). This clearly distinguishes it from sibling tools that deal with breach lists, stealer logs, and subscription data, leaving no ambiguity about what this tool does.

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?

The description provides no explicit guidance on when to use this tool versus alternatives, nor does it mention any conditions or exclusions. While the tool name and API reference imply it is for password-exposure checks, the description does not state this context or point to any sibling tools. An agent is left to infer the appropriate use case without explicit direction.

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