connect_tag
Register a Snowflake tag in ALTR to enable its use in masking policies and tag management.
Instructions
Connect a Snowflake tag to ALTR so it can be used in masking policies.
SNOWFLAKE ONLY — do NOT use for Databricks. There is no Databricks
equivalent of this tool: Databricks tags are not stored as ALTR
objects, they are just raw strings referenced at policy-creation
time. Skip connect_tag entirely for Databricks and pass the raw
tag name string directly to create_policy.
For Snowflake, this call registers an existing Snowflake tag as a
first-class ALTR tag object — it gets a tag_group_id, masking
configuration, etc. The tag must already exist in Snowflake. Once
connected, it appears in get_tags, can be inspected with
get_tag_details*, edited with update_tag, and used in
create_policy.
The tool automatically resolves the friendly name to the actual Snowflake database name for the API call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_name | Yes | Friendly database name as shown in ALTR (the `friendlyDatabaseName` from `get_databases`). | |
| schema_name | Yes | Exact schema name inside the target database. | |
| tag_name | Yes | Tag to associate with this database/schema. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||