Skip to main content
Glama

mcp-confluent

Official
by confluentinc

delete-tag

Remove a tag definition from Confluent Cloud's Schema Registry by specifying the tag name using this MCP server tool.

Instructions

Delete a tag definition from Confluent Cloud.

Input Schema

NameRequiredDescriptionDefault
baseUrlNoThe base URL of the Schema Registry REST API.
tagNameYesName of the tag to delete

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "baseUrl": { "default": "", "description": "The base URL of the Schema Registry REST API.", "format": "uri", "type": "string" }, "tagName": { "description": "Name of the tag to delete", "minLength": 1, "type": "string" } }, "required": [ "tagName" ], "type": "object" }

Implementation Reference

  • The handle method implements the core logic to delete a tag definition from Confluent Cloud Schema Registry using the REST API DELETE request.
    async handle( clientManager: ClientManager, toolArguments: Record<string, unknown>, ): Promise<CallToolResult> { const { tagName, baseUrl } = deleteTagArguments.parse(toolArguments); if (baseUrl !== undefined && baseUrl !== "") { clientManager.setConfluentCloudSchemaRegistryEndpoint(baseUrl); } const pathBasedClient = wrapAsPathBasedClient( clientManager.getConfluentCloudSchemaRegistryRestClient(), ); const { response, error } = await pathBasedClient[ "/catalog/v1/types/tagdefs/{tagName}" ].DELETE({ params: { path: { tagName: tagName, }, }, }); if (error) { return this.createResponse( `Failed to delete tag: ${JSON.stringify(error)}`, true, ); } return this.createResponse( `Successfully deleted tag: ${tagName}. Status: ${response?.status}`, ); }
  • Zod input schema for the delete-tag tool defining parameters: optional baseUrl (Schema Registry endpoint) and required tagName.
    const deleteTagArguments = z.object({ baseUrl: z .string() .describe("The base URL of the Schema Registry REST API.") .url() .default(() => env.SCHEMA_REGISTRY_ENDPOINT ?? "") .optional(), tagName: z.string().describe("Name of the tag to delete").nonempty(), });
  • Registers the DeleteTagHandler in the ToolFactory's static handlers Map using the ToolName.DELETE_TAG key.
    [ToolName.DELETE_TAG, new DeleteTagHandler()],
  • Defines the tool name constant 'delete-tag' in the ToolName enum, used for registration and identification.
    DELETE_TAG = "delete-tag",

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/confluentinc/mcp-confluent'

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