Skip to main content
Glama

add_page_labels

Add one or more labels to a Docmost page, normalizing names to lowercase kebab-case. Use it to tag and organize wiki pages for easier filtering and discovery.

Instructions

Add one or more labels to a page. Names are normalized to lowercase kebab-case.

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>",
      "names": "<names>"
    },
    "name": "add_page_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesYes
page_idYesUUID or slugId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The only annotation is destructiveHint=false, so the description must carry behavioral weight. It discloses the useful normalization rule ('lowercase kebab-case'), but says nothing about what happens when a label already exists on the page, whether new label entities are created globally, or what a successful call returns.

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?

Two short sentences, front-loaded with the action and followed by the one non-obvious behavioral rule. No filler, though the second sentence could be folded in or expanded to also cover duplicate handling.

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 simple 2-parameter mutation with no output schema, the definition covers the essentials but leaves meaningful holes: return value, duplicate/existing-label behavior, and permission requirements. Adequate as a minimum viable definition, not complete.

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 50%: page_id already documents 'UUID or slugId', and names has no description in the schema. The description recovers part of that gap by indicating names is a list of labels and how they are normalized, but omits the 1-25 cardinality bound and gives no label syntax or length guidance.

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?

States a specific verb and resource: 'Add one or more labels to a page.' An agent can immediately tell this mutates a page's label set, which implicitly separates it from remove_page_label and list_page_labels, though neither sibling is named.

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?

The description conveys clear context for use: attaching labels to an existing page. However, it gives no explicit when-not guidance, no mention of the paired removal tool, and no prerequisites such as required page permissions or whether labels must already exist.

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