Skip to main content
Glama

add_space_members

Assign users or groups to a Docmost space with an admin, writer, or reader role to control access and collaboration.

Instructions

Add users and/or groups to a space with a role.

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": {
      "space_id": "<space_id>",
      "role": "<role>"
    },
    "name": "add_space_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes
space_idYesUUID or slug
user_idsNo
group_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.1
    • addedInput schema / properties / group_ids / items / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / user_ids / items / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. Changed1 schema field changedv1.1.0
    • changedInput schema / properties / space_id / description
      Previous value: -"Space UUID or slug"New value: +"UUID or slug"
  3. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/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 the behavioral burden and it largely does not. It never says whether adding an existing member is a no-op, a role overwrite, or an error; whether group grants are inherited; what permissions the caller needs; or whether the role applies uniformly to every user and group supplied.

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?

A single short clause, front-loaded with the verb and resource, with no filler or repetition. The only nit is the 'and/or' hedge, which is compact but slightly imprecise.

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 four-parameter mutation with no output schema and a minimal annotation set, the description leaves out idempotency behavior, failure modes, and permission requirements. It is minimally adequate to select the tool but thin for invoking it correctly on edge cases.

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 only 25% — only space_id is documented ('UUID or slug'), while user_ids, group_ids, and role rely on type/enum alone. The phrase 'users and/or groups' does add real meaning the schema does not: both arrays may be supplied together, and each is individually optional. That is useful but does not compensate for the undocumented array item constraints or role application scope.

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 sentence states a specific verb ('Add'), a specific resource ('users and/or groups'), the target container ('a space'), and the accompanying attribute ('with a role'). This is enough to distinguish it from siblings like remove_space_member and update_space_member_role, though it never names those alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no exclusions. Nothing tells the agent how this differs from update_space_member_role when the user already has a role, or that changing an existing member's role is a different operation.

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