Confluence Automation via Rube MCP
Automate Confluence operations including page creation and updates, content search with CQL, space management, label tagging, and page hierarchy navigation through Composio's Confluence toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Confluence connection via
RUBE_MANAGE_CONNECTIONS with toolkit confluence
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit confluence
- If connection is not ACTIVE, follow the returned auth link to complete Confluence OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Update Pages
When to use: User wants to create new documentation or update existing Confluence pages
Tool sequence:
CONFLUENCE_GET_SPACES - List spaces to find the target space ID [Prerequisite]
CONFLUENCE_SEARCH_CONTENT - Find existing page to avoid duplicates or locate parent [Optional]
CONFLUENCE_GET_PAGE_BY_ID - Get current page content and version number before updating [Prerequisite for updates]
CONFLUENCE_CREATE_PAGE - Create a new page in a space [Required for creation]
CONFLUENCE_UPDATE_PAGE - Update an existing page with new content and incremented version [Required for updates]
CONFLUENCE_ADD_CONTENT_LABEL - Tag the page with labels after creation [Optional]
Key parameters:
spaceId: Space ID or key (e.g., "DOCS", "12345678") -- space keys are auto-converted to IDs
title: Page title (must be unique within a space)
parentId: Parent page ID for creating child pages; omit to place under space homepage
body.storage.value: HTML/XHTML content in Confluence storage format
body.storage.representation: Must be "storage" for create operations
version.number: For updates, must be current version + 1
version.message: Optional change description
Pitfalls:
- Confluence enforces unique page titles per space; creating a page with a duplicate title will fail
UPDATE_PAGE requires version.number set to current version + 1; always fetch current version first with GET_PAGE_BY_ID
- Content must be in Confluence storage format (XHTML), not plain text or Markdown
CREATE_PAGE uses body.storage.value while UPDATE_PAGE uses body.value with body.representation
GET_PAGE_BY_ID requires a numeric long ID, not a UUID or string
2. Search Content
When to use: User wants to find pages, blog posts, or content across Confluence
Tool sequence:
CONFLUENCE_SEARCH_CONTENT - Keyword search with intelligent relevance ranking [Required]
CONFLUENCE_CQL_SEARCH - Advanced search using Confluence Query Language [Alternative]
CONFLUENCE_GET_PAGE_BY_ID - Hydrate full content for selected search results [Optional]
CONFLUENCE_GET_PAGES - Browse pages sorted by date when search relevance is weak [Fallback]
Key parameters for SEARCH_CONTENT:
query: Search text matched against page titles with intelligent ranking
spaceKey: Limit search to a specific space
limit: Max results (default 25, max 250)
start: Pagination offset (0-based)
Key parameters for CQL_SEARCH:
cql: CQL query string (e.g., text ~ "API docs" AND space = DOCS AND type = page)
expand: Comma-separated properties (e.g., content.space, content.body.storage)
excerpt: highlight, indexed, or none
limit: Max results (max 250; reduced to 25-50 when using body expansions)
CQL operators and fields:
- Fields:
text, title, label, space, type, creator, lastModified, created, ancestor
- Operators:
=, !=, ~ (contains), !~, >, <, >=, <=, IN, NOT IN
- Functions:
currentUser(), now("-7d"), now("-30d")
- Example:
title ~ "meeting" AND lastModified > now("-7d") ORDER BY lastModified DESC
Pitfalls:
CONFLUENCE_SEARCH_CONTENT fetches up to 300 pages and applies client-side filtering -- not a true full-text search
CONFLUENCE_CQL_SEARCH is the real full-text search; use text ~ "term" for content body search
- HTTP 429 rate limits can occur; throttle to ~2 requests/second with backoff
- Using body expansions in CQL_SEARCH may reduce max results to 25-50
- Search indexing is not immediate; recently created pages may not appear
3. Manage Spaces
When to use: User wants to list, create, or inspect Confluence spaces
Tool sequence:
CONFLUENCE_GET_SPACES - List all spaces with optional filtering [Required]
CONFLUENCE_GET_SPACE_BY_ID - Get detailed metadata for a specific space [Optional]
CONFLUENCE_CREATE_SPACE - Create a new space with key and name [Optional]
- `CONFLUENCE_GET_SPACE_PROP
1---2name: confluence-automation3description: Automate Confluence page creation, content search, space management, labels, and hierarchy navigation via Rube MCP (Composio). Always search tools first for current schemas. 4category: Document Processing5source: antigravity6tags: [markdown, api, mcp, ai, automation, workflow, document, presentation, rag, cro]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/confluence-automation8metadata:9 source: https://skillmd.com/skills/sickn33/confluence-automation10---111213# Confluence Automation via Rube MCP1415Automate Confluence operations including page creation and updates, content search with CQL, space management, label tagging, and page hierarchy navigation through Composio's Confluence toolkit.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active Confluence connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `confluence`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2223## Setup2425**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.26271. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds282. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `confluence`293. If connection is not ACTIVE, follow the returned auth link to complete Confluence OAuth304. Confirm connection status shows ACTIVE before running any workflows3132## Core Workflows3334### 1. Create and Update Pages3536**When to use**: User wants to create new documentation or update existing Confluence pages3738**Tool sequence**:391. `CONFLUENCE_GET_SPACES` - List spaces to find the target space ID [Prerequisite]402. `CONFLUENCE_SEARCH_CONTENT` - Find existing page to avoid duplicates or locate parent [Optional]413. `CONFLUENCE_GET_PAGE_BY_ID` - Get current page content and version number before updating [Prerequisite for updates]424. `CONFLUENCE_CREATE_PAGE` - Create a new page in a space [Required for creation]435. `CONFLUENCE_UPDATE_PAGE` - Update an existing page with new content and incremented version [Required for updates]446. `CONFLUENCE_ADD_CONTENT_LABEL` - Tag the page with labels after creation [Optional]4546**Key parameters**:47- `spaceId`: Space ID or key (e.g., `"DOCS"`, `"12345678"`) -- space keys are auto-converted to IDs48- `title`: Page title (must be unique within a space)49- `parentId`: Parent page ID for creating child pages; omit to place under space homepage50- `body.storage.value`: HTML/XHTML content in Confluence storage format51- `body.storage.representation`: Must be `"storage"` for create operations52- `version.number`: For updates, must be current version + 153- `version.message`: Optional change description5455**Pitfalls**:56- Confluence enforces unique page titles per space; creating a page with a duplicate title will fail57- `UPDATE_PAGE` requires `version.number` set to current version + 1; always fetch current version first with `GET_PAGE_BY_ID`58- Content must be in Confluence storage format (XHTML), not plain text or Markdown59- `CREATE_PAGE` uses `body.storage.value` while `UPDATE_PAGE` uses `body.value` with `body.representation`60- `GET_PAGE_BY_ID` requires a numeric long ID, not a UUID or string6162### 2. Search Content6364**When to use**: User wants to find pages, blog posts, or content across Confluence6566**Tool sequence**:671. `CONFLUENCE_SEARCH_CONTENT` - Keyword search with intelligent relevance ranking [Required]682. `CONFLUENCE_CQL_SEARCH` - Advanced search using Confluence Query Language [Alternative]693. `CONFLUENCE_GET_PAGE_BY_ID` - Hydrate full content for selected search results [Optional]704. `CONFLUENCE_GET_PAGES` - Browse pages sorted by date when search relevance is weak [Fallback]7172**Key parameters for SEARCH_CONTENT**:73- `query`: Search text matched against page titles with intelligent ranking74- `spaceKey`: Limit search to a specific space75- `limit`: Max results (default 25, max 250)76- `start`: Pagination offset (0-based)7778**Key parameters for CQL_SEARCH**:79- `cql`: CQL query string (e.g., `text ~ "API docs" AND space = DOCS AND type = page`)80- `expand`: Comma-separated properties (e.g., `content.space`, `content.body.storage`)81- `excerpt`: `highlight`, `indexed`, or `none`82- `limit`: Max results (max 250; reduced to 25-50 when using body expansions)8384**CQL operators and fields**:85- Fields: `text`, `title`, `label`, `space`, `type`, `creator`, `lastModified`, `created`, `ancestor`86- Operators: `=`, `!=`, `~` (contains), `!~`, `>`, `<`, `>=`, `<=`, `IN`, `NOT IN`87- Functions: `currentUser()`, `now("-7d")`, `now("-30d")`88- Example: `title ~ "meeting" AND lastModified > now("-7d") ORDER BY lastModified DESC`8990**Pitfalls**:91- `CONFLUENCE_SEARCH_CONTENT` fetches up to 300 pages and applies client-side filtering -- not a true full-text search92- `CONFLUENCE_CQL_SEARCH` is the real full-text search; use `text ~ "term"` for content body search93- HTTP 429 rate limits can occur; throttle to ~2 requests/second with backoff94- Using body expansions in CQL_SEARCH may reduce max results to 25-5095- Search indexing is not immediate; recently created pages may not appear9697### 3. Manage Spaces9899**When to use**: User wants to list, create, or inspect Confluence spaces100101**Tool sequence**:1021. `CONFLUENCE_GET_SPACES` - List all spaces with optional filtering [Required]1032. `CONFLUENCE_GET_SPACE_BY_ID` - Get detailed metadata for a specific space [Optional]1043. `CONFLUENCE_CREATE_SPACE` - Create a new space with key and name [Optional]1054. `CONFLUENCE_GET_SPACE_PROP