Skip to main content
Glama

Add a Niche to Spaces

add_niche_spaces
Destructive

Assign a niche to one or more Spaces to control who can view it. Use this to update access in a single all-or-nothing call, with existing assignments safely ignored.

Instructions

Use this to put a niche in one or more Spaces (ids from list_spaces). A Space controls who can see the niche, so adding or removing one changes access. Returns added and alreadyPresent. Undo with remove_niche_spaces. 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`.
spaceIdsYesThe ids of the Spaces to add the niche to, 1-100, unique. Get them from `list_spaces`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.20.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that Spaces control visibility, that authorization failures return 403 INSUFFICIENT_ROLE, that the operation is transactional ('all or nothing'), idempotent on repeats, and throttled to 2 calls/minute per niche. This is meaningful context annotations cannot convey.

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-loads purpose, then returns, then undo, then failure/auth behavior, then rate limit – a logical ordering with no filler. It is dense, though: the authorization and transactional semantics are packed into long compound sentences that could be split for scanability.

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?

With no output schema, the description still names the return fields (`added`, `alreadyPresent`) and covers failure modes, auth requirements, idempotency, and limits for a destructive 2-parameter mutation. An agent has everything needed to call it correctly.

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 both parameters document their source tools, so the description need not restate them. It adds only the operational hint to put every id in one call, which is usage guidance rather than parameter meaning, so the baseline 3 applies.

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 Spaces') and immediately names the inverse sibling (`remove_niche_spaces`), so an agent can distinguish it from the add/remove label siblings without opening a 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?

Explicit about when to use it, how to undo it, and how to behave on failure ('tell the user instead of retrying'), plus a rate-limit directive to batch all ids into one call. Conditions that select alternatives (remove_niche_spaces) are stated directly.

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