Skip to main content
Glama

Generate strong passwords

generate_password
Read-only

Generate random passwords with Node's cryptographically secure generator. Each enabled character set appears at least once and the result is shuffled. Returns one password per line; every call gives new results. An error is returned if all character sets are turned off. Passwords are not stored or logged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many passwords to generate, 1-20
lengthNoCharacters per password, 8-128
numbersNoInclude 0-9
symbolsNoInclude symbols such as !@#$%^&*
lowercaseNoInclude a-z
uppercaseNoInclude A-Z

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / count / description
      Added value: +"How many passwords to generate, 1-20"
    • addedInput schema / properties / length / description
      Added value: +"Characters per password, 8-128"
    • addedInput schema / properties / lowercase / description
      Added value: +"Include a-z"
    • addedInput schema / properties / numbers / description
      Added value: +"Include 0-9"
    • addedInput schema / properties / symbols / description
      Added value: +"Include symbols such as !@#$%^&*"
    • addedInput schema / properties / uppercase / description
      Added value: +"Include A-Z"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses genuinely useful behavior: mandated inclusion of each enabled character set, shuffling, one password per line in the output, fresh results on every call, the error case when all sets are disabled, and that passwords are not stored or logged. The "every call gives new results" claim is consistent with idempotentHint=false. Remaining gap is that nothing is said about ordering guarantees (shuffled vs sorted by set) or output length constraints beyond the schema.

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?

Five compact sentences, each carrying distinct information (mechanism, guarantee, return format, uniqueness across calls, error condition, privacy), with the core capability front-loaded. No filler or restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by stating the return shape (one password per line), the guarantee about content, and the failure mode when all character sets are off. For a six-parameter but fully documented schema with annotations covering safety, nothing an agent needs in order to call it correctly is missing.

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 description coverage is already 100%, so the baseline would be 3. The description earns above that by adding a non-obvious semantic guarantee: each enabled boolean set is guaranteed to appear at least once in the result, which changes how an agent should reason about the symbols/lowercase/uppercase/numbers flags. It does not add per-parameter guidance on range trade-offs (e.g. length vs count limits).

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 opens with a specific verb and resource ("Generate random passwords") plus the underlying mechanism (Node's cryptographically secure generator), which clearly separates it from siblings like generate_uuid or hash_text. It stops short of explicitly naming a sibling or stating when a different generator tool is the better pick, so it is clear but not fully differentiated.

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 tool name and by the emphasis on cryptographically secure random output, which suits credential generation. There is no explicit when-to-use or when-not-to-use statement and no pointer to alternatives such as generate_uuid for non-password tokens.

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.