Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_tag_object_remove

Remove a tag from a Superset object like a chart or dashboard by specifying the object type, ID, and tag name to untag.

Instructions

Remove a tag from an object

Makes a request to remove a tag association from a specific object.

Args: object_type: Type of the object ('chart', 'dashboard', etc.) object_id: ID of the object to untag tag_name: Name of the tag to remove

Returns: A dictionary with the untagging confirmation message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_typeYes
object_idYes
tag_nameYes

Implementation Reference

  • The handler function implementing the 'superset_tag_object_remove' MCP tool. It sends a DELETE request to the Superset API to remove the specified tag from the given object type and ID. Includes decorators for tool registration, authentication requirement, and error handling.
    @mcp.tool()
    @requires_auth
    @handle_api_errors
    async def superset_tag_object_remove(
        ctx: Context, object_type: str, object_id: int, tag_name: str
    ) -> Dict[str, Any]:
        """
        Remove a tag from an object
    
        Makes a request to remove a tag association from a specific object.
    
        Args:
            object_type: Type of the object ('chart', 'dashboard', etc.)
            object_id: ID of the object to untag
            tag_name: Name of the tag to remove
    
        Returns:
            A dictionary with the untagging confirmation message
        """
        response = await make_api_request(
            ctx,
            "delete",
            f"/api/v1/tag/{object_type}/{object_id}",
            params={"tag_name": tag_name},
        )
    
        if not response.get("error"):
            return {
                "message": f"Tag '{tag_name}' removed from {object_type} {object_id} successfully"
            }
    
        return response
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/aptro/superset-mcp'

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