Skip to main content
Glama

Generate Password

generate_password
Read-only

Create a random password of a specified length, with an option to include special characters for stronger credentials.

Instructions

Generate a random password with specified length, optionally including special characters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lengthNoThe length of the password to generate (between 8 and 64 characters).
use_special_charsNoInclude special characters in the password.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv1.0.0
  3. Removed
  4. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations declare readOnlyHint=true, so the agent knows this is a safe, non-mutating operation. The description adds that the password is random and that special characters are optional, which is useful. However, it does not disclose details like whether the password is cryptographically secure, whether it is returned in plaintext, or any side effects (e.g., logging). With annotations covering the safety profile, a 3 is appropriate.

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, efficient sentence that front-loads the core action and includes the two key parameters. Every word earns its place, and there is no redundancy with the schema.

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?

For a simple, read-only generation tool with two fully documented parameters and no output schema, the description is nearly complete. The only minor gap is that it does not state the return format (e.g., plaintext string), but the tool's simplicity and the schema coverage make this a minor omission.

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 the schema already documents both parameters and their constraints. The description adds no additional meaning beyond what the schema provides, so the baseline 3 is correct.

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 ('Generate'), a clear resource ('a random password'), and the key controllable attributes ('specified length', 'optionally including special characters'). It is unambiguous and distinguishes itself from the listed siblings, none of which relate to password generation.

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?

The description implies when to use the tool: whenever a random password is needed. However, it does not explicitly state when not to use it or mention any alternatives, such as using run_python_code for custom generation logic. The context is clear enough for basic selection, but there is no explicit routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.