Skip to main content
Glama

Get Labels

confluence_get_labels
Read-only

Retrieves all labels assigned to a specific Confluence page using its page ID, helping identify page categories and metadata.

Instructions

Get labels for a specific Confluence page.

Args: ctx: The FastMCP context. page_id: Confluence page ID.

Returns: JSON string representing a list of label objects.

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": "confluence_get_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesConfluence page ID (numeric ID, can be parsed from URL, e.g. from 'https://example.atlassian.net/wiki/spaces/TEAM/pages/123456789/Page+Title' -> '123456789')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

readOnlyHint=true already declares the safety profile, and an output schema exists, so the 'Returns: JSON string representing a list of label objects' line largely restates structured data. The description adds no behavioral context beyond annotations — no note on empty-label results, pagination, or permission requirements.

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?

The one-line purpose is front-loaded and the whole definition is short. The Args/Returns docstring boilerplate, including the irrelevant 'ctx' entry, is filler an agent gains nothing from.

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 single-parameter read tool with full schema coverage, readOnly annotations, and an output schema, the description says enough to call it correctly. Only minor gaps remain, such as behavior on pages with no labels.

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 single parameter's schema description already explains the numeric ID and URL parsing. The description's 'Args: page_id: Confluence page ID' repeats the schema verbatim rather than adding meaning, so the baseline of 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?

The description states a specific verb and resource ('Get labels for a specific Confluence page'), so an agent can tell what it does immediately. It stops short of distinguishing itself from the sibling 'confluence_add_label', but the read-vs-write distinction is implied by 'Get'.

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 phrase 'for a specific Confluence page' — there is no explicit when-to-use, no exclusions, and no pointer to alternatives such as add_label for retrieving-then-modifying flows. Adequate but with a clear guidance gap.

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