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
| Name | Required | Description | Default |
|---|---|---|---|
| object_type | Yes | ||
| object_id | Yes | ||
| tag_name | Yes |
Implementation Reference
- main.py:1630-1661 (handler)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