bear_delete_tag
Delete a tag from all Bear notes. Removes the tag text while preserving the notes.
Instructions
Delete a tag from all Bear notes. The tag text is removed but notes are preserved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag to delete (without #) |
Implementation Reference
- mcp-server/src/tools.ts:636-662 (schema)Tool definition and schema for bear_delete_tag: defines the tool name, description, inputSchema (requires a 'tag' string), and annotations (destructiveHint: true).
bear_delete_tag: { tool: { name: "bear_delete_tag", description: "Delete a tag from all Bear notes. The tag text is removed but notes are preserved.", inputSchema: { type: "object" as const, properties: { tag: { type: "string", description: "Tag to delete (without #)", }, }, required: ["tag"], }, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, }, }, buildArgs: (input) => [ "tag", "delete", String(input.tag), "--json", ], - mcp-server/src/tools.ts:657-662 (handler)Handler for bear_delete_tag: the buildArgs function constructs the CLI arguments ['tag', 'delete', '<tag>', '--json'] which are executed by index.ts via execBcliWithReauth.
buildArgs: (input) => [ "tag", "delete", String(input.tag), "--json", ], - mcp-server/src/tools.ts:9-9 (registration)The tools object (Record<string, ToolHandler>) registers all tools including bear_delete_tag, which is then imported and used by index.ts for listing and calling tools.
export const tools: Record<string, ToolHandler> = {