Skip to main content
Glama

keychain_get_password_history

Retrieve password history for a vault item to track changes over time. Use reveal parameter to view actual passwords when needed.

Instructions

Get an item password history (if any). Returning passwords requires reveal=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
revealNo

Implementation Reference

  • Registration of the "keychain_get_password_history" tool and its handler function.
      `${deps.toolPrefix}.get_password_history`,
      {
        title: 'Get Password History',
        description:
          'Get an item password history (if any). Returning passwords requires reveal=true.',
        annotations: { readOnlyHint: true },
        inputSchema: {
          id: z.string(),
          reveal: z.boolean().optional(),
        },
        _meta: toolMeta,
      },
      async (input, extra) => {
        const sdk = await deps.getSdk(extra.authInfo);
        const history = await sdk.getPasswordHistory(input.id, {
          reveal: effectiveReveal(input),
        });
        return {
          structuredContent: toolResult(
            'password_history',
            history.value,
            history.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