Skip to main content
Glama

generate_password

Read-onlyIdempotent

Password generator — cryptographically secure password

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
lengthNoLength in characters, a whole number, for example: 16.
numbersNotrue or false: numbers. Default false.
symbolsNotrue or false: symbols. Default false.
lowercaseNotrue or false: lowercase. Default false.
uppercaseNotrue or false: uppercase. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / length / description
      Added value: +"Length in characters, a whole number, for example: 16."
    • addedInput schema / properties / lowercase / description
      Added value: +"true or false: lowercase. Default false."
    • addedInput schema / properties / numbers / description
      Added value: +"true or false: numbers. Default false."
    • addedInput schema / properties / symbols / description
      Added value: +"true or false: symbols. Default false."
    • addedInput schema / properties / uppercase / description
      Added value: +"true or false: uppercase. Default false."
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds one piece of genuine context beyond that — cryptographic security of the output. However, it omits the important behavioral gotcha that all character-class flags default to false, leaving unclear what character set is produced when nothing is enabled, and it never says the result is returned as a string.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two terse fragments, front-loaded with the core purpose and no filler. It is efficient, though it borders on under-specification rather than being deliberately concise.

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

Completeness2/5

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

For a tool with five optional parameters, zero required fields, all-boolean defaults of false, and no output schema, the description should explain what happens in the default/empty case and what form the password takes. Neither is covered, so an agent cannot predict the generated output reliably.

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 five parameters are already documented in the schema (length 4–128, four boolean class toggles with defaults). The description adds no meaning on top of that, which is acceptable given the high coverage but earns only the baseline.

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?

"Password generator" states a specific verb+resource (generate a password) and adds a meaningful qualifier (cryptographically secure). It does not differentiate from the closely related sibling estimate_password_strength, so the agent must infer the boundary itself.

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?

There is no when-to-use guidance, no mention of when to prefer estimate_password_strength or generate_uuid instead, and no note about prerequisites or intended contexts. The agent is left to infer usage entirely from the tool name.

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