Skip to main content
Glama

Add Labels to a Niche

add_niche_labels
Destructive

Add a niche to one or more existing labels by ID; returns counts of added and already-present labels and fails if any ID is invalid.

Instructions

Use this to put a niche in one or more labels (ids from list_labels). Returns added and alreadyPresent. Undo with remove_niche_labels. Only the organization owner or a team admin can change a niche's Spaces and labels; anyone else is refused with a 403 (INSUFFICIENT_ROLE), so tell the user instead of retrying. A change is all or nothing: if any id is unknown, or a Space is one the user has only view rights on, the whole call fails and nothing changes (the error lists the offending ids). Ids already in the wanted state are counted, never errors, so a repeat is safe. Costs nothing. Limited to 2 calls per minute per niche, so put every id in one call.

Input Schema

NameRequiredDescriptionDefault
nicheIdYesThe niche to change. Get one from `list_niches`.
labelIdsYesThe ids of the labels to add the niche to, 1-100, unique. Get them from `list_labels`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.20.1

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses return keys (`added`, `alreadyPresent`), all-or-nothing atomicity with the specific failure triggers (unknown id, view-only Space) and that the error enumerates offending ids, idempotency ('a repeat is safe'), zero cost, and a per-niche rate limit. Annotations only say readOnly=false, destructive=true, openWorld=false; the description supplies the operational reality.

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?

Front-loaded with the action, then constraints; nearly every sentence carries distinct information (undo path, auth, atomicity, idempotency, cost, rate limit). The dense run-on sentence about atomicity and the parenthetical error detail slightly hurt scannability.

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

Completeness5/5

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

For a 2-param mutation with no output schema, the description covers everything an agent needs: permission requirements, failure modes, idempotency, rate limits, and the shape of the response. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both params are already documented, so the baseline is 3; the description adds value by framing `labelIds` as a batch that should be sent in a single call and by stating the per-id failure/counting semantics. It does not restate the 1-100 bound or integer type, which the schema already covers.

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 ('put a niche in one or more labels') and immediately differentiates itself from the inverse sibling by naming `remove_niche_labels` as the undo path. An agent can distinguish this from `add_niche_spaces` or `remove_niche_labels` without opening any 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 explicit when-to-use (adding label membership), the inverse operation for undo, and a concrete batching instruction ('put every id in one call') tied to the 2-calls-per-minute limit. It also names the prerequisite role and tells the agent what to do instead of retrying on a 403.

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