Skip to main content
Glama

keychain_delete_attachment

Remove files from vault items to manage storage and maintain organized password management systems.

Instructions

Delete an attachment from an item. Returns the updated (redacted) item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYes
attachmentIdYes
revealNo

Implementation Reference

  • Implementation of the keychain_delete_attachment tool handler in src/tools/registerTools.ts.
      `${deps.toolPrefix}.delete_attachment`,
      {
        title: 'Delete Attachment',
        description:
          'Delete an attachment from an item. Returns the updated (redacted) item.',
        inputSchema: {
          itemId: z.string(),
          attachmentId: z.string(),
          reveal: z.boolean().optional(),
        },
        _meta: toolMeta,
      },
      async (input, extra) => {
        if (isReadOnly) return readonlyBlocked();
        const sdk = await deps.getSdk(extra.authInfo);
        const item = await sdk.deleteAttachment(clampReveal(input));
        return {
          structuredContent: { item },
          content: [{ type: 'text', text: 'Deleted.' }],
        };
      },
    );

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