Skip to main content
Glama

keychain_send_delete

Delete a Bitwarden Send by specifying its ID to remove secure file or text shares from your vault.

Instructions

Delete a Send (bw send delete).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • Registration and handler for the `send_delete` tool.
      `${deps.toolPrefix}.send_delete`,
      {
        title: 'Send Delete',
        description: 'Delete a Send (bw send delete).',
        annotations: {
          readOnlyHint: false,
          destructiveHint: true,
          openWorldHint: true,
        },
        inputSchema: {
          id: z.string(),
        },
        _meta: toolMeta,
      },
      async (input, extra) => {
        if (isReadOnly) return readonlyBlocked();
        const sdk = await deps.getSdk(extra.authInfo);
        const result = await sdk.sendDelete(input);
        return {
          structuredContent: { result },
          content: [{ type: 'text', text: 'OK' }],
        };
      },
    );
  • Actual implementation of `sendDelete` in the Keychain SDK, which executes the `bw send delete` CLI command.
    async sendDelete(input: { id: string }): Promise<unknown> {
      return this.bw.withSession(async (session) => {
        const { stdout } = await this.bw.runForSession(
          session,
          ['send', 'delete', input.id],
          {
            timeoutMs: 60_000,
          },
        );
        return this.tryParseJson(stdout);
      });
    }

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