altr-mcp-server

v0.10.0
io.github.altrsoftware/altr-mcp-server Checked 4 hours ago Published 18 days ago

MCP server for ALTR data security: databases, tags, policies, classification, access, audits

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_policies

List masking policies configured in your ALTR organization. Returns each policy's tag, policy ID, and current rule count. Use the policy_id from results when calling `add_rules`, `get_rules`, or `delete_policy`. Masking levels reference: - 10000: No mask (show raw value) - 10001: Full mask (replace with * matching data length) - 10002: Email mask (show domain only) - 10003: Show last four - 10004: Constant mask (1 for numbers, * for strings, 1/1/2000 for dates) - 10005: Null (replace with NULL) - 10006: Full mask hash (replace with hashed value) - 10007: Email hash (show domain, hash local…

ParameterTypeDescription
policy_typeFilter by policy type. Values: TAG, COLUMN, PUSHDOWN, IMPERSONATION, GRANT, ROW, OLTP. If omitted, queries all types and merges results.

get_rules

View all masking rules configured for a specific policy. Shows which roles have what masking levels for which tag values. Masking levels reference: - 10000: No mask (show raw value) - 10001: Full mask (replace with * matching data length) - 10002: Email mask (show domain only) - 10003: Show last four - 10004: Constant mask (1 for numbers, * for strings, 1/1/2000 for dates) - 10005: Null (replace with NULL) - 10006: Full mask hash (replace with hashed value) - 10007: Email hash (show domain, hash local part) - 10008: Show last four hash (hash prefix, show last 4) - 10009: Constant date (rep…

ParameterTypeDescription
policy_id *stringRaw policy ID as returned by `get_policies`. Do not URL-encode.

get_supported_masking_types

List the masking levels a policy type accepts. Check this before choosing a masking_policy for `add_rules` or `update_rule`: a tag policy accepts fewer levels than a Snowflake pushdown policy, and a column policy's levels depend on the column. Level 10010 is left out: it is a system outcome, not a rule choice.

ParameterTypeDescription
policy_type *string"tag" (TAG# policies), "tag_pushdown" (PUSHDOWN# policies), or "column".
database_typeOptional "snowflake" or "databricks". Pushdown policies accept fewer levels on Databricks.
field_idColumn ID. Required for policy_type "column".

create_policy

Create an empty masking policy for a specific tag. Creates a masking policy that controls how data tagged with the specified tag is masked. Until you add rules with `add_rules`, all users will see NULL for tagged columns. Each tag can only have one policy — check `get_policies` first to avoid conflicts. After creating a policy, use `add_rules` to define masking behavior. PLATFORM DIFFERENCES — TAG HANDLING: Snowflake and Databricks tags are FUNDAMENTALLY DIFFERENT in ALTR: - A Snowflake tag is a connected ALTR object — it has been registered with `connect_tag`, owns a `tag_group_…

ParameterTypeDescription
tag *stringTag name. For Snowflake: UPPERCASE connected tag from `get_tags`. For Databricks: any raw tag name string — no prior connection required.
database_idsREQUIRED for Databricks. Must be a list of ALTR database IDs for the target Databricks metastore(s) (from `get_databases`). Always pass a list — wrap a single ID in a list (e.g., [2167]); do NOT pas…
policy_typeMust be "PUSHDOWN" for Databricks. Omit for Snowflake (defaults to "TAG").

add_rules

Add one or more masking rules to a policy in a single batch request. Each rule specifies: which role, which tag value, and what masking level they should see. A policy must already exist for the tag (see `create_policy`). Accepts up to 99 rules per batch; if more than 99 are provided they are automatically split into multiple batches. Each rule in the list must be a dict with these keys: - masking_policy: int — masking level (10000-10009) - role: str — target user group / role name from `get_roles` - tag_value: str — exact tag value this rule applies to (case-sensitive)

ParameterTypeDescription
policy_id *stringRaw policy ID from `get_policies`. Do not URL-encode.
rules *List of rule dicts, or a JSON string encoding such a list. Each dict must have 'masking_policy', 'role', and 'tag_value'.

delete_policy

Delete a masking policy and all its rules. Use with caution - this removes all masking rules associated with the policy. Consider reviewing rules with `get_rules` first to understand what will be deleted.

ParameterTypeDescription
policy_id *stringRaw policy ID from `get_policies`. Do not URL-encode.

update_rule

Update an existing masking rule's properties without deleting and recreating it. Only the fields you provide will be updated; omitted fields remain unchanged. Use `get_rules` first to find the rule_id and see current values. Masking levels reference: - 10000: No mask (show raw value) - 10001: Full mask (replace with * matching data length) - 10002: Email mask (show domain only) - 10003: Show last four - 10004: Constant mask (1 for numbers, * for strings, 1/1/2000 for dates) - 10005: Null (replace with NULL) - 10006: Full mask hash (replace with hashed value) - 10007: Email hash (show domai…

ParameterTypeDescription
policy_id *stringRaw policy ID from `get_policies`. Do not URL-encode.
rule_id *stringRaw rule ID from `get_rules`. Do not URL-encode.
access_rate_thresholdsList of access rate threshold objects, each with 'access_rate_unit' (str), 'access_rate_limit' (int), and 'action' (str).
masking_policyNew masking level (10000-10009).
roleNew role/user group name.
tag_valueNew tag value for the rule.
time_window_thresholdsList of time window threshold objects, each with 'day' (list of str), 'start_time' (dict with hour/minute), 'end_time' (dict with hour/minute), 'timezone' (str), and 'action' (str).

delete_rule

Remove a specific masking rule from a policy. Allows fine-grained removal of individual rules without deleting the entire policy. Use `get_rules` first to identify the rule_id you want to remove.

ParameterTypeDescription
policy_id *stringRaw policy ID containing the rule. Do not URL-encode.
rule_id *stringRaw rule ID to delete. Do not URL-encode.

get_roles

List all ALTR roles (user groups) available in your organization. Role names are used in `add_rules` to define which user groups see what level of data masking.

get_tags

List all Snowflake tags connected to ALTR (available for use in policies). SNOWFLAKE ONLY. Databricks tags are NOT first-class objects in ALTR — they are raw string references used at policy-creation time only — so they will never appear in this list. Do not call `get_tags` to discover Databricks tags; pass the raw tag name directly to `create_policy` instead. For Snowflake, only tags that have been connected to ALTR via `connect_tag` appear here. Tags created in Snowflake but never connected will not be listed and cannot be used in a policy.

disconnect_tag

Disconnect a connected Snowflake tag from ALTR. SNOWFLAKE ONLY. Databricks tags are not ALTR objects (they are raw strings referenced at policy-creation time), so there is nothing to disconnect here for Databricks — to stop masking a Databricks column tag, remove the policy with `delete_policy` instead. All policies on the tag must be removed first, or the disconnect will fail.

ParameterTypeDescription
tag_group_id *stringTag group identifier to disconnect.

get_tag_values

List all allowed values configured for a specific tag. SNOWFLAKE ONLY. Databricks tags are raw strings, not ALTR-managed objects, so they have no stored allowed-values list here — use whatever tag values exist in the Databricks catalog directly. These values are referenced when creating masking rules with `add_rules`.

ParameterTypeDescription
tag_name *stringTag name (from `get_tags`) whose values you want to inspect.

get_tag_details_by_group_id

Get full details for a specific connected tag by its group ID. SNOWFLAKE ONLY. `tag_group_id` only exists for connected Snowflake tags; Databricks tags are raw strings and have no group ID. Returns masking configuration, status, database info, and timestamps. Use `get_tags` first to find the tag_group_id.

ParameterTypeDescription
tag_group_id *stringTag group identifier from `get_tags`.

get_tag_details

Get full details for a specific tag masking by database, tag, and schema. SNOWFLAKE ONLY. Databricks tags are not stored as ALTR objects, so they have no detail record to fetch. Returns masking configuration, status, and timestamps. Use when you know the exact database/schema/tag but not the tag_group_id.

ParameterTypeDescription
database_id *integerNumeric ALTR database ID (from `get_database_id`).
database_name *stringDatabase name in ALTR.
schema_name *stringSchema name containing the tag.
tag_name *stringTag name.
protection_typeOptional filter — "governed", "governed-pushdown", "tokenized-vault", or "encryption-fpe".

update_tag

Update an existing tag connection's masking configuration. SNOWFLAKE ONLY. Databricks tags are not ALTR-managed objects, so there is no Databricks tag configuration to update — change Databricks masking by editing the policy or its rules instead. Use `get_tags` to find the `tag_group_id` of the tag you want to update. To connect a new tag, use `connect_tag` instead.

ParameterTypeDescription
database_id *integerNumeric ALTR database ID (from `get_database_id`).
friendly_name *stringDisplay name for the tag in ALTR.
tag_group_id *stringTag group identifier from `get_tags`.
custom_role_provider_enabledbooleanEnable custom role provider UDF.
encryption_fpe_optionsOptional FPE config dict with 'alphabet' ("numeric"|"alphabetic"|"alphanumeric"), 'is_padded' (bool), 'key_name' (str), and 'tweak_name' (str).
mask_data_type_listOptional list of data types to mask.
protection_typestringMasking type — "governed", "governed-pushdown", "tokenized-vault", or "encryption-fpe".

disconnect_tag_by_details

Disconnect a tag from ALTR by database, schema, and tag name. SNOWFLAKE ONLY. Databricks tags are not ALTR objects; to stop masking a Databricks column, delete the policy with `delete_policy` instead. Alternative to `disconnect_tag` when you don't have the tag_group_id but know the database/schema/tag details.

ParameterTypeDescription
database_id *integerNumeric ALTR database ID.
database_name *stringDatabase name in ALTR.
schema_name *stringSchema name containing the tag.
tag_name *stringTag name to disconnect.
ignore_errorsbooleanIf true, force-forget the tag even if cleanup fails.

connect_tag

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 appear…

ParameterTypeDescription
database_name *stringFriendly database name as shown in ALTR (the `friendlyDatabaseName` from `get_databases`).
schema_name *stringExact schema name inside the target database.
tag_name *stringTag to associate with this database/schema.

get_classifiers

List all available data classifiers in ALTR. Classifiers automatically detect sensitive data types like SSNs, emails, and phone numbers. Includes both ALTR-managed and custom classifiers.

ParameterTypeDescription
exclude_collectionLeave out classifiers already in this collection, e.g. to find ones to add to it.
order_by"name" or "collection_count" (how many collections use each classifier).
prefixOnly classifiers whose names start with this, e.g. "email" matches email_address and email_domain.
sort_order"asc" or "desc".

get_classifier

Get details for a single classifier by name.

ParameterTypeDescription
classifier_name *stringExact classifier name as returned by `get_classifiers`.

create_classifier

Create a custom data classifier defined by a compound ruleset. All detection logic lives in `compound_ruleset`: one or more conditions (ROW_DATA regex, METADATA column-name matching, AMAZON_COMPREHEND entity detection, DATA_LENGTH, CONTENT_TYPE, GDLP info-types and more) combined with AND/OR. A plain regex classifier is a ruleset with a single ROW_DATA condition carrying the pattern and its minimum_threshold. Always set minimum_threshold on ROW_DATA leaves. Sampling is set on the job, not here. Compound ruleset structure: ```json { "operator": "AND", "conditions": [ { "target":…

ParameterTypeDescription
classifier_name *stringUnique name for the classifier.
compound_ruleset *objectNested AND/OR condition tree, as above.
descriptionHuman-readable explanation of what it detects.
tagsOptional key:value tags describing the classifier, e.g. ["type:ssn"]. `list_classifier_tags` shows the tags already in use.

update_classifier

Update an existing custom classifier. Only provided fields are changed. Passing `compound_ruleset` also removes any legacy top-level pattern, so the ruleset alone decides matches. To keep a legacy regex, include it as a ROW_DATA condition with its own minimum_threshold.

ParameterTypeDescription
classifier_name *stringExact classifier name to update.
compound_rulesetUpdated compound ruleset. See `create_classifier` for structure and valid condition targets.
descriptionUpdated description.
tagsReplaces the classifier's key:value tags. Pass [] to clear them.

delete_classifier

Remove a custom classifier you created. Cannot delete ALTR managed classifiers. Only use for classifiers you created with `create_classifier`.

ParameterTypeDescription
classifier_name *stringExact classifier name as returned by `get_classifiers`.

get_collections

List classifier collections (groups of classifiers used for classification jobs). Every classification job runs a collection (`create_snowflake_job`, `create_databricks_job`, `create_oltp_job`, `create_file_classification_job`). Check for existing collections (e.g., "ALTR Managed") before creating new ones.

ParameterTypeDescription
sort_order"asc" or "desc" by collection name.

get_collection

Get details for a single collection by name.

ParameterTypeDescription
collection_name *stringExact collection name as returned by `get_collections`.

create_collection

Create a classifier collection to use for automated data discovery. Collections group classifiers together for classification jobs. After creating a collection, you can run a classification job to automatically scan your database columns and identify which contain sensitive data patterns. Typical workflow: Create a collection (or use existing "ALTR Managed"), then use it in a create-job tool such as `create_snowflake_job` to scan your database. Review results with `get_classification_report` to see which columns were detected.

ParameterTypeDescription
collection_name *stringUnique name for the collection.
descriptionstringOptional human-readable description.

update_collection

Update a collection's description.

ParameterTypeDescription
collection_name *stringExact collection name to update.
description *stringUpdated description.

delete_collection

Delete a classifier collection. Cannot delete collections that are in use by active or recent jobs. Only delete collections you created that are no longer needed.

ParameterTypeDescription
collection_name *stringExact collection name as returned by `get_collections`.

get_collection_classifiers

List classifiers that belong to a collection.

ParameterTypeDescription
collection_name *stringCollection name to inspect.
contiguous_idPagination token.
limitMax items to return.
prefixOnly classifiers whose names start with this.
sort_order"asc" or "desc" by classifier name.

add_classifiers_to_collection

Add classifiers to an existing collection. All classifiers must already exist and not already be in the collection. ALTR managed collections cannot have classifiers appended.

ParameterTypeDescription
classifier_names *Classifier name(s) to add. Pass a single string or a list of strings.
collection_name *stringCollection to add classifiers to.

remove_classifiers_from_collection

Remove classifiers from a collection.

ParameterTypeDescription
classifier_names *Classifier name(s) to remove. Pass a single string or a list of strings.
collection_name *stringCollection to remove classifiers from.

add_classifier_to_collections

Add one classifier to several collections in a single call. The reverse of `add_classifiers_to_collection`. All collections must exist and not already contain the classifier. ALTR-managed collections cannot be added to.

ParameterTypeDescription
classifier_name *stringClassifier to add.
collection_names *Collection name(s) to add it to. Pass a single string or a list of strings.

remove_classifier_from_collections

Remove one classifier from several collections in a single call. The classifier must currently be in every collection named. Collections whose names start with "ALTR" cannot have classifiers removed.

ParameterTypeDescription
classifier_name *stringClassifier to remove.
collection_names *Collection name(s) to remove it from. Pass a single string or a list of strings.

list_classifier_tags

List the key:value tags in use across the org's classifiers. Covers tags on classifiers and on their ruleset conditions, with the number of classifiers using each and where it appears. Use it to reuse existing tags in `create_classifier` and `update_classifier`. These are classifier tags, not the Snowflake tags `get_tags` lists.

ParameterTypeDescription
contiguous_idPagination token from a prior call.
keyOnly tags with this exact key (the part before ':').
limitMax tags per page (default 100, max 500).
prefixOnly tags whose full key:value string starts with this.

import_altr_managed_classifiers

Import ALTR-managed classifiers and create or update their collection. ALTR maintains curated classifiers for common sensitive data types (SSN, credit cards, email, phone numbers, etc.), grouped into managed collections. Importing is idempotent and syncs the latest versions. Use `get_altr_managed_timestamp` first to see whether an update is available.

ParameterTypeDescription
collectionManaged collection slug: "regex" (the default, the "ALTR Managed" collection), "gdlp", "aws-comprehend", "snowflake-native" or "stoplight", or "all" to import every managed collection.

get_altr_managed_timestamp

Check whether a newer version of ALTR-managed classifiers is available. Returns the latest available version timestamp alongside the version currently installed in your org. If they differ, call `import_altr_managed_classifiers` for that collection to update.

ParameterTypeDescription
collectionManaged collection slug: "regex" (the default), "gdlp", "aws-comprehend", "snowflake-native" or "stoplight", or "all" for every managed collection in one call.

list_altr_managed_classifiers

List available ALTR-managed (prebuilt) classifiers. Shows the canonical set maintained by ALTR, not what's currently in your org. Call `import_altr_managed_classifiers` to sync them.

ParameterTypeDescription
collectionManaged collection slug: "regex" (the default), "gdlp", "aws-comprehend", "snowflake-native" or "stoplight".
contiguous_idPagination token.
limitMax items to return.

get_jobs

Check the status of classification jobs you've run. Classification jobs run asynchronously and can take 10-30+ minutes to complete depending on your database size. Use this to check if a job has finished after waiting an appropriate amount of time. Once a job shows status COMPLETED, you can fetch its detailed report with `get_classification_report` or browse results with `get_job_findings`. If status is still RUNNING, wait longer before checking again. A review-gated job stops at AWAITING_REVIEW until its findings are decided and `confirm_job_report` runs. Typical workflow: After creating a…

ParameterTypeDescription
agent_idRestrict to jobs run by a specific CLASSIFIER agent UUID.
classification_typeOptional classification type code. 1=ALTR Hosted (Snowflake, Databricks), 5=In-Warehouse Snowflake or agent. Legacy codes, which the job tools never create: 1 without a collection=Google DLP (filterin…
contiguous_idPagination token from a prior `get_jobs` call.
database_idRestrict to a specific database (numeric ID from `get_databases` / `get_database_id`).
job_typeFilter by job type (FULL or INCREMENTAL).
limitMax jobs to return (default 50, max 50).
orderSort order by start time, `asc` or `desc` (default `desc`).
statusFilter by job status (e.g. RUNNING, PAUSED, COMPLETED, CANCELLED, FAILED).

get_active_jobs

List all currently active (non-terminal) classification jobs. Returns jobs that have not finished: created, running, paused or resumed, cancelling, building their report, or waiting for review. Useful for checking what's in flight without filtering through all historical jobs.

ParameterTypeDescription
agent_idFilter by agent UUID.
classification_typeClassification type code. 1=ALTR Hosted (Snowflake, Databricks), 5=In-Warehouse Snowflake or agent. Legacy codes, which the job tools never create: 1 without a collection=Google DLP (filtering on 1 al…
contiguous_idPagination token.
database_idFilter by database ID.
job_typeFULL or INCREMENTAL.
limitMax jobs to return.
order"desc" (newest first, the default) or "asc".
statusOne active status: CREATED, RESUMED, PAUSED, RUNNING, PENDING_CANCEL, UPLOADING_REPORT, PROCESSING_REPORT, PROCESSING_FINDINGS or AWAITING_REVIEW.

get_job

Get details for a single classification job by ID.

ParameterTypeDescription
job_id *stringJob identifier returned from a create-job tool or listed by `get_jobs`.

get_job_summary

Get an inline per-classifier classification summary for a completed job. Returns classification counts grouped by classifier — faster than `get_classification_report` because it doesn't require a presigned S3 round-trip. Use this to get a quick count of detected columns before drilling into `get_job_findings`.

ParameterTypeDescription
job_id *stringJob identifier of a COMPLETED job.

list_report_groups

List classification reports grouped by collection, method and datasource, newest activity first. Each group carries its latest run; page older runs with `list_report_group_runs`. Keep filters the same across pages, and page until contiguous_id is absent: a filtered page can be empty while more matches remain.

ParameterTypeDescription
connection_typeOnly these connection types, e.g. ["databricks", "mysql"].
contiguous_idPagination token from a prior call.
limitMax groups per page (default 50, max 50).
statusOnly groups whose latest run has one of these report statuses: "needs_review", "in_progress", "confirmed", "failed".

list_report_group_runs

List a report group's classification runs, newest first.

ParameterTypeDescription
group_id *stringgroup_id from `list_report_groups`.
contiguous_idPagination token from a prior call.
limitMax runs per page (default 50, max 50).

get_job_exclusions

Show which exclusion paths a classification job applied. `applied` lists exclusions that covered at least one object; `unmatched` lists those that covered nothing. A non-empty `unmatched` means the scan sampled more than intended, for example because of a mistyped path. When `applied_unavailable` or `match_unavailable` is true, the matching list is unknown rather than empty.

ParameterTypeDescription
job_id *stringJob identifier.

create_snowflake_job

Run a classification scan on a Snowflake database, as the console's Classify Data wizard does. The collection's classifiers decide what is detected. The processing location decides where the scan runs: - "altr_hosted" (the default): ALTR reads samples and evaluates the classifiers in its cloud, including Google DLP and Amazon Comprehend conditions. - "in_warehouse": the scan runs in Snowflake on your compute. Google DLP, Content Type and Amazon Comprehend conditions are skipped. Scans run asynchronously and can take 10-30+ minutes. Poll `get_job` or `get_jobs`; a review-gated job stops…

ParameterTypeDescription
collection_name *stringCollection to run. It must contain classifiers.
database_id *integerSnowflake connection ID (from `get_databases`).
excludeObjects to skip, relative to the scope: a schema name, or "schema.table". Without schema, exclusions apply to the whole database. Check `get_job_exclusions` afterwards: a name that matches nothing is…
processing_locationstring"altr_hosted" or "in_warehouse".
requires_reviewbooleanHold the report for human review until every finding is decided and `confirm_job_report` runs. Defaults to true, as in the console.
sample_sizeRows to sample per column (default 1000), or a percentage from 1 to 100 (default 5) with PERCENT.
sample_typestring"ROWS" (a row count, the default) or "PERCENT".
schemaScan only this schema of the database.
tableScan only this table (requires schema).

create_databricks_job

Run a classification scan on a Databricks workspace, as the console does. Databricks scans are always ALTR Hosted. Scans run asynchronously; poll `get_job` or `get_jobs`. A review-gated job stops at AWAITING_REVIEW.

ParameterTypeDescription
collection_name *stringCollection to run. It must contain classifiers.
database_id *integerDatabricks connection ID (from `get_databases`).
catalogScan only this Unity Catalog catalog.
excludeObjects to skip, relative to the scope: a schema, or "schema.table" under a catalog. Check `get_job_exclusions` afterwards: a name that matches nothing is not an error.
requires_reviewbooleanHold the report for human review until every finding is decided and `confirm_job_report` runs. Defaults to true, as in the console.
sample_sizeRows to sample per column (default 1000), or a percentage from 1 to 100 (default 5) with PERCENT.
sample_typestring"ROWS" (a row count, the default) or "PERCENT".
schemaScan only this schema (requires catalog).
tableScan only this table (requires schema).

create_oltp_job

Run a classification scan on a database repository (Oracle, MSSQL, PostgreSQL, MySQL, MongoDB, Cassandra) through a classifier agent, as the console does. The scan runs on the agent, in your network, except that Google DLP and Amazon Comprehend conditions send sampled values to those services under the agent's own Google Cloud and AWS credentials; a collection with either kind fails the scan at start if the agent isn't configured for it. For S3 and filesystem repositories use `create_file_classification_job`. Scans run asynchronously; poll `get_job` or `get_jobs`. A review-gated job stops at…

ParameterTypeDescription
agent_id *stringCLASSIFIER agent ID (from `list_sc_agents`).
collection_name *stringCollection to run. It must contain classifiers.
repo_name *stringRepository name (from `list_sc_repos`).
service_user_name *stringRepository service user the agent connects as (from `list_sc_service_users`).
databaseScan only this database. On Oracle this is the connection's service name.
excludeObjects to skip, relative to the scope: "schema" or "schema.table" under a database (a table name on MySQL, MongoDB and Cassandra). Check `get_job_exclusions` afterwards: a name that matches nothing i…
requires_reviewbooleanHold the report for human review until every finding is decided and `confirm_job_report` runs. Defaults to true, as in the console.
sample_sizeRows to sample per column (default 1000), or a percentage from 1 to 100 (default 5) with PERCENT.
sample_typestring"ROWS" (a row count, the default) or "PERCENT".
schemaScan only this schema (requires database). MySQL, MongoDB and Cassandra have no schema level.
service_nameOracle only: the service name to connect with. A scoped Oracle scan always connects by service name, which is also its database.
sidOracle only, for an unscoped scan: the SID to connect with.
tableScan only this table or collection (requires database, and schema on Oracle, MSSQL and PostgreSQL).

create_file_classification_job

Run a classification scan on an S3 or filesystem repository through a classifier agent, as the console does. File contents stay in the agent's network, except that Google DLP and Amazon Comprehend conditions send them to those services under the agent's own Google Cloud and AWS credentials; a collection with either kind fails the scan at start if the agent isn't configured for it. Scans run asynchronously; poll `get_job` or `get_jobs`. A review-gated job stops at AWAITING_REVIEW.

ParameterTypeDescription
agent_id *stringCLASSIFIER agent ID (from `list_sc_agents`).
collection_name *stringCollection to run. It must contain classifiers.
repo_name *stringS3 or filesystem repository (from `list_sc_repos`).
service_user_name *stringRepository service user (from `list_sc_service_users`).
content_classificationbooleanClassify file contents. False maps files and fields only. Defaults to true.
exclude_globSkip files whose paths match this glob.
exclude_pathsPrefixes or directories to skip, relative to the repository root (at most 100).
full_file_scanbooleanRead every value of every file instead of a sample. Defaults to false.
glue_crawlerS3 with GLUE only: the Glue crawler to start.
glue_start_crawlerbooleanS3 with GLUE only: run the crawler when the catalog is empty.
include_globOnly files whose paths match this glob.
max_file_bytesBytes read per file, at most 67108864 (64 MiB; agent default 10 MiB).
max_filesCap on files listed (agent default 100000).
metadata_mapstringHow field names (CSV headers, JSON keys) are kept in results: "hashed" (the default), "plaintext" or "none".
metadata_map_by_formatPer-format overrides for csv, json, xml, html or yaml, e.g. {"csv": "plaintext"}.
pathsScan only these prefixes or directories, relative to the repository root (at most 50). Omit to scan everything.
requires_reviewbooleanHold the report for human review until every finding is decided and `confirm_job_report` runs. Defaults to true, as in the console.
scan_modeS3 only: "CRAWL" (list the bucket, the default) or "GLUE" (read the repository's Glue database).
sniff_bytesbooleanS3 only: detect content types from file bytes rather than extensions. Defaults to true.

update_job_status

Control a running classification job (pause, cancel, or resume). Use to manage long-running classification jobs. Status options: PAUSED, CANCELLED, or RUNNING.

ParameterTypeDescription
job_id *stringJob identifier to update.
status *stringNew status (PAUSED, CANCELLED, or RUNNING).

get_job_findings

List databases found in a completed classification job. Entry point for navigating classification results hierarchically without downloading the full report. Returns the databases that contain detected columns. Drill down with `get_job_findings_schemas`, then tables, columns, and classifiers. Prefer this over `get_classification_report` when you want to interactively explore or filter results by status or classifier.

ParameterTypeDescription
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
classifier_nameFilter to databases containing detections by these classifier(s). Single string or list.
confidenceKeep only findings of these confidence tiers: HIGH, MEDIUM, LOW. Counts are limited the same way.
confirmed_statusFilter by review status: approved, rejected, or pending. Single string or list.
include_column_status_countsIf true, include approved/ rejected/pending counts per database.
limitMax databases to return.
page_tokenPagination token from a prior call.

get_job_findings_schemas

List schemas in a database from a classification job's findings. Second level of the findings tree. Call after `get_job_findings` to drill into a specific database.

ParameterTypeDescription
database *stringDatabase name from `get_job_findings`.
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
classifier_nameFilter by classifier name(s).
confidenceKeep only findings of these confidence tiers: HIGH, MEDIUM, LOW. Counts are limited the same way.
confirmed_statusFilter by review status: approved, rejected or pending. Single string or list.
limitMax schemas to return.
page_tokenPagination token.

get_job_findings_tables

List tables in a schema from a classification job's findings. Third level of the findings tree.

ParameterTypeDescription
database *stringDatabase name.
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
schema *stringSchema name from `get_job_findings_schemas`.
classifier_nameFilter by classifier name(s).
confidenceKeep only findings of these confidence tiers: HIGH, MEDIUM, LOW. Counts are limited the same way.
confirmed_statusFilter by review status: approved, rejected or pending. Single string or list.
limitMax tables to return.
page_tokenPagination token.

get_job_findings_columns

List columns in a table from a classification job's findings. Fourth level of the findings tree.

ParameterTypeDescription
database *stringDatabase name.
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
schema *stringSchema name.
table *stringTable name from `get_job_findings_tables`.
classifier_nameFilter by classifier name(s).
confidenceKeep only findings of these confidence tiers: HIGH, MEDIUM, LOW. Counts are limited the same way.
confirmed_statusFilter by review status: approved, rejected or pending. Single string or list.
limitMax columns to return.
page_tokenPagination token.

get_job_findings_classifiers

List classifiers that fired on a specific column in a completed job. Fifth (leaf) level of the findings tree. Shows per-classifier detection results for a column with confidence scores. Use `get_job_findings_lineage` to see the full compound-ruleset evaluation trace for a specific classifier.

ParameterTypeDescription
column *stringColumn name from `get_job_findings_columns`.
database *stringDatabase name.
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
schema *stringSchema name.
table *stringTable name.
classifier_nameOnly these classifier(s).
confidenceKeep only findings of these confidence tiers: HIGH, MEDIUM, LOW. Counts are limited the same way.
confirmed_statusFilter by review status: approved, rejected or pending. Single string or list.
limitMax classifiers to return.
page_tokenPagination token.

get_job_findings_lineage

Get the compound-ruleset evaluation trace (lineage) for a classifier on a specific column in a completed job. Returns the full decision tree showing which conditions evaluated, which matched, and why the classifier did or did not fire. Useful for debugging custom classifiers or understanding AMAZON_COMPREHEND / METADATA condition results.

ParameterTypeDescription
classifier_name *stringClassifier name to inspect.
column *stringColumn name.
database *stringDatabase name.
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
schema *stringSchema name.
table *stringTable name.

get_job_findings_leaves

List every finding in a job in one stream, ordered by full path. One row per (database, schema, table, column, classifier), with total_findings, match_rate_avg, is_new and the resolved review status. Use this to see a whole job at once instead of walking the tree with `get_job_findings` and its drill-down tools. Rows are under `items`. File sources also return crawl records, with an empty classifier_name and no confirmed_status; they are not findings and need no decision, and a confidence filter leaves them out.

ParameterTypeDescription
job_id *stringJob identifier.
confidenceKeep only these confidence tiers: HIGH, MEDIUM, LOW. Single string or list.
limitMax rows per page (default 100, max 1000).
page_tokennext_page_token from a prior call.

record_job_decision

Approve or reject classification findings in a job. Decisions can be scoped from the entire job down to a specific classifier on a specific column. Broader scopes (e.g., entire table) apply to all columns and classifiers within that scope. After recording decisions, check overall progress with `get_job_review_status`. For a job created with requires_review=true, finish with `confirm_job_report` to release the report. To decide many findings at once, use `record_bulk_job_decision`.

ParameterTypeDescription
confirmed_status *stringDecision to record: "approved" or "rejected".
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.
classifier_nameScope to this classifier on the column (requires column).
columnScope to this column (requires table).
databaseScope to this database (omit for job-wide).
schemaScope to this schema (requires database).
tableScope to this table (requires schema).

get_job_decisions

List human review decisions recorded for a classification job.

ParameterTypeDescription
job_id *stringJob identifier.
columnFilter to this column.
databaseFilter to this database.
limitMax decisions to return.
page_tokenPagination token.
schemaFilter to this schema.
tableFilter to this table.

revoke_job_decisions

Revoke (remove) previously recorded review decisions for a job. Scope works the same as `record_job_decision` — revoke at any granularity from the whole job down to a single classifier on a column. After revoking, those findings return to "pending" status.

ParameterTypeDescription
job_id *stringJob identifier.
classifier_nameScope to this classifier.
columnScope to this column.
databaseScope to this database.
schemaScope to this schema.
tableScope to this table.

record_bulk_job_decision

Approve or reject every undecided finding that matches a filter. Covers findings of the given classifiers, optionally narrowed by confidence tier and by a database, schema and table path. Findings that already have a decision are left alone, and each covered finding can still be overridden with `record_job_decision`. Run with dry_run=True first to see how many findings it would cover. Returns matched_findings and matched_objects, plus a bulk_decision_id when something was recorded (not on a dry run or when nothing matched). Undo the whole decision with `revoke_bulk_job_decision`.

ParameterTypeDescription
classifier_names *arrayClassifiers whose findings to decide.
confirmed_status *stringDecision to record: "approved" or "rejected".
job_id *stringJob identifier.
confidenceKeep only these confidence tiers: HIGH, MEDIUM, LOW.
databaseLimit to this database.
dry_runbooleanIf true, return the counts without recording anything.
schemaLimit to this schema (requires database).
tableLimit to this table (requires schema).

revoke_bulk_job_decision

Undo a bulk decision recorded with `record_bulk_job_decision`. Revokes every decision it still covers. A finding decided individually afterwards keeps that individual decision.

ParameterTypeDescription
bulk_decision_id *stringbulk_decision_id returned by `record_bulk_job_decision`.
job_id *stringJob identifier.

get_job_review_status

Get the review progress for a classification job. Returns total/approved/rejected/pending counts across all findings. Use after recording decisions with `record_job_decision` to check how much review work remains.

ParameterTypeDescription
job_id *stringIdentifier of a COMPLETED job, or of a review-gated job at AWAITING_REVIEW.

confirm_job_report

Confirm the review of a review-gated job and release its report. For a job created with requires_review=true. Every finding must have a decision; check with `get_job_review_status` first. Generation then runs in the background and decisions are locked: poll `get_job` until the status is COMPLETED, then read the report with `get_classification_report`.

ParameterTypeDescription
job_id *stringJob identifier.

cancel_job_report

Cancel a review-gated job before its report is confirmed. For a job created with requires_review=true that is still being reviewed. The job moves to CANCELLED and its review data is discarded. A job whose report has already been confirmed cannot be cancelled this way.

ParameterTypeDescription
job_id *stringJob identifier.

get_classification_report

Get detailed results from a completed classification job. Returns which columns were detected as containing sensitive data along with confidence scores. Only call after the job status is COMPLETED (verify with `get_jobs`). For interactive navigation, prefer `get_job_findings` which lets you drill down without downloading the full report. After reviewing results, check if the needed Snowflake tags exist using `get_tags`. If tags are missing, they must be created in Snowflake first before connecting with `connect_tag`.

ParameterTypeDescription
job_id *stringJob identifier returned from a create-job tool or listed by `get_jobs`.

scan_object

Classify a file's contents and return the scan summary. Runs synchronously on up to 128 KiB of content: CSV, JSON, XML, YAML, plain text and the other types `get_scan_object_supported_types` lists. The content is processed in memory and not stored; the summary and token map are kept, so read the map with `get_scan_object_map` and the request_id returned here. Choose what to scan with: - collection_name: every classifier in the collection. - collection_name and classifier_name: one classifier from the collection. Add `classifier` to test an edited definition (pattern, compound_ruleset, mi…

ParameterTypeDescription
classifierAn unsaved classifier definition, as described above.
classifier_nameOne classifier from collection_name.
collection_nameCollection to scan with.
contentFile contents as text. Pass this or content_base64.
content_base64File contents, base64-encoded. Use for binary files.
file_nameOptional original file name, echoed in the results.
include_all_tokensIf true, the token map includes tokens that matched no classifier. Defaults to false.
include_lineageIf true, the token map shows how each classifier's conditions decided each match.
metadata_mapHow structural names (CSV headers, JSON keys) are kept in the map: {"default": "hashed"|"plaintext"|"none", "by_format": {"csv": ...}}.

list_scan_objects

List past `scan_object` scans, newest first.

ParameterTypeDescription
classifier_nameOnly single-classifier or unsaved-classifier scans of this classifier.
collection_nameOnly scans of this collection.
contiguous_idPagination token from a prior call.
limitMax scans per page (default 50, max 50).
order"desc" (default) or "asc" by creation time.
status"COMPLETED", "FAILED" or "UNSUPPORTED_CONTENT_TYPE".

get_scan_object

Get the stored summary of a scan: status, token counts, timing.

ParameterTypeDescription
request_id *stringrequest_id from `scan_object` or `list_scan_objects`.

get_scan_object_map

Get a scan's token map: where each classified token sits in the file and which classifiers matched it. Starts with a per-classifier summary. Each token carries its location (line, column, CSV row and header, or JSON/XML path) and its effective tags, not its value. Fails with 422 for a failed scan.

ParameterTypeDescription
request_id *stringrequest_id from `scan_object` or `list_scan_objects`.

get_scan_object_supported_types

List the content types `scan_object` detects and how it handles each, plus its size limit and metadata_map options.

get_databases

Discover which Snowflake databases are connected to ALTR. Returns connection metadata including database names and IDs. Use `get_database_id` to get the numeric ID required for classification jobs.

get_database_id

Get the ALTR database ID for a database name. Required before creating classification jobs. The database ID is a numeric identifier that ALTR uses internally to reference your Snowflake database. Typical workflow: After identifying your database with `get_databases`, call this to get the ID needed for `create_snowflake_job` or `create_databricks_job`.

ParameterTypeDescription
database_name *stringFriendly database name as shown in the ALTR UI.

get_service_users

List Snowflake service users available for database connections. Returns service user IDs needed for `create_database` when using keypair authentication (the recommended approach for Snowflake).

create_database

Connect a new data source to the ALTR platform. Supports two authentication modes: 1. **Service user (keypair auth — recommended for Snowflake):** Provide `service_user_id` from `get_service_users`. No password, hostname, or port needed. 2. **Password auth:** Provide `database_username`, `database_password`, `hostname`, and `database_port`. After creation, use `get_databases` to confirm the connection.

ParameterTypeDescription
database_name *stringActual database name (e.g. "MY_DATABASE_NAME").
database_type *stringDatabase type (e.g. "snowflake_external_functions").
friendly_database_name *stringDisplay name for the database in ALTR.
database_passwordPassword (password auth only).
database_portDatabase server port (password auth only).
database_usernameUsername (password auth only).
hostnameDatabase server hostname (password auth only).
service_user_idService user ID from `get_service_users` for keypair auth. Preferred for Snowflake connections.

create_databricks_database

Connect a Databricks workspace to the ALTR platform. Supports two authentication modes: 1. **Service user (token auth — recommended):** Provide `service_user_id` from `get_service_users`. 2. **Password auth:** Provide `database_username` and `database_password`. After creation, use `get_databases` to confirm the connection.

ParameterTypeDescription
database_name *stringDatabricks catalog or workspace name.
friendly_database_name *stringDisplay name for the database in ALTR.
hostname *stringDatabricks workspace URL (e.g. "https://adb-1234567890.azuredatabricks.net").
database_passwordPassword (password auth only).
database_usernameUsername (password auth only).
service_user_idService user ID from `get_service_users` for token auth. Preferred.

update_database

Update a database connection's properties. Only the fields you provide will be updated; omitted fields remain unchanged.

ParameterTypeDescription
database_id *integerNumeric ALTR database ID (from `get_databases`).
classification_typeClassification type code.
connection_stringDatabase connection string.
data_usage_historyEnable/disable data usage history.
database_passwordUpdated password.
database_usernameUpdated username.
friendly_database_nameUpdated display name.
max_number_of_batchesMax concurrent batches.
max_number_of_connectionsMax concurrent connections.
reinvokeTrigger reinvocation of the database setup.
service_user_idService user identifier.
should_classifyEnable/disable classification.
snowflake_roleSnowflake role to use.
warehouse_nameSnowflake warehouse to use.

trigger_database_status_sync

Trigger a database status sync. Sets the database to "in progress" until the status check completes. Use `get_databases` afterward to see the updated status.

ParameterTypeDescription
database_id *integerNumeric ALTR database ID (from `get_databases`).

disconnect_database

Disconnect a data source from ALTR. Removes the ALTR connection to the data source. This does not affect the underlying database — only the ALTR connection to it.

ParameterTypeDescription
database_id *integerNumeric ALTR database ID (from `get_databases`).
ignore_errorsbooleanIf true, force disconnection even if cleanup fails.

create_snowflake_access_policy

Create an access management policy for a Snowflake database, as the console does: grant one set of roles read and/or write access to named objects or to objects carrying a tag. ALTR applies the grants asynchronously and re-applies them on the refresh schedule. Target either by name (object_type and names) or by tag (tag_names): - By name: object_type "database" with database names; "schema" with `database` and schema names; "table" or "view" with `database`, `schema` and table or view names. - By tag: objects of kind tag_check_against carrying any of tag_names (the tag lives in tag_data…

ParameterTypeDescription
connection_id *integerSnowflake connection ID (from `get_databases`).
policy_name *stringName for the policy (1-255 chars).
refresh *stringHow often ALTR re-applies the grants: "none", "daily", "weekly" or "monthly".
roles *Snowflake roles that get access.
accessstring"read" (the default), "write" or "read_write".
databaseDatabase holding the schemas, tables or views.
namesNames of the objects of object_type.
object_type"database", "schema", "table" or "view".
refresh_dayDay for a weekly or monthly refresh, MON to SUN.
refresh_time"HH:MM" in UTC; needed unless refresh is "none".
refresh_weekWeek of the month for a monthly refresh, 1 to 4.
schemaSchema holding the tables or views.
tag_check_against"database", "schema", "table" or "view".
tag_databaseDatabase the tag is defined in.
tag_namesTag names; with tag_values, exactly one.
tag_schemaSchema the tag is defined in.
tag_valuesTag values to match on the one tag name.

update_snowflake_access_policy

Update a Snowflake access management policy, as the console's editor does. Anything left out keeps its current value: the name, the rule and the refresh schedule. Saving re-applies the grants, so there is no need to call `trigger_access_policy_check` afterwards. To change the rule, pass all of it: roles, access and a target, in the form `create_snowflake_access_policy` takes. A policy whose rule the console can't edit keeps that rule; only its name and schedule can change. A policy still applying a previous change can't be updated until it finishes.

ParameterTypeDescription
policy_id *stringPolicy ID, starting GRANT#. Do not URL-encode.
access"read", "write" or "read_write".
databaseDatabase holding the schemas, tables or views.
namesNames of the objects of object_type.
object_type"database", "schema", "table" or "view".
policy_nameNew name (1-255 chars).
refresh"none" to remove the schedule, or "daily", "weekly" or "monthly" to replace it.
refresh_dayDay for a weekly or monthly refresh, MON to SUN.
refresh_time"HH:MM" in UTC.
refresh_weekWeek of the month for a monthly refresh, 1 to 4.
rolesSnowflake roles that get access.
schemaSchema holding the tables or views.
tag_check_against"database", "schema", "table" or "view".
tag_databaseDatabase the tag is defined in.
tag_namesTag names; with tag_values, exactly one.
tag_schemaSchema the tag is defined in.
tag_valuesTag values to match on the one tag name.

create_oltp_access_policy

Create an access management policy for a database repository, as the console does: which ALTR users or IdP groups may create, read, update or delete which objects through the sidecar. Supports Oracle, MSSQL, Postgres, MySQL, MongoDB and Cassandra repositories. Each rule grants one kind of access to one set of users or groups on objects of one type: - access: "create", "read" (the default), "update" or "delete". - users (ALTR usernames, which are emails) or groups (IdP group names), as a list. - object_type: one level of the repository's hierarchy. Oracle, MSSQL and Postgres: database, sch…

ParameterTypeDescription
policy_name *stringName for the policy (1-255 chars).
repo_name *stringRepository name (from `list_sc_repos`).
rules *List of rules as above, or a JSON string encoding one.

update_oltp_access_policy

Update a database repository's access management policy, as the console's editor does. Anything left out keeps its current value. The repository can't change.

ParameterTypeDescription
policy_id *stringPolicy ID, starting OLTP#. Do not URL-encode.
policy_nameNew name (1-255 chars).
rulesThe complete new list of rules, in the form `create_oltp_access_policy` takes. Replaces every rule.

trigger_access_policy_check

Re-apply a Snowflake access management policy's grants now, as the console's Refresh button does, instead of waiting for its schedule. The run is queued and the policy shows as pending until it finishes. Database repository policies don't need it.

ParameterTypeDescription
policy_id *stringPolicy ID, starting GRANT#. Do not URL-encode.

get_access_requests

List one page of access requests, newest first, as the console's access request list does. Only OPEN requests unless `status` says otherwise; the API filters on one status per call. To get the next page, pass the response's `last_evaluated_key` unchanged as `exclusive_start_key`, with the same `status` and `requester`. Keep going until `last_evaluated_key` is absent: the last page can be empty and still carry one.

ParameterTypeDescription
exclusive_start_key`last_evaluated_key` from the previous page, as returned (an object, or the same object as a JSON string).
limitintegerMax requests to return, 1 to 100 (default 100).
requesterOnly requests from this requester (exact name).
sortstring"desc" (newest first, the default) or "asc".
statusstringOPEN (the default), CLOSED_APPROVED, CLOSED_DENIED, CLOSED_CANCELLED or FAILED. The API also accepts NONE, PENDING_CREATION and the PENDING_* states.

get_access_request

Get one access request: who asked, for what, why, and its status.

ParameterTypeDescription
request_id *stringAccess request ID (UUID).

approve_access_request

Approve an OPEN access request, as the console does. ALTR creates a Snowflake access management policy granting what was requested, linked to the request, and applies it asynchronously.

ParameterTypeDescription
request_id *stringAccess request ID (UUID).
justificationOptional reason recorded with the decision (up to 1000 characters).

deny_access_request

Deny an OPEN access request, as the console does.

ParameterTypeDescription
request_id *stringAccess request ID (UUID).
justificationOptional reason recorded with the decision (up to 1000 characters).

get_agent_instances

List running instances for a specific ALTR agent.

ParameterTypeDescription
agent_id *stringAgent UUID.
contiguous_idPagination token from a prior call.
limitMax items to return.

get_agent_instance

Get details for a specific agent instance.

ParameterTypeDescription
agent_id *stringAgent UUID.
instance_id *stringInstance UUID.

disconnect_agent_instance

Disconnect an agent instance from ALTR's view.

ParameterTypeDescription
agent_id *stringAgent UUID.
instance_id *stringInstance UUID to disconnect.

get_agent_task_telemetry

Get task telemetry for a specific agent. Returns task status, messages, and metadata for tasks assigned to this agent.

ParameterTypeDescription
agent_id *stringAgent UUID.
contiguous_idPagination token from a prior call.
limitMax items to return.

get_sidecar_instances

List running instances for a specific sidecar.

ParameterTypeDescription
sidecar_id *stringSidecar UUID.
contiguous_idPagination token from a prior call.
limitMax items to return.

get_sidecar_instance

Get details for a specific sidecar instance.

ParameterTypeDescription
instance_id *stringInstance UUID.
sidecar_id *stringSidecar UUID.

disconnect_sidecar_instance

Disconnect a sidecar instance from ALTR's view.

ParameterTypeDescription
instance_id *stringInstance UUID to disconnect.
sidecar_id *stringSidecar UUID.

get_task_telemetry

Get telemetry for a specific task by its ID.

ParameterTypeDescription
task_id *stringTask UUID.

delete_task_telemetry

Delete telemetry for a specific task.

ParameterTypeDescription
task_id *stringTask UUID.

search_audits

Search sidecar query audits with filters. Triggers an async search and returns a search_uuid (valid 30 days). Use `get_audit_results` with the search_uuid to retrieve results. All filters are combined with AND logic.

ParameterTypeDescription
column_nameFilter by column names. Pass a single string or a list of strings.
consuming_userFilter by consuming usernames (case-insensitive). Pass a single string or a list of strings.
consuming_user_emailFilter by consuming user emails. Pass a single string or a list of strings.
database_nameFilter by database names. Pass a single string or a list of strings.
filter_treeOptional filter, as a dict or JSON string, in the same format as `create_dam_rule`'s filter_tree. It is ANDed with the other filters. A node is a junction {"op": "and"|"or", "children": [nodes]} or a…
from_date_timeRFC3339 UTC start time (e.g. "2025-01-01T00:00:00Z"). Defaults to 24h ago.
limitMax results (default 10000, max 100000).
offsetSkip this many results.
order_by"asc" or "desc" (default "desc").
query_idFilter by specific query IDs. Pass a single string or a list of strings.
repo_nameFilter by repository (connection) names. Distinct from database_name, which matches each column's database. Pass a single string or a list of strings.
schema_nameFilter by schema names. Pass a single string or a list of strings.
sidecar_idFilter by sidecar IDs. Pass a single string or a list of strings.
sidecar_instance_idFilter by sidecar instance IDs. Pass a single string or a list of strings.
sort_by"event_time" or "rows_accessed" (default "event_time").
statement_text_containsCase-insensitive substring match on SQL text. A literal match: % and _ match themselves, not as wildcards.
statement_typeFilter by statement types. Pass a single string or a list of strings.
table_nameFilter by table names. Pass a single string or a list of strings.
timezoneIANA timezone for time_of_day leaves, e.g. "America/New_York". Required when filter_tree has a time_of_day leaf, and refused otherwise.
to_date_timeRFC3339 UTC end time. Defaults to now.

get_audit_results

Get results from a previously triggered audit search. Results may not be immediately available — a 202 response means the search is still processing. Retry after a short wait.

ParameterTypeDescription
search_uuid *stringUUID returned by `search_audits`.
limitMax results per page (default 250, max 250).
next_page_tokenPagination token from a prior call.

search_system_audits

Search ALTR platform system audits. Starts an async query against system audit logs. Returns a token to retrieve results with `get_system_audit_results`. If `wait` is set, the API may return results directly (200) or a token for later retrieval (202). The `from` and `to` time range may be at most one week.

ParameterTypeDescription
category *stringAudit category. Values: "API Keys", "Locks", "Data", "Administrators", "Thresholds", "Anomalies", "Applications", "User Groups", "Data Sources", "Row Access Policy", "Unified Access Policy", "Access R…
from_date_timeISO 8601 UTC start time. Defaults to 48h ago.
limitMax results (1-100, default 50).
offsetResults to skip (default 0).
to_date_timeISO 8601 UTC end time. Defaults to now.
waitMilliseconds to wait for results (-1 to 1000, default 100). Set to -1 to return immediately with token.

get_system_audit_results

Get results from a system audit query. Use the token returned by `search_system_audits`. If the response has `moreData: true`, use the new token to fetch the next page.

ParameterTypeDescription
token *stringToken from `search_system_audits` or a prior call's response.

search_query_audits

Search Snowflake query audits (tag and column masking). Triggers an async search and returns a search_uuid (valid 30 days). Use `get_query_audit_results` with the search_uuid to retrieve results. All filters are combined with AND logic. Use this for Snowflake tag-based or column-based masking audits. For sidecar proxy audits, use `search_audits` instead.

ParameterTypeDescription
executing_roleFilter by role executing the query (case-insensitive).
executing_userFilter by user executing the query (case-insensitive).
filter_treeOptional filter, as a dict or JSON string, in the same format as `create_dam_rule`'s filter_tree. It is ANDed with the other filters. A node is a junction {"op": "and"|"or", "children": [nodes]} or a…
from_date_timeRFC3339 UTC start time (e.g. "2025-01-01T00:00:00Z"). Defaults to 24h ago.
limitMax results (default 10000, max 100000).
offsetSkip this many results.
order_by"asc" or "desc" (default "desc").
policy_column_database_nameFilter by database name (case-insensitive).
policy_column_nameFilter by column name (case-insensitive).
policy_column_schema_nameFilter by schema name (case-insensitive).
policy_column_table_nameFilter by table name (case-insensitive).
policy_tag_nameFilter by policy tag name (case-insensitive).
policy_tag_valueFilter by policy tag value (case-insensitive).
query_idFilter by query identifier (case-insensitive, at most 255 characters).
sort_by"event_time" or "rows_accessed" (default "event_time").
timezoneIANA timezone for time_of_day leaves, e.g. "America/New_York". Required when filter_tree has a time_of_day leaf, and refused otherwise.
to_date_timeRFC3339 UTC end time. Must not be in the future. Defaults to now.

get_query_audit_results

Get results from a previously triggered query audit search. Results may not be immediately available — a 202 response means the search is still processing. Retry after a short wait. Use this to retrieve results from `search_query_audits`. For sidecar audit results, use `get_audit_results` instead.

ParameterTypeDescription
search_uuid *stringUUID returned by `search_query_audits`.
limitMax results per page (default 250, max 250).
next_page_tokenPagination token from a prior call.

list_report_definitions

List audit report definitions. Returns paginated definitions ordered by creation time descending. Use `cursor` to page through results.

ParameterTypeDescription
archivedIf True, return only archived definitions. If False or omitted, return only active definitions.
cursorPagination cursor from a prior call.
limitMax results per page.

create_report_definition

Create a new audit report definition. Defines what data is included, how it is scheduled, and where it is delivered. After creating, use `trigger_report_definition` to generate a report on demand.

ParameterTypeDescription
integration_type *stringData source type. Values: "oltp", "snowflake".
name *stringUnique display name for the definition (max 200 chars).
timezone *stringIANA timezone for the report window (e.g. "America/New_York").
deliveryDelivery configuration as a dict or JSON string. Shape: {"channels": [{"type": "email", "enabled": bool, "recipients": ["email@example.com"]}]}. At most 20 recipients, in the org's allowed email domai…
descriptionOptional human-readable description (max 1000 chars).
filtersFilter groups as a dict or JSON string. Groups are ORed; the filters in a group are ANDed. Shape: {"filter_groups": [{"filters": [{"field": "repo_name", "mode": "include", "patterns": [{"match_type":…
lookback_daysNumber of complete calendar days to include in each report window (excludes the trigger day). 1-120; default 7.
required_approvalsSign-offs that finalize each report. Default 0: sign-offs never finalize it.
retention_daysDays to keep each report, 1-2555. Default 90.
schedule_cron6-field cron expression controlling when the report runs automatically. Format: "minute hour day-of-month month day-of-week year" Use ? in day-of-month OR day-of-week (not both) when the other field i…
schedule_enabledWhether the schedule is active. Pass True to run it: a schedule sent without it is saved disabled.
schedule_timezoneIANA timezone for schedule evaluation (e.g. "America/New_York"; default "UTC"). All cron times are interpreted in this timezone.

get_report_definition

Get a single audit report definition by ID.

ParameterTypeDescription
definition_id *stringID of the report definition.

update_report_definition

Update an existing audit report definition (full replacement). Replaces the definition's configuration entirely. All fields that should be preserved must be included. An omitted field is cleared or reset: description is emptied, schedule and delivery are removed, a schedule sent without schedule_enabled is disabled, filters are removed so the report covers every event, lookback_days returns to 7, required_approvals to 0 and retention_days to 90. Read the definition first with `get_report_definition`.

ParameterTypeDescription
definition_id *stringID of the definition to update.
integration_type *stringData source type. Values: "oltp", "snowflake".
name *stringUnique display name for the definition (max 200 chars).
timezone *stringIANA timezone for the report window (e.g. "America/New_York").
deliveryDelivery configuration as a dict or JSON string. Shape: {"channels": [{"type": "email", "enabled": bool, "recipients": ["email@example.com"]}]}. At most 20 recipients, in the org's allowed email domai…
descriptionOptional human-readable description (max 1000 chars).
filtersFilter groups as a dict or JSON string. Groups are ORed; the filters in a group are ANDed. Shape: {"filter_groups": [{"filters": [{"field": "repo_name", "mode": "include", "patterns": [{"match_type":…
lookback_daysNumber of complete calendar days to include in each report window (excludes the trigger day). 1-120; default 7.
required_approvalsSign-offs that finalize each report. Default 0: sign-offs never finalize it.
retention_daysDays to keep each report, 1-2555. Default 90.
schedule_cron6-field cron expression controlling when the report runs automatically. Format: "minute hour day-of-month month day-of-week year" Use ? in day-of-month OR day-of-week (not both) when the other field i…
schedule_enabledWhether the schedule is active. Pass True to run it: a schedule sent without it is saved disabled.
schedule_timezoneIANA timezone for schedule evaluation (e.g. "America/New_York"; default "UTC"). All cron times are interpreted in this timezone.

archive_report_definition

Archive (soft-delete) an audit report definition. Archived definitions are hidden from normal listings but can be restored with `restore_report_definition`.

ParameterTypeDescription
definition_id *stringID of the definition to archive.

restore_report_definition

Restore an archived audit report definition.

ParameterTypeDescription
definition_id *stringID of the archived definition to restore.

trigger_report_definition

Trigger an on-demand audit report for a definition. Generates a report instance immediately outside of the normal schedule. Rate-limited to one trigger per definition per 5 minutes.

ParameterTypeDescription
definition_id *stringID of the definition to trigger.

list_report_instances

List report instances for a given definition. Each instance represents one generated report. Instances are returned newest-first.

ParameterTypeDescription
definition_id *stringID of the report definition.
cursorPagination cursor from a prior call.
limitMax results per page.

get_report_instance

Get a single report instance by ID.

ParameterTypeDescription
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.

get_report_instance_download_url

Get a download URL for a report instance. Returns a pre-signed URL to download the report file. Only instances with status "generated" or "finalized" have one.

ParameterTypeDescription
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.
formatstringFile format. Values: "pdf" (default), "csv".

list_report_comments

List comments on a report instance. Pinned comments appear first, followed by the rest in chronological order.

ParameterTypeDescription
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.
cursorPagination cursor from a prior call.
limitMax results per page.

create_report_comment

Add a comment to a report instance.

ParameterTypeDescription
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.
text *stringComment text to add.

pin_report_comment

Pin a comment on a report instance. Only one comment per instance can be pinned at a time; unpin the current one first.

ParameterTypeDescription
comment_id *stringID of the comment to pin.
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.

unpin_report_comment

Unpin the currently pinned comment on a report instance.

ParameterTypeDescription
comment_id *stringID of the comment to unpin.
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.

get_report_sign_off

Get the current user's sign-off for a report instance. Returns null/empty if the current user has not yet signed off.

ParameterTypeDescription
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.

create_report_sign_off

Sign off on a report instance. Records the current user's approval of the report. Each user signs off once, and only while the instance status is "generated". Each instance copies required_approvals from its definition when generated. If that value is above 0, the instance is finalized when its sign-offs reach it.

ParameterTypeDescription
attestation *booleanWhether the signer attests to the report's accuracy. Ask the user; never assume it. False still records an approval that counts toward required_approvals, so if the user does not approve, do not call…
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.
actionstringSign-off action. Values: "approve" (default).
commentsOptional comments to include with the sign-off.

list_report_sign_offs

List all sign-offs for a report instance. Returns sign-offs from all users who have reviewed the instance.

ParameterTypeDescription
definition_id *stringID of the report definition.
instance_id *stringID of the report instance.
cursorPagination cursor from a prior call.
limitMax results per page.

list_dam_rules

List DAM (Data Access Monitoring) alert rules.

ParameterTypeDescription
contiguous_idPagination token from a prior call. Present in the response while has_more is true.
enabledOnly rules with this enabled flag.
limitMax results per page (default 25, max 100).
rule_typeOnly rules of this type. Values: "match", "threshold".
severityOnly rules of this severity. Values: "low", "medium", "high", "critical".

get_dam_rule

Get a single DAM alert rule by ID.

ParameterTypeDescription
rule_id *stringID of the rule.

create_dam_rule

Create a DAM alert rule that fires alerts on matching audit events. A "match" rule fires one alert per matching event. A "threshold" rule counts matching events in a tumbling window and fires once per window when the count reaches `threshold`. rule_type, data_source_scope, filter_tree, window_type, threshold and timezone cannot be changed later; to change them, delete the rule and create a new one.

ParameterTypeDescription
data_source_scope *stringAudit source the rule evaluates. "oltp" (sidecar) or "snowflake".
filter_tree *Filter as a dict or JSON string. A node is either a junction {"op": "and"|"or", "children": [nodes]} or a leaf {"op": ..., "dimension": ..., <value field>}. Leaf ops and their value field: eq, neq,…
name *stringDisplay name (max 255 chars).
rule_type *string"match" or "threshold".
severity *string"low", "medium", "high", or "critical".
comment_requiredIf True, acknowledging an alert from this rule requires a comment.
descriptionOptional description (max 2000 chars).
email_rate_limit_secondsMinimum seconds between emails for this rule. 0 or omitted uses the platform default (300); otherwise 60 to 86400.
email_recipientsAddresses to email when the rule fires (max 100). Domains must be allowed for the organization.
enabledbooleanWhether the rule is evaluated (default False).
thresholdThreshold rules only (required there). Event count (>= 1) that fires the alert.
timezoneIANA timezone, e.g. "America/New_York". Required on threshold rules (aligns windows). On match rules, required when filter_tree has a time_of_day leaf and must be omitted otherwise.
window_typeThreshold rules only (required there). "hourly", "daily", "weekly", or "monthly".

update_dam_rule

Update the mutable fields of a DAM alert rule. Only the fields passed are changed. rule_type, data_source_scope, filter_tree, window_type, threshold and timezone cannot be updated; delete the rule and create a new one instead.

ParameterTypeDescription
rule_id *stringID of the rule.
comment_requiredRequire a comment to acknowledge alerts.
descriptionNew description (max 2000 chars).
email_rate_limit_seconds0 resets to the platform default; otherwise 60 to 86400.
email_recipientsReplaces the recipient list. Pass [] to remove all recipients.
enabledTurn evaluation on or off.
nameNew display name (1-255 chars).
severity"low", "medium", "high", or "critical".

delete_dam_rule

Permanently delete a DAM alert rule and stop evaluating it. Alerts the rule already fired are kept.

ParameterTypeDescription
rule_id *stringID of the rule.

list_dam_alerts

List fired DAM alerts, newest first.

ParameterTypeDescription
contiguous_idPagination token from a prior call. Present in the response while has_more is true.
limitMax results per page (default 25, max 100).
rule_idOnly alerts fired by this rule.
severity"low", "medium", "high", or "critical".
state"new" or "acknowledged".

get_dam_alert

Get a single DAM alert by ID. Match-rule alerts carry the matched audit event in matched_event; threshold alerts carry the count and window in threshold_context.

ParameterTypeDescription
alert_id *stringID of the alert.

acknowledge_dam_alert

Acknowledge a new DAM alert. Fails with 409 if the alert is already acknowledged, and with 400 if its rule has comment_required set and no comment is given.

ParameterTypeDescription
alert_id *stringID of the alert.
commentAcknowledgment comment.

list_dam_alert_comments

List investigation comments on a DAM alert, oldest first.

ParameterTypeDescription
alert_id *stringID of the alert.
contiguous_idPagination token from a prior call.
limitMax results per page (default 25, max 100).

create_dam_alert_comment

Add an investigation comment to a DAM alert. Comments are append-only; they cannot be edited or deleted.

ParameterTypeDescription
alert_id *stringID of the alert.
text *stringComment text (max 5000 chars).

list_sc_agents

List ALTR agents (SIS or CLASSIFIER) in your organization.

ParameterTypeDescription
agent_typeFilter by "SIS" or "CLASSIFIER".
contiguous_idPagination token.
limitMax items (default 50, max 100).
name_starts_withCase-insensitive name prefix filter.

create_sc_agent

Create a new ALTR agent.

ParameterTypeDescription
agent_type *string"SIS" or "CLASSIFIER".
name *stringAgent name.
descriptionAgent description.
public_key_1First public key for mTLS.
public_key_2Second public key for mTLS rotation.

get_sc_agent

Get details for a specific agent.

ParameterTypeDescription
agent_id *stringAgent UUID.

update_sc_agent

Update an existing agent. Only provided fields are changed.

ParameterTypeDescription
agent_id *stringAgent UUID.
descriptionUpdated description.
nameUpdated name.
public_key_1Updated first public key.
public_key_2Updated second public key.

disconnect_sc_agent

Disconnect an agent from ALTR. Agent must have task_count of 0.

ParameterTypeDescription
agent_id *stringAgent UUID.

list_sc_agent_tasks

List tasks assigned to an agent.

ParameterTypeDescription
agent_id *stringAgent UUID.
contiguous_idPagination token.
limitMax items (default 50, max 100).

get_sc_agent_task

Get one task of an agent, with its configuration and schedule.

ParameterTypeDescription
agent_id *stringAgent UUID.
task_id *stringTask UUID.

create_sc_agent_task

Create a task for an agent. A task runs against a specific repo on a schedule. Configuration depends on the agent type (check with `get_sc_agent` first) and the repo type. **CLASSIFIER agent** configuration, any repo type: - classification_type: 5, the only accepted value. - collection_name: classifier collection name. Required. - condition_types: condition targets to evaluate, e.g. ["ROW_DATA", "METADATA", "COLUMN_LOCATION"]. Others include GDLP, SNOWFLAKE_NATIVE, CONTENT_TYPE, DATA_LENGTH, COLUMN_SIZE and AMAZON_COMPREHEND. - sample_strategy: legacy alternative to condition_types:…

ParameterTypeDescription
agent_id *stringAgent UUID.
configuration *Agent-type-specific config dict or JSON string. See above for required fields.
name *stringTask name (max 64 chars).
repo_name *stringTarget repository name.
schedule *Schedule dict or JSON string.
descriptionOptional task description.
service_userService user the agent signs in as. SIS: required for Oracle, MSSQL, Snowflake, Databricks and MySQL with 'table_name'; rejected for Postgres and MySQL with 'audit_file_path'. CLASSIFIER: required exc…

update_sc_agent_task

Update an agent task. Only provided fields change. CLASSIFIER tasks: configuration fields not sent are kept, and the merged result must pass the create rules. scope, exclusions, file_options and metadata_map replace the stored value; send null (or [] for exclusions) to clear one. SIS tasks: 'initial_audit_timestamp' cannot change. Every type takes 'ssl_config'. Oracle also takes 'service_name'; MSSQL 'audit_file_path'; Postgres any of 'audit_file_path', 'audit_file_type', 'log_line_prefix'; MySQL only the field it was created with; Snowflake 'table_name'; Databricks 'table_name' and 'workspa…

ParameterTypeDescription
agent_id *stringAgent UUID.
task_id *stringTask UUID.
configurationUpdated config dict or JSON string.
descriptionUpdated description.
nameUpdated task name.
scheduleUpdated schedule dict or JSON string.

delete_sc_agent_task

Delete an agent task. Atomically removes the task and decrements the agent's and service user's task counts.

ParameterTypeDescription
agent_id *stringAgent UUID.
task_id *stringTask UUID.

list_sc_repos

List repos: the data sources sidecars and agents connect to.

ParameterTypeDescription
contiguous_idPagination token.
limitMax items (default 50, max 100).
name_starts_withCase-insensitive name prefix filter.
repo_typeFilter by "Oracle", "MSSQL", "MySQL", "Postgres", "MongoDB", "Cassandra", "Snowflake", "Databricks", "S3" or "FILESYSTEM".

create_sc_repo

Create a repo: a database, warehouse or file store.

ParameterTypeDescription
name *stringRepo name: lowercase letters, digits and underscores, max 32 chars.
repo_type *string"Oracle", "MSSQL", "MySQL", "Postgres", "MongoDB", "Cassandra", "Snowflake", "Databricks", "S3" or "FILESYSTEM".
audit_propertiesDict, or JSON string. The only key is 'redact_comments': "*" redacts SQL comments from audited query text; "" (the default) keeps them.
connection_propertiesDict of strings, or JSON string. Accepted only for these types: S3: 'bucket' and 'region' (required), 'prefix', 'glue_database'. FILESYSTEM: 'root_path' (required). Databricks: 'http_path' of the SQL…
descriptionRepository description (max 100 chars).
hostnameServer hostname. Required for every type but S3 and FILESYSTEM, which reject it. Snowflake: "<account>.snowflakecomputing.com"; Databricks: the workspace host.
portServer port. Required and rejected like hostname. Snowflake and Databricks use 443.

get_sc_repo

Get details for a specific repository.

ParameterTypeDescription
repo_name *stringRepository name.

update_sc_repo

Update a repo. Only provided fields are changed.

ParameterTypeDescription
repo_name *stringRepository name.
audit_propertiesMerged the same way. 'redact_comments' "*" redacts SQL comments; "" keeps them.
connection_propertiesKeys to add or change, merged into the repo's stored connection_properties. Same keys as `create_sc_repo`.
descriptionUpdated description.

disconnect_sc_repo

Disconnect a repository from ALTR. Must have no users or bindings.

ParameterTypeDescription
repo_name *stringRepository name.

list_sc_repo_users

List users configured for a repository.

ParameterTypeDescription
repo_name *stringRepository name.
contiguous_idPagination token.
limitMax items (default 50, max 100).

create_sc_repo_user

Create a repo user with credential reference. Provide exactly one credential source.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringDatabase username.
aws_secrets_managerDict with 'secrets_path' and optional 'iam_role'. S3 and FILESYSTEM repos also accept 'iam_role' alone.
azure_key_vaultDict with 'key_vault_uri' and 'secret_name'.
environment_variableDict with 'variable_name', the OS environment variable holding the secret.
secret_fileDict with 'path', a file name (no directories) read from /altr/secrets/.

get_sc_repo_user

Get details for a specific repo user.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringDatabase username.

update_sc_repo_user

Change a repo user's credential reference. Provide exactly one credential source, shaped as in `create_sc_repo_user`. A new source type clears the old one. An aws_secrets_manager update changes only the keys sent, so a stored 'iam_role' stays unless replaced.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringDatabase username.
aws_secrets_managerAWS Secrets Manager config.
azure_key_vaultAzure Key Vault config.
environment_variableEnvironment variable config.
secret_fileSecret file config.

disconnect_sc_repo_user

Disconnect a repo user from ALTR.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringDatabase username to disconnect.

list_sc_service_users

List service users. Optionally filter by repo.

ParameterTypeDescription
contiguous_idPagination token.
limitMax items (default 50, max 100).
repo_nameIf provided, list only service users for this repo.
username_starts_withFilter by username prefix (only works with repo_name).

create_sc_service_user

Create a service user: the account an agent signs in as. Provide exactly one credential source, shaped as in `create_sc_repo_user`.

ParameterTypeDescription
repo_name *stringRepository name.
resource *stringThe database the credential connects to: the Oracle service name; the MySQL, MSSQL, Postgres or Snowflake database; the Databricks catalog; the MongoDB database or Cassandra keyspace ("*" for all, cla…
username *stringService user name: lowercase letters, digits and underscores, max 32 chars.
aws_secrets_managerAWS Secrets Manager config.
azure_key_vaultAzure Key Vault config.
environment_variableEnvironment variable config.
secret_fileSecret file config.

get_sc_service_user

Get details for a specific service user.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringService user name.

update_sc_service_user

Update a service user. Only provided fields are changed. Give at most one credential source. A new source type clears the old one. An aws_secrets_manager update changes only the keys sent, so a stored 'iam_role' stays unless replaced.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringService user name.
aws_secrets_managerAWS Secrets Manager config.
azure_key_vaultAzure Key Vault config.
environment_variableEnvironment variable config.
resourceUpdated resource (see `create_sc_service_user`).
secret_fileSecret file config.

disconnect_sc_service_user

Disconnect a service user from ALTR.

ParameterTypeDescription
repo_name *stringRepository name.
username *stringService user name to disconnect.

list_sc_sidecars

List sidecars in your organization.

ParameterTypeDescription
contiguous_idPagination token.
limitMax items (default 50, max 100).

create_sc_sidecar

Create a new sidecar.

ParameterTypeDescription
hostname *stringSidecar hostname (max 500 chars).
name *stringSidecar name (max 64 chars).
descriptionSidecar description (max 400 chars).
disable_platform_auditsIf true, sidecar won't send activity audits.
public_key_1First public key for mTLS.
public_key_2Second public key for mTLS rotation.
unsupported_query_bypassIf true, unsupported queries bypass the query parser.

get_sc_sidecar

Get details for a specific sidecar.

ParameterTypeDescription
sidecar_id *stringSidecar UUID.

update_sc_sidecar

Update a sidecar. Only provided fields are changed.

ParameterTypeDescription
sidecar_id *stringSidecar UUID.
descriptionUpdated description.
disable_platform_auditsUpdated audit setting.
hostnameUpdated hostname.
nameUpdated name.
public_key_1Updated first public key.
public_key_2Updated second public key.
unsupported_query_bypassUpdated bypass setting.

disconnect_sc_sidecar

Disconnect a sidecar from ALTR. Must have no listeners.

ParameterTypeDescription
sidecar_id *stringSidecar UUID.

list_sc_sidecar_listeners

List listener ports registered on a sidecar.

ParameterTypeDescription
sidecar_id *stringSidecar UUID.
contiguous_idPagination token.
limitMax items (default 50, max 100).

register_sc_sidecar_listener

Register a listener port on a sidecar.

ParameterTypeDescription
advertised_version *stringDatabase version string the sidecar advertises to clients (max 128 chars).
database_type *string"Oracle", "MSSQL", "MySQL", "Postgres", "MongoDB" or "Cassandra".
port *integerPort number to listen on.
sidecar_id *stringSidecar UUID.

deregister_sc_sidecar_listener

Remove a listener port from a sidecar.

ParameterTypeDescription
port *integerPort number to deregister.
sidecar_id *stringSidecar UUID.

list_sc_sidecar_bindings

List repo bindings for a sidecar.

ParameterTypeDescription
sidecar_id *stringSidecar UUID.
contiguous_idPagination token.
limitMax items (default 50, max 100).
portsComma-separated port filter.
repo_namesComma-separated repo name filter.

list_sc_repo_bindings

List sidecar bindings for a repository.

ParameterTypeDescription
repo_name *stringRepository name.
contiguous_idPagination token.
limitMax items (default 50, max 100).
portsComma-separated port filter.
sidecar_idsComma-separated sidecar ID filter.

get_sc_sidecar_binding

Get a specific sidecar-repo binding.

ParameterTypeDescription
port *integerListener port number.
repo_name *stringRepository name.
sidecar_id *stringSidecar UUID.

create_sc_sidecar_binding

Bind a repository to a sidecar listener port.

ParameterTypeDescription
port *integerListener port number.
repo_name *stringRepository name to bind.
sidecar_id *stringSidecar UUID.

disconnect_sc_sidecar_binding

Remove a repo binding from a sidecar listener port.

ParameterTypeDescription
port *integerListener port number.
repo_name *stringRepository name to unbind.
sidecar_id *stringSidecar UUID.

vault_tokenize

Tokenize plaintext values using ALTR vaulted tokenization. Replaces plaintext strings with vault tokens. Non-deterministic tokens use the prefix `vaultn_`; deterministic tokens use `vaultd_`. Tokens are stored in the ALTR vault and can be detokenized later. Rate-limited to 492 requests/month and 50 requests/second. Maximum 4096 values per call. Each value must be under 1024 characters.

ParameterTypeDescription
values *objectDict mapping user-defined keys to plaintext strings to tokenize (e.g. {"ssn": "123-45-6789", "email": "user@example.com"}).
deterministicbooleanIf True, the same plaintext always produces the same token. Default False (random token each time).

vault_detokenize

Detokenize vault tokens to recover plaintext values. Fails if any value in `tokens` is not a valid vault token (prefix `vaultd_` or `vaultn_`). For mixed inputs (tokens and non-tokens), use `vault_partial_detokenize` instead. Rate-limited to 492 requests/month and 50 requests/second. Maximum 4096 values per call. Tokens are case-sensitive.

ParameterTypeDescription
tokens *objectDict mapping user-defined keys to vault tokens (e.g. {"ssn": "vaultn_abc123...", "email": "vaultn_xyz456..."}).

vault_partial_detokenize

Detokenize vault tokens, passing non-token values through unchanged. Unlike `vault_detokenize`, this does not fail when non-token values are present. Valid tokens are detokenized; all other values are returned as-is. Rate-limited to 492 requests/month and 50 requests/second. Maximum 4096 values per call.

ParameterTypeDescription
values *objectDict mapping user-defined keys to vault tokens or plaintext strings. Non-token values are passed through (e.g. {"ssn": "vaultn_abc123...", "name": "already-plaintext"}).

vault_delete_tokens

Permanently delete vault tokens from the ALTR vault. Deleted tokens cannot be detokenized. If a deleted deterministic token is re-tokenized with the same plaintext, a new token is generated. Rate-limited to 492 requests/month and 50 requests/second. Maximum 4096 values per call.

ParameterTypeDescription
tokens *objectDict mapping user-defined keys to vault tokens to delete (e.g. {"ssn": "vaultn_abc123...", "email": "vaultn_xyz456..."}).

critical_tokenize

Tokenize plaintext values using ALTR critical tokenization. Replaces plaintext strings with critical tokens (format: `token_XXXX...`, 64+ chars). Tokens can be detokenized later. Deterministic tokenization produces the same token for the same input value. Maximum 1024 values per call. Each value must be under 128 UTF-8 code units.

ParameterTypeDescription
values *objectDict mapping user-defined keys to plaintext strings to tokenize (e.g. {"ssn": "123-45-6789", "email": "user@example.com"}).
deterministicbooleanIf True, the same plaintext always produces the same token. Default False (random token each time).

critical_detokenize

Detokenize critical tokens to recover plaintext values. Fails if any value in `tokens` is not a valid critical token (format: `token_XXXX...`, 64+ chars). For mixed inputs (tokens and non-tokens), use `critical_partial_detokenize` instead. Maximum 1024 values per call. Tokens are case-sensitive.

ParameterTypeDescription
tokens *objectDict mapping user-defined keys to critical tokens (e.g. {"ssn": "token_abc123...", "email": "token_xyz456..."}).

critical_partial_detokenize

Detokenize critical tokens, passing non-token values through unchanged. Unlike `critical_detokenize`, this does not fail when non-token values are present. Valid tokens are detokenized; all other values are returned as-is. Maximum 1024 values per call.

ParameterTypeDescription
values *objectDict mapping user-defined keys to critical tokens or plaintext strings. Non-token values are passed through (e.g. {"ssn": "token_abc123...", "name": "already-plaintext"}).

critical_delete_tokens

Delete critical tokens, removing them from the token store. Invalid tokens are silently ignored (no failure). If a deleted deterministic token is re-tokenized with the same plaintext, a new token is generated. Maximum 1024 values per call.

ParameterTypeDescription
tokens *objectDict mapping user-defined keys to critical tokens to delete (e.g. {"ssn": "token_abc123...", "email": "token_xyz456..."}).

list_tweaks

List FPE tweaks for the organization. Tweaks are named random values used in format-preserving encryption. Results are paginated; use `contiguous_id` from the response to fetch subsequent pages.

ParameterTypeDescription
containFilter tweaks whose name contains this substring.
contiguous_idPagination cursor returned by a prior call.
limitMax number of tweaks to return.
statusFilter by status — "active", "deactivated", or "any" (default "any").

get_tweak

Get a single FPE tweak by name. Returns the current (latest) version of the tweak. Pass `sequence` to retrieve a specific historical version instead.

ParameterTypeDescription
name *stringName of the tweak.
sequenceVersion sequence identifier. Omit to get the latest.

create_tweak

Create a new FPE tweak. Generates a new named random value for use in format-preserving encryption. The tweak name must not have leading or trailing spaces.

ParameterTypeDescription
name *stringName for the new tweak (1–256 characters, no leading or trailing spaces).

deactivate_tweak

Deactivate a specific version of an FPE tweak. Deactivated tweaks cannot be used for new FPE operations. Use `get_tweak` to discover the sequence identifier of a tweak version.

ParameterTypeDescription
name *stringName of the tweak.
sequence *stringVersion sequence identifier to deactivate.

list_keys

List FPE keys within a namespace. Results are paginated; use `contiguous_id` from the response to fetch subsequent pages. The `fpe` namespace is most common for format-preserving encryption keys.

ParameterTypeDescription
namespace *stringNamespace to list keys from (e.g. "fpe").
containFilter keys whose name contains this substring.
contiguous_idPagination cursor returned by a prior call.
limitMax number of keys to return.
statusFilter by status — "active", "deactivated", or "any" (default "any").

get_key

Get a single FPE key by namespace and name. Returns the current (latest) version of the key. Pass `sequence` to retrieve a specific historical version.

ParameterTypeDescription
name *stringName of the key.
namespace *stringNamespace where the key resides (e.g. "fpe").
sequenceVersion sequence identifier. Omit to get the latest.

create_key

Create a new FPE encryption key. Generates a new named key in the specified namespace. Keys are used for format-preserving encryption operations. The name and namespace must not have leading or trailing spaces.

ParameterTypeDescription
name *stringName for the new key (1–256 characters, no leading or trailing spaces).
namespace *stringNamespace for the key (e.g. "fpe"). Must not have leading or trailing spaces.

deactivate_key

Deactivate a specific version of an FPE key. Deactivated keys cannot be used for new encryption operations. Use `get_key` to discover the sequence identifier for a key version.

ParameterTypeDescription
name *stringName of the key.
namespace *stringNamespace where the key resides.
sequence *stringVersion sequence identifier to deactivate.

rotate_key

Rotate the envelope key for a specific FPE key version. Envelope rotation re-wraps the data key under a new envelope key without changing the underlying encryption material. Use this for key rotation compliance requirements.

ParameterTypeDescription
name *stringName of the key.
namespace *stringNamespace where the key resides.
sequence *stringVersion sequence identifier of the key to rotate.