Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

generate_password

Read-only

Generate a cryptographically secure random password using crypto.randomBytes. Configurable length (4–128), uppercase letters, digits, and symbols. Use when resetting user passwords, seeding test accounts, or generating API secrets.

Input Schema

NameRequiredDescriptionDefault
lengthNoPassword length (4–128, default: 16)
numbersNoInclude digits (default: true)
symbolsNoInclude symbols like !@#$ (default: false)
uppercaseNoInclude uppercase letters (default: true)

Output Schema

NameRequiredDescriptionDefault
lengthNo
passwordNo
charset_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "length": 24,
      +    "numbers": true,
      +    "symbols": true,
      +    "uppercase": true
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / length / description
      Previous value: -"Password length (4–128, default: 16)"New value: +"Password length (4–128, default: 16)"
  3. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "charset_size": {
      +    "type": "number"
      +  },
      +  "length": {
      +    "type": "number"
      +  },
      +  "password": {}
      +}
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive/not-idempotent, and the description reinforces the key trait by naming the cryptographic randomness source. The length bounds (4–128) are additional useful context; it doesn't say what happens on out-of-range input, which keeps it from a 5.

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?

Three short sentences, front-loaded with the action and implementation, followed by configuration and usage. Zero filler.

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?

An output schema exists, so return values needn't be spelled out, and annotations cover the safety profile. The remaining gap is edge-case behavior (invalid length handling, character-class guarantees), which is minor for this tool.

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 description coverage is 100%, so all four parameters, their defaults, and the 4–128 range are already documented. The description restates the option list and range without adding syntax or behavioral nuance beyond the schema.

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?

States a specific verb and resource ('Generate a ... random password') and even names the entropy source (crypto.randomBytes). No sibling tool overlaps, so an agent can select it unambiguously.

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

Usage Guidelines4/5

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

Explicitly names the three scenarios for using it: resetting user passwords, seeding test accounts, and generating API secrets. No exclusions or alternatives are given, but no near-equivalent sibling exists to route away from.

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.