Skip to main content
Glama

upsert_label

DestructiveIdempotent

Create a label, or rename/recolour one (pass id). Required: name. Optional: color (e.g. #2563eb). Names are unique per tenant.

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": {
      "name": "<name>"
    },
    "name": "upsert_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoID of the label to rename/recolour; omit to create
nameYesName of the label
colorNoColour (e.g. hex code)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / color / description
      Added value: +"Colour (e.g. hex code)"
    • addedInput schema / properties / id / description
      Added value: +"ID of the label to rename/recolour; omit to create"
    • addedInput schema / properties / name / description
      Added value: +"Name of the label"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is partly covered. The description adds the tenant-scoped name uniqueness rule and the color format, which is useful. However, it does not explain the destructive side: what happens when a name already exists (error vs. merge), or whether setting color overwrites an existing value.

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?

Three short, front-loaded clauses with no filler: behavior, required/optional fields, and the uniqueness constraint. Every sentence carries information an agent needs.

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

Completeness3/5

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

For a 3-parameter tool with no output schema but with annotations present, the essentials are covered: mode selection, required field, and color format. The gap is conflict behavior — an agent cannot tell whether reusing an existing name fails or silently merges, which matters for a tool flagged destructive and idempotent.

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 100% and the schema already documents id as 'omit to create' and color as 'e.g. hex code', so the description largely mirrors structured data. It does add one useful cue by pairing the mode switch with the id parameter in prose. That is marginal added meaning, so baseline 3 fits.

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?

The description states a specific verb and resource ('Create a label, or rename/recolour one') and names the branch condition (pass id) in the first clause. It is clearly distinguishable from delete_label, though it never names the sibling explicitly.

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

Usage Guidelines4/5

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

It gives an explicit create-vs-update rule: omit id to create, pass id to rename/recolour. It also states the required field ('Required: name') and a uniqueness constraint ('Names are unique per tenant'), which is real usage context. It stops short of naming alternatives or stating when not to use it.

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.