Skip to main content
Glama

Add Label

confluence_add_label
Destructive

Add a label to an existing Confluence page by page ID and label name; returns the updated label list.

Instructions

Add label to an existing Confluence page.

Args: ctx: The FastMCP context. page_id: The ID of the page to update. name: The name of the label.

Returns: JSON string representing the updated list of label objects for the page.

Raises: ValueError: If in read-only mode or Confluence client is unavailable.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the label
page_idYesThe ID of the page to update

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the destructiveHint=true annotation, the description discloses two important failure modes: a ValueError when in read-only mode and when the Confluence client is unavailable. It also states the mutation target ('existing page') and what is returned. It does not say whether adding a duplicate label is idempotent or what happens on a missing page, keeping it out of 5 territory.

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

Conciseness3/5

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

The first sentence is well front-loaded and precise, but the Args block duplicates the input schema verbatim, and the Returns line is redundant given an output schema exists. The Raises section is the only part of the boilerplate that earns its place.

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?

The tool is simple (two required params, output schema present), and the description covers errors and return shape adequately. However, for a mutation it omits preconditions such as page existence, duplicate-label behavior, and required permissions, leaving gaps an agent would want to know before calling.

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 100% and both parameters are already documented in the schema, so the description's Args section largely restates 'page_id' and 'name' without adding format hints, constraints, or examples. Baseline 3 is appropriate when the schema carries the semantic load.

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 opens with a specific verb+resource: 'Add label to an existing Confluence page,' which is unambiguous about the mutation performed. It does not explicitly differentiate itself from siblings like confluence_get_labels or confluence_update_page, so it falls short of a 5.

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?

Usage is only implied by the name and verb – there is no explicit statement of when to add a label versus reading labels via confluence_get_labels, nor any prerequisite guidance (e.g., permissions or space/page state). An agent can infer intent, but the definition provides no routing logic or exclusions.

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