Skip to main content
Glama

bear_remove_tag

DestructiveIdempotent

Remove a tag from a Bear note. Works on visible tags and ancestor tags, handling hierarchical expansions.

Instructions

Remove a tag from a specific Bear note. Works on any tag visible in 'tags' on the note — including ancestor tags like 'parent' that exist only as hierarchical expansions. Removing a hierarchical leaf like 'parent/child' also drops orphaned ancestors from the tag index.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNote ID (uniqueIdentifier)
tagYesTag to remove (without #)

Implementation Reference

  • The ToolHandler definition for bear_remove_tag. Defines the tool's schema (name, description, inputSchema requiring id and tag strings, annotations) and the buildArgs function that constructs the CLI command array ['tag', 'remove', id, tag, '--json'] to delegate to the underlying bcli tool.
    bear_remove_tag: {
      tool: {
        name: "bear_remove_tag",
        description:
          "Remove a tag from a specific Bear note. Works on any tag visible in 'tags' on the note — including ancestor tags like 'parent' that exist only as hierarchical expansions. Removing a hierarchical leaf like 'parent/child' also drops orphaned ancestors from the tag index.",
        inputSchema: {
          type: "object" as const,
          properties: {
            id: {
              type: "string",
              description: "Note ID (uniqueIdentifier)",
            },
            tag: {
              type: "string",
              description: "Tag to remove (without #)",
            },
          },
          required: ["id", "tag"],
        },
        annotations: {
          readOnlyHint: false,
          destructiveHint: true,
          idempotentHint: true,
        },
      },
      buildArgs: (input) => [
        "tag",
        "remove",
        String(input.id),
        String(input.tag),
        "--json",
      ],
    },
  • Tool registration via the ListToolsRequestSchema handler. All tools from the tools.ts module (including bear_remove_tag) are registered by mapping over Object.values(tools) to expose their tool definitions to the MCP client.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: Object.values(tools).map((t) => t.tool),
    }));
  • Tool call dispatch via the CallToolRequestSchema handler. When a tool named 'bear_remove_tag' is called, it's looked up by name from the tools map (const handler = tools[name]), then handler.buildArgs(params) builds the CLI args array which is executed via execBcliWithReauth.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: input } = request.params;
      const handler = tools[name];
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate destructive and idempotent behavior. The description adds context: it works on ancestor tags and removes orphaned ancestors when a leaf like 'parent/child' is removed. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with action and key details. Every sentence adds value: first defines core function, second explains hierarchical edge case. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool has only two parameters and no output schema. The description covers the essential behavior (removal, hierarchy handling). Sufficient for typical use, though no mention of return values or error scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with clear descriptions for both parameters (id and tag). The description adds minimal extra meaning (e.g., 'without #' is already in schema). Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (remove a tag from a specific Bear note) and specifies the scope (any tag visible in 'tags', including ancestor tags). It distinguishes from siblings like bear_rename_tag and bear_delete_tag by detailing hierarchical behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for removing tags from notes but does not explicitly state when to use it over alternatives like bear_delete_tag (which deletes the tag entirely). No exclusion criteria or scenario guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/KuvopLLC/better-bear'

If you have feedback or need assistance with the MCP directory API, please join our Discord server