Skip to main content
Glama

Generate

keychain_generate
Read-only

Generate a password or passphrase with customizable length, character sets, and word options. Optionally reveal the secret value for immediate use.

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?

Annotations already mark it readOnlyHint, and the description reinforces that it never mutates the vault. It also discloses redaction behavior due to NOREVEAL, adding value beyond annotations.

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 concise: two sentences that efficiently state the action and key behavioral notes without unnecessary words.

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 14 parameters and presence of an output schema, the description covers the essential behavioral context (non-mutating, reveal control, redaction). It is sufficient for a generation 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?

All 14 parameters have descriptions in the schema (100% coverage), so the description adds little extra meaning. It only mentions 'reveal=true' which is already described, so no significant value added.

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 the tool generates a password or passphrase using 'bw generate', with a specific verb and resource. It also differentiates from sibling tools like keychain_generate_username by focusing on passwords.

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?

The description provides useful guidance, such as 'This never mutates the vault' indicating read-only use, and explains when to use 'reveal=true'. However, it lacks explicit comparisons to alternatives like keychain_get_password.

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