Skip to main content
Glama

Create a space (import)

import_create_space
Idempotent

Create a space from a Confluence space using source_id; importing the same source again returns the existing space without changes.

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. Create a space from a Confluence space. Idempotent by source_id: if it was imported before it returns that space (created=false) and changes nothing. The key must be 2–50 characters, uppercase letter first, then uppercase letters or digits (Confluence keys may need adjusting). Add its people afterwards with import_add_member.

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": {
      "source_id": "<source_id>",
      "key": "<key>",
      "name": "<name>",
      "created_by_user_id": "<created_by_user_id>"
    },
    "name": "import_create_space"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesSpace key, e.g. ENG (uppercase letters and digits; see list_spaces).
nameYes
source_idYesThe id of this space (its Confluence space key) in Confluence. Importing the same source id again changes nothing.
created_atNoISO 8601 date-time, e.g. 2023-05-02T10:11:12.000Z.
descriptionNo
created_by_user_idYesSophia user id (uuid) from import_find_users or import_ensure_user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses auth requirements, absence of emails/notifications, absence of per-row audit events, and exact idempotency behavior including the created=false return. This is strong behavioral context for a mutating import operation.

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 text is dense and every sentence carries operational value. However, it opens with token and side-effect information before stating the core purpose, so it is slightly less front-loaded than ideal.

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

Completeness4/5

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

For a mutation/import tool with no output schema, it covers prerequisites, side effects, idempotency, key formatting, and follow-up membership work. It does not explain optional fields such as created_at or description, but the most decision-critical information is present.

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 moderate, and the description adds meaningful constraints beyond the schema for the key: 2–50 characters, uppercase letter first, then uppercase letters or digits, with a warning that Confluence keys may need adjusting. It also reinforces source_id idempotency, though optional created_at/description parameters are not explained further.

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?

The description states a specific verb and resource: "Create a space from a Confluence space." This clearly distinguishes it from page-oriented siblings such as create_page and from membership importers such as import_add_member.

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?

It gives important prerequisites (import:write token owned by a global admin) and a clear next step ("Add its people afterwards with import_add_member"). It does not explicitly say when not to use this tool or name a direct alternative for space creation, but the intended context is clear.

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