Skip to main content
Glama

keychain_generate_username

Generate secure usernames using random words, plus-addressed emails, catch-all emails, or forwarded aliases for Bitwarden vault management.

Instructions

Generate a username like the Bitwarden generator (random word, plus-addressed email, catch-all). Returning the value requires reveal=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo
capitalizeNo
includeNumberNo
emailNo
domainNo
revealNo

Implementation Reference

  • Registration and handler implementation for the keychain_generate_username tool.
    registerTool(
      `${deps.toolPrefix}.generate_username`,
      {
        title: 'Generate Username',
        description:
          'Generate a username like the Bitwarden generator (random word, plus-addressed email, catch-all). Returning the value requires reveal=true.',
        annotations: { readOnlyHint: true },
        inputSchema: {
          type: z
            .enum([
              'random_word',
              'plus_addressed_email',
              'catch_all_email',
              'forwarded_email_alias',
            ])
            .optional(),
          capitalize: z.boolean().optional(),
          includeNumber: z.boolean().optional(),
          email: z.string().optional(),
          domain: z.string().optional(),
          reveal: z.boolean().optional(),
        },
        _meta: toolMeta,
      },
      async (input, extra) => {
        const sdk = await deps.getSdk(extra.authInfo);
        const result = await sdk.generateUsername(clampReveal(input));
        return {
          structuredContent: toolResult(
            'generated',
            result.value,
            result.revealed,
          ),
          content: [{ type: 'text', text: 'OK' }],
        };
      },
    );

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