MCP Tools Reference

Complete reference for all MCP tools available in the Confluence ADF server.

Overview

The MCP Confluence ADF server exposes 20+ tools through the Model Context Protocol, enabling seamless Confluence content management through Claude Code. All tools follow consistent patterns for input validation, error handling, and response formatting.

Tool Categories

Authentication Tools

  • confluence_oauth_init - Initialize OAuth 2.0 authentication

  • confluence_oauth_complete - Complete OAuth authentication flow

  • confluence_oauth_status - Check authentication status

  • confluence_oauth_clear - Clear stored authentication

Content Management Tools

  • confluence_download_page - Download pages as Markdown

  • confluence_upload_page - Upload Markdown to Confluence

  • create_confluence_content - Create new pages/blog posts

  • read_confluence_content - Read content in ADF format

  • update_confluence_content - Update existing content

  • delete_confluence_content - Delete pages or blog posts

Search and Discovery Tools

  • search_confluence_pages - Search using CQL queries

  • list_confluence_spaces - List accessible spaces

  • get_page_versions - Get page version history

  • get_page_metadata - Get page properties and metadata

Management Tools

  • manage_page_labels - Add/remove page labels

  • manage_page_permissions - Handle page-level permissions

  • get_space_permissions - Check space access rights

Template Tools

  • list_available_templates - Discover YAML templates

  • generate_from_template - Create content from templates

  • validate_template - Validate template structure

  • create_custom_template - Helper for template creation

Authentication Tools

confluence_oauth_init

Initialize OAuth 2.0 authentication flow with Confluence Cloud.

Input Schema:

Example Usage:

Response:

Required OAuth Scopes:

  • read:confluence-content.all

  • write:confluence-content

  • read:content:confluence

  • write:content:confluence

  • read:space:confluence

  • read:page:confluence

  • write:page:confluence

  • search:confluence

  • offline_access

confluence_oauth_complete

Complete the OAuth authentication after user authorization.

Input Schema:

Example Usage:

Response:

confluence_oauth_status

Check current OAuth authentication status.

Input Schema: No parameters required

Example Usage:

Response:

confluence_oauth_clear

Clear stored OAuth tokens and authentication state.

Input Schema: No parameters required

Example Usage:

Response:

Content Management Tools

confluence_download_page

Download a Confluence page as Markdown file for local editing.

Input Schema:

Example Usage:

Response:

File Output Format:

confluence_upload_page

Upload Markdown file to Confluence (create or update).

Input Schema:

Create Mode Example:

Update Mode Example:

Response:

create_confluence_content

Create new Confluence content using ADF format.

Input Schema:

Example Usage:

read_confluence_content

Read content from Confluence pages in ADF format.

Input Schema:

update_confluence_content

Update existing Confluence content.

Input Schema:

delete_confluence_content

Delete Confluence pages or blog posts.

Input Schema:

Search and Discovery Tools

search_confluence_pages

Search for Confluence pages using CQL (Confluence Query Language).

Input Schema:

Example Usage:

Common CQL Patterns:

Response:

list_confluence_spaces

List all Confluence spaces accessible to the user.

Input Schema:

Example Usage:

Response:

get_page_versions

Get version history for a Confluence page.

Input Schema:

Response:

get_page_metadata

Get detailed metadata and properties for a page.

Input Schema:

Template Tools

list_available_templates

List all YAML templates available for content generation.

Input Schema:

Example Usage:

Response:

generate_from_template

Generate content using a YAML template.

Input Schema:

Example Usage:

Response:

validate_template

Validate YAML template structure and syntax.

Input Schema:

Response:

Error Handling

Standard Error Format

All tools return errors in consistent format:

Common Error Codes

Error Code
Description
Recovery Action

AUTH_REQUIRED

Authentication needed

Run OAuth flow

AUTH_EXPIRED

Tokens expired

Refresh or re-authenticate

INVALID_PAGE_ID

Page not found

Verify page ID and permissions

INSUFFICIENT_PERMISSIONS

Missing permissions

Check OAuth scopes

RATE_LIMITED

Too many requests

Wait and retry with backoff

NETWORK_ERROR

Connection issues

Check connectivity

TEMPLATE_NOT_FOUND

Template missing

Verify template name

VALIDATION_ERROR

Invalid input

Check parameter format

Retry Logic

Tools automatically retry transient errors with exponential backoff:

Usage Patterns

Basic Workflow

  1. Authenticate: confluence_oauth_initconfluence_oauth_complete

  2. Discover: list_confluence_spaces, search_confluence_pages

  3. Read: confluence_download_page, read_confluence_content

  4. Edit: Local editing with preferred tools

  5. Write: confluence_upload_page, update_confluence_content

Template Workflow

  1. Discover: list_available_templates

  2. Generate: generate_from_template with user context

  3. Create: confluence_upload_page or create_confluence_content

  4. Iterate: Update templates and regenerate as needed

Batch Operations

Best Practices

Authentication

  • Use OAuth 2.0 for production workflows

  • Check confluence_oauth_status before operations

  • Handle token refresh automatically

Content Management

  • Always use confluence_download_page for editing existing content

  • Preserve metadata in YAML frontmatter

  • Test ADF conversion before bulk operations

Error Handling

  • Implement retry logic for transient errors

  • Validate inputs before API calls

  • Log errors with request IDs for debugging

Performance

  • Use appropriate limit values for searches

  • Cache frequently accessed content

  • Batch related operations when possible

Tool Discovery in Claude

To see all available tools in Claude Code:

This will display a categorized list of all MCP tools with brief descriptions, making it easy to discover and use the appropriate tools for your workflow.

Next Steps

Last updated