Skip to main content
Glama

save_tag

Destructive

Create or update workspace tags to label and organize documents; renaming or recoloring triggers reindexing of affected documents.

Instructions

Create or update a workspace tag. Full workspace write access is required; renaming or recoloring a tag causes affected documents to be reindexed.

Input Schema

NameRequiredDescriptionDefault
idNoUUID returned by the corresponding list or read operation.
nameNoNon-empty human-readable name or title.
colorNoOptional tag color, at most 20 characters.
actionNo
workspaceIdNoWorkspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.1.1
    • removedInput schema / properties / color / anyOf
      Removed value: -[
      -  {
      -    "description": "Optional tag color, at most 20 characters.",
      -    "maxLength": 20,
      -    "type": "string"
      -  },
      -  {
      -    "description": "Optional tag color, at most 20 characters.",
      -    "maxLength": 20,
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / color / description
      Added value: +"Optional tag color, at most 20 characters."
    • addedInput schema / properties / color / maxLength
      Added value: +20
    • addedInput schema / properties / color / type
      Added value: +"string"
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "description": "Non-empty human-readable name or title.",
      -    "maxLength": 100,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "description": "Non-empty human-readable name or title.",
      -    "maxLength": 100,
      -    "minLength": 1,
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / name / description
      Added value: +"Non-empty human-readable name or title."
    • addedInput schema / properties / name / maxLength
      Added value: +100
    • addedInput schema / properties / name / minLength
      Added value: +1
    • addedInput schema / properties / name / type
      Added value: +"string"
  2. Changed3 schema fields changedv2.0.4
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "allOf": [
      -      {
      -        "not": {
      -          "anyOf": [
      -            {
      -              "required": [
      -                "id"
      -              ]
      -            }
      -          ]
      -        }
      -      }
      -    ],
      -    "properties": {
      -      "action": {
      -        "const": "create",
      -        "description": "Select the create operation explicitly.",
      -        "type": "string"
      -      },
      -      "color": {
      -        "description": "Optional tag color, at most 20 characters.",
      -        "maxLength": 20,
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Non-empty human-readable name or title.",
      -        "maxLength": 100,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "action": {
      -        "const": "update",
      -        "description": "Select the update operation explicitly.",
      -        "type": "string"
      -      },
      -      "color": {
      -        "description": "Optional tag color, at most 20 characters.",
      -        "maxLength": 20,
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "UUID returned by the corresponding list or read operation.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Non-empty human-readable name or title.",
      -        "maxLength": 100,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "allOf": [
      +      {
      +        "not": {
      +          "anyOf": [
      +            {
      +              "required": [
      +                "id"
      +              ]
      +            }
      +          ]
      +        }
      +      }
      +    ],
      +    "properties": {
      +      "action": {
      +        "const": "create",
      +        "description": "Select the create operation explicitly.",
      +        "type": "string"
      +      },
      +      "color": {
      +        "description": "Optional tag color, at most 20 characters.",
      +        "maxLength": 20,
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Non-empty human-readable name or title.",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "workspaceId": {
      +        "$schema": "https://json-schema.org/draft/2020-12/schema",
      +        "description": "Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "action": {
      +        "const": "update",
      +        "description": "Select the update operation explicitly.",
      +        "type": "string"
      +      },
      +      "color": {
      +        "description": "Optional tag color, at most 20 characters.",
      +        "maxLength": 20,
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "UUID returned by the corresponding list or read operation.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Non-empty human-readable name or title.",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "workspaceId": {
      +        "$schema": "https://json-schema.org/draft/2020-12/schema",
      +        "description": "Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "id"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "description": "Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "create",
      -        "type": "string"
      -      },
      -      "result": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "color": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "createdAt": {
      -            "type": "string"
      -          },
      -          "documentCount": {
      -            "type": "number"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name",
      -          "color"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "result"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "update",
      -        "type": "string"
      -      },
      -      "result": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "color": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "createdAt": {
      -            "type": "string"
      -          },
      -          "documentCount": {
      -            "type": "number"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name",
      -          "color"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "result"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "create",
      +        "type": "string"
      +      },
      +      "result": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "color": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "createdAt": {
      +            "type": "string"
      +          },
      +          "documentCount": {
      +            "type": "number"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "color"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "result"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "update",
      +        "type": "string"
      +      },
      +      "result": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "color": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "createdAt": {
      +            "type": "string"
      +          },
      +          "documentCount": {
      +            "type": "number"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "color"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "result"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed3 schema fields changedv1.0.3
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "create",
      -        "description": "Select the create operation explicitly.",
      -        "type": "string"
      -      },
      -      "color": {
      -        "description": "Optional tag color, at most 20 characters.",
      -        "maxLength": 20,
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Non-empty human-readable name or title.",
      -        "maxLength": 100,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "update",
      -        "description": "Select the update operation explicitly.",
      -        "type": "string"
      -      },
      -      "color": {
      -        "description": "Optional tag color, at most 20 characters.",
      -        "maxLength": 20,
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "UUID returned by the corresponding list or read operation.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Non-empty human-readable name or title.",
      -        "maxLength": 100,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "allOf": [
      +      {
      +        "not": {
      +          "anyOf": [
      +            {
      +              "required": [
      +                "id"
      +              ]
      +            }
      +          ]
      +        }
      +      }
      +    ],
      +    "properties": {
      +      "action": {
      +        "const": "create",
      +        "description": "Select the create operation explicitly.",
      +        "type": "string"
      +      },
      +      "color": {
      +        "description": "Optional tag color, at most 20 characters.",
      +        "maxLength": 20,
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Non-empty human-readable name or title.",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "action": {
      +        "const": "update",
      +        "description": "Select the update operation explicitly.",
      +        "type": "string"
      +      },
      +      "color": {
      +        "description": "Optional tag color, at most 20 characters.",
      +        "maxLength": 20,
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "UUID returned by the corresponding list or read operation.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Non-empty human-readable name or title.",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "id"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties
      Added value: +{
      +  "action": {
      +    "anyOf": [
      +      {
      +        "const": "create",
      +        "description": "Select the create operation explicitly.",
      +        "type": "string"
      +      },
      +      {
      +        "const": "update",
      +        "description": "Select the update operation explicitly.",
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  "color": {
      +    "anyOf": [
      +      {
      +        "description": "Optional tag color, at most 20 characters.",
      +        "maxLength": 20,
      +        "type": "string"
      +      },
      +      {
      +        "description": "Optional tag color, at most 20 characters.",
      +        "maxLength": 20,
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  "id": {
      +    "description": "UUID returned by the corresponding list or read operation.",
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  "name": {
      +    "anyOf": [
      +      {
      +        "description": "Non-empty human-readable name or title.",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      {
      +        "description": "Non-empty human-readable name or title.",
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    ]
      +  }
      +}
  4. Addedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=false. The description adds two genuinely non-obvious behavioral facts — the workspace write-permission requirement and the document reindexing side effect on rename/recolor — which is real incremental value. However it omits what an update actually destroys or whether an update with no color leaves the existing color intact, which matters for a destructive-flagged mutation.

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, zero waste, with the scope stated first and the permission plus side-effect caveats packed into the second. Nothing can be trimmed without losing information.

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?

For a destructive mutation with an output schema and 80% schema coverage, the description covers permissions and the reindexing consequence, which are the highest-risk unknowns. It falls short only on update semantics (partial-update behavior, overwrite vs. merge), which an agent would still have to guess.

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?

Schema description coverage is 80%, so the schema already documents name, color, id, workspaceId and the action discriminator. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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

Purpose4/5

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

"Create or update a workspace tag" gives a specific verb pair and resource, and the description's second clause scopes it to workspace-level tags. It does not, however, distinguish itself from the nearby delete_tag or set_document_tag siblings, so an agent must infer the boundary.

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 states the access prerequisite ("Full workspace write access is required") but never says when to choose this over delete_tag or set_document_tag, nor when create vs. update applies beyond what the schema's `action` const already declares. Usage is only implied by the name and the first sentence.

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