Skip to main content
Glama

Generate

keychain_generate
Read-only

Generate passwords or passphrases with configurable options like character types, length, and word count. Return the value only when reveal is true, without mutating the vault.

Instructions

Generate a password or passphrase with bw generate. This never mutates the vault; pass reveal=true to return the value, and NOREVEAL or KEYCHAIN_NOREVEAL force redaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uppercaseNoInclude uppercase letters when generating a password.
lowercaseNoInclude lowercase letters when generating a password.
numberNoInclude numeric digits when generating a password.
specialNoInclude special characters when generating a password.
passphraseNoGenerate a word-based passphrase instead of a password.
lengthNoPassword length in characters, between 5 and 256.
wordsNoPassphrase word count, between 3 and 50.
minNumberNoMinimum number of digits to include.
minSpecialNoMinimum number of special characters to include.
separatorNoSeparator to use between words in passphrase mode.
capitalizeNoCapitalize passphrase words when supported by bw.
includeNumberNoInclude a number in passphrase mode when supported by bw.
ambiguousNoAllow ambiguous characters in generated passwords.
revealNoWhether secret values are returned; default false and can be forced false by NOREVEAL.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Beyond the readOnlyHint annotation, the description adds that the tool never mutates the vault and explains the reveal parameter and NOREVEAL/KEYCHAIN_NOREVEAL redaction behavior, which is valuable context for the agent.

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?

Two sentences, front-loaded with purpose, followed by key behavioral details. No unnecessary words; every sentence earns its place.

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 complexity (14 parameters, output schema exists), the description is fairly complete: it covers purpose, non-mutation, and key behavioral nuances. Slight gap in guidance on when to use passphrase vs password, but schema covers individual parameters.

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 coverage is 100% with each parameter described, so baseline is 3. The description adds meaning primarily for the reveal parameter, but does not significantly supplement other parameters 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?

The description clearly states it generates a password or passphrase, which is a specific verb and resource. It distinguishes itself from siblings like keychain_generate_username by specifying the output type, even without explicit comparison.

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 does not provide explicit guidance on when to use this tool versus alternatives (e.g., keychain_get_password for retrieving existing passwords, keychain_generate_username for usernames). It only implies usage by stating what it generates.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icoretech/warden-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server