Skip to main content
Glama

Save AI tag

save_tag

Creates an AI tag in a tag set (comments, messages or posts), or changes the label, description or colour of a custom one when slug is given. The description is the prompt the AI uses to decide when the tag applies; the more specific, the more precise the tagging. A new tag gets a unique slug derived from its label; slugs never change, so tagged items and automations that use the tag keep working. System tags cannot be edited. set_tag_setup creates or reworks many tags at once.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "brand": "<brand>"
    },
    "name": "save_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoSlug of the tag to change, from list_tags. Empty creates a new tag.
typeNoWhich tag set: "comments" (comment tags), "messages" (DM conversation tags) or "posts" (post content tags).comments
brandYes
colorNoText colour as hex "#rrggbb". The pill background is derived from it. Omit to get a palette colour.
labelNoShort name shown on the tag pill, at most 60 characters. An emoji at the start is fine.
descriptionNoThe instruction the AI uses to decide whether this tag applies, at most 1000 characters. Describe concretely when to apply it (and when not), e.g. "Apply when the person asks about delivery times, tracking or shipping costs." In comment and message tags, the built-in placeholder {{PAGE_NAME}} is replaced automatically with the name of the channel; post tags support no placeholders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, non-destructive, non-idempotent write; the description adds genuine behavior beyond that: slugs are derived from the label and never change so tagged items and automations keep working, and system tags are immutable. It does not say what is returned on save, whether re-saving an existing slug overwrites silently, or what permissions are needed, so it falls short of a 5.

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

Conciseness4/5

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

Four sentences, front-loaded with the create/update distinction, then semantics, then invariants, then the sibling pointer. Dense but each sentence carries distinct information; only the "more specific, the more precise" clause mildly repeats the schema wording.

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 6-parameter write tool with annotations and no output schema, the definition covers mode selection, slug invariants, editability limits, and the bulk alternative. Remaining holes are the undocumented brand parameter and the lack of any statement about the save response or partial-update behavior.

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 coverage is 83%, so the schema already explains slug, type, color, label and description in detail; the description mostly restates the prompt-nature of "description" and adds the guidance that specificity improves tagging precision. The required "brand" parameter is undocumented in both the schema and the description, which is the main gap keeping this at baseline.

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?

States a specific verb and resource ("Creates an AI tag in a tag set") and adds the dual mode ("changes the label, description or colour of a custom one when slug is given"). It also explicitly distinguishes itself from the bulk sibling set_tag_setup, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit create-vs-update switch (empty slug = new tag, slug from list_tags = edit), a hard exclusion ("System tags cannot be edited"), and names the alternative for bulk work ("set_tag_setup creates or reworks many tags at once"). Nothing about when to pick this tool is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources