Skip to main content
Glama
aashari

Atlassian Confluence MCP Server

by aashari

Confluence DELETE Request

conf_delete

Delete Confluence pages, blog posts, comments, attachments, or labels using API endpoints to remove outdated or unnecessary content from your knowledge base.

Instructions

Delete Confluence resources. Returns TOON format by default.

Output format: TOON (default) or JSON (outputFormat: "json")

Common operations:

  • /wiki/api/v2/pages/{id} - Delete page

  • /wiki/api/v2/blogposts/{id} - Delete blog post

  • /wiki/api/v2/pages/{id}/labels/{label-id} - Remove label

  • /wiki/api/v2/footer-comments/{id} - Delete comment

  • /wiki/api/v2/attachments/{id} - Delete attachment

Note: Most DELETE endpoints return 204 No Content on success.

API reference: https://developer.atlassian.com/cloud/confluence/rest/v2/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe Confluence API endpoint path (without base URL). Must start with "/". Examples: "/wiki/api/v2/spaces", "/wiki/api/v2/pages", "/wiki/api/v2/pages/{id}"
queryParamsNoOptional query parameters as key-value pairs. Examples: {"limit": "25", "cursor": "...", "space-id": "123", "body-format": "storage"}
jqNoJMESPath expression to filter/transform the response. IMPORTANT: Always use this to extract only needed fields and reduce token costs. Examples: "results[*].{id: id, title: title}" (extract specific fields), "results[0]" (first result), "results[*].id" (IDs only). See https://jmespath.org
outputFormatNoOutput format: "toon" (default, 30-60% fewer tokens) or "json". TOON is optimized for LLMs with tabular arrays and minimal syntax.

Implementation Reference

  • The handleDelete controller function that executes the DELETE API request logic for the conf_delete tool. Delegates to shared handleRequest which handles service call, JQ filtering, and output formatting.
    export async function handleDelete(
    	options: GetApiToolArgsType,
    ): Promise<ControllerResponse> {
    	return handleRequest('DELETE', options);
    }
  • Registers the 'conf_delete' MCP tool with the server, providing title, description, input schema (DeleteApiToolArgs), and the 'del' handler function.
    server.registerTool(
    	'conf_delete',
    	{
    		title: 'Confluence DELETE Request',
    		description: CONF_DELETE_DESCRIPTION,
    		inputSchema: DeleteApiToolArgs,
    	},
    	del,
    );
  • Zod schema definition for conf_delete tool inputs, equivalent to GetApiToolArgs (path, optional queryParams/jq/outputFormat, no body).
    /**
     * Schema for conf_delete tool arguments (DELETE requests - no body)
     */
    export const DeleteApiToolArgs = GetApiToolArgs;
    export type DeleteApiToolArgsType = GetApiToolArgsType;
  • createReadHandler factory creates the MCP tool executor for conf_delete (invoked as 'del' = createReadHandler('DELETE', handleDelete)), handling MCP input/output format, logging, truncation, and error formatting before/after calling controller.
    function createReadHandler(
    	methodName: string,
    	handler: (
    		options: GetApiToolArgsType,
    	) => Promise<{ content: string; rawResponsePath?: string | null }>,
    ) {
    	return async (args: Record<string, unknown>) => {
    		const methodLogger = Logger.forContext(
    			'tools/atlassian.api.tool.ts',
    			methodName.toLowerCase(),
    		);
    		methodLogger.debug(`Making ${methodName} request with args:`, args);
    
    		try {
    			const result = await handler(args as GetApiToolArgsType);
    
    			methodLogger.debug(
    				'Successfully retrieved response from controller',
    			);
    
    			return {
    				content: [
    					{
    						type: 'text' as const,
    						text: truncateForAI(
    							result.content,
    							result.rawResponsePath,
    						),
    					},
    				],
    			};
    		} catch (error) {
    			methodLogger.error(`Failed to make ${methodName} request`, error);
    			return formatErrorForMcpTool(error);
    		}
    	};
    }
  • Instantiates the specific 'del' handler for conf_delete by calling createReadHandler with 'DELETE' method name and handleDelete controller.
    const del = createReadHandler('DELETE', handleDelete);
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: default output format (TOON), alternative format (JSON), and that most operations return 204 No Content on success. However, it misses critical details like authentication requirements, rate limits, error handling, or irreversible nature of deletions, which are essential for a destructive 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 description is well-structured with clear sections (output format, common operations, note, API reference) and uses bullet points for readability. It's appropriately sized, though the API reference link could be integrated more seamlessly. Every sentence adds value, such as clarifying return codes and common use cases.

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?

Given the complexity of a DELETE operation with 4 parameters, no annotations, and no output schema, the description is moderately complete. It covers output formats and common operations but lacks details on authentication, error responses, side effects, or how to handle the 204 No Content return, leaving gaps for safe tool invocation.

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 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema: it mentions the default output format and provides API reference context, but doesn't elaborate on parameter usage or interactions beyond what's in the schema descriptions.

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 description clearly states the tool's purpose: 'Delete Confluence resources.' It specifies the HTTP method (DELETE) and the resource domain (Confluence). However, it doesn't explicitly differentiate from sibling tools like conf_patch or conf_put beyond the HTTP method, which is implied but not contrasted.

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

Usage Guidelines3/5

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

The description provides implied usage through examples of common operations (e.g., deleting pages, blog posts), suggesting when to use it for specific resource types. However, it lacks explicit guidance on when to choose this tool over alternatives like conf_patch for updates or conf_post for creation, and doesn't mention prerequisites or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aashari/mcp-server-atlassian-confluence'

If you have feedback or need assistance with the MCP directory API, please join our Discord server