Skip to main content
Glama

Add a space member (import)

import_add_member
Idempotent

Adds an existing Sophia user to an import-created space with a viewer, editor, or admin role; if already a member, their role remains unchanged.

Instructions

Needs a token with the import:write scope whose owner is a global admin. Nothing is emailed or notified, and no per-row audit events are written. Only works in a space created with import_create_space (otherwise 403 IMPORT_SPACE_NOT_IMPORTED). Add a person to a space with a role (viewer < editor < admin). If they are already a member their role is NOT changed (created=false).

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_key": "<space_key>",
      "user_id": "<user_id>",
      "role": "<role>"
    },
    "name": "import_add_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes
user_idYesSophia user id (uuid) from import_find_users or import_ensure_user.
space_keyYesSpace key, e.g. ENG (uppercase letters and digits; see list_spaces).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: no email or notification, no per-row audit events, a specific 403 code outside import spaces, and no role change for existing members. These details clarify side effects and idempotency semantics that annotations alone do not 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?

The description is dense and every sentence carries useful information. However, the core purpose is delayed until the fourth sentence, behind authorization and side-effect details, which weakens front-loading.

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 mutation tool with no output schema, it covers the key context an agent needs: permissions, side effects, import-space restriction, error behavior, role semantics, and existing-member idempotency. Nothing critical appears missing for correct invocation.

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?

The schema already documents user_id, space_key, and the role enum, but the description adds meaningful semantics: role precedence viewer < editor < admin and the rule that existing members are not updated. It does not add much detail for space_key or user_id beyond what the schema provides.

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 action and resource: adding a person to a space with a role. It also clearly scopes the tool to spaces created via import_create_space, which distinguishes it from general membership operations.

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?

Gives important preconditions: an import:write token owned by a global admin and a space created with import_create_space. It explains the failure mode otherwise, but does not explicitly compare against non-import membership alternatives.

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