ALTR MCP Server
OfficialAn MCP server that lets AI assistants manage ALTR's data security platform — masking, classification, access governance, audits, and sidecar configuration — across Snowflake, Databricks, and OLTP databases.
Masking policies & rules: create/update/delete tag-based and column-based policies and per-role rules (masking levels 10000–10009).
Tags: connect, inspect, update, and disconnect Snowflake tags; Databricks tags are raw strings passed at policy creation.
Classification: manage classifiers and collections, run scan jobs (Snowflake, Databricks, OLTP repos, files), poll status, review findings reports.
Access management: create/update Snowflake and OLTP access policies, trigger compliance checks.
Access requests: create, list, get, approve, deny, and cancel data access requests.
Audits: search sidecar query audits, Snowflake query audits, and platform system audits; page through results.
Audit reports: build, schedule, trigger, archive/restore definitions; review instances, download files, comment, pin, and sign off.
DAM alerting: create match/threshold alert rules and triage, comment on, and acknowledge alerts.
Telemetry & sidecar config: monitor agent/sidecar instances and tasks; manage agents, tasks, repos, repo users, service users, sidecars, listeners, and bindings.
Tokenization & keys: tokenize/detokenize values via Vault and Critical services; manage FPE encryption keys and tweaks.
Databases: connect, update, sync status, and remove Snowflake/Databricks/OLTP data sources; list roles and service users.
Manages tag-based data masking, access governance, and classification for Databricks databases through the ALTR platform.
Manages tag-based data masking, access governance, and classification for Snowflake databases through the ALTR platform.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ALTR MCP Server List my ALTR databases"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ALTR MCP Server
ALTR provides tag-based data masking, access governance, and classification for Snowflake, Databricks, and OLTP databases. This MCP server enables AI assistants (Claude, Cursor, and other MCP clients) to manage data security on the ALTR platform, covering database connections, tag masking, policies, classification, access management, audits, telemetry, and sidecar configuration.
New to ALTR? See the ALTR documentation for an overview of the platform, concepts, and supported data sources.
All tools return structured {success, data, error} responses and can run over stdio, SSE, or streamable-http transports.
Table of Contents
Related MCP server: MCP Gateway
Quick Start
Install from PyPI:
pip install altr-mcpOr run directly with uvx (no install required):
uvx altr-mcpuvxis part of the uv Python package manager. Install it withpip install uvor see the uv installation guide.Set the three required environment variables (see Getting Credentials for where to find each in the ALTR console):
export ORG_ID=your-org-id export MAPI_KEY=your-api-key export MAPI_SECRET=your-api-secretWire it into your AI client — see Setup for Claude Desktop, Claude Code, Cursor, VS Code, and Windsurf. The same three env vars go into the client's
envblock.Verify by asking your AI assistant to run a read-only tool:
"List my ALTR databases" → calls
get_databases"Show me the tags connected to ALTR" → calls
get_tags"List the ALTR roles in my org" → calls
get_roles
If these return data, your setup is working.
Getting Credentials
You need three values from the ALTR platform to configure this server. See Manage API keys for the full reference.
Credential | Where to find it |
| In the ALTR console: Settings > Preferences > Organization — copy the value from "ALTR Organization ID" |
| In the ALTR console: Settings > Preferences > API > Add New — give it a description, then copy the key |
| Shown once when you create the API key above — copy and store it securely |
Configuration
Set the following environment variables before starting the server:
Variable | Required | Description |
| Yes | ALTR organization ID |
| Yes | ALTR management API key |
| Yes | ALTR management API secret |
| No | Transport protocol: |
| No | Bind address for HTTP transports (default: |
| No | Port for HTTP transports (default: |
| No | Bearer token every HTTP request must carry: at least 32 characters, letters, digits and |
| No | Set |
| No | Comma-separated tool names to hide from clients |
| No | Log output format: |
| No | Log level (default: |
| No | Attempts per API call before giving up (default: |
| No | Set |
| No | Per-request timeout in seconds (default: |
| No | Ceiling in seconds on a server-sent |
MAX_RETRIES counts total attempts, not retries on top of the first, so 1
disables retrying without disabling the retry path. Backoff is exponential with
jitter; a Retry-After response header overrides it, clamped to
MAX_RETRY_AFTER so a server cannot park a call indefinitely.
What gets logged
Every tool call is logged to stderr at INFO with its arguments, which is what
makes a session traceable. An argument is redacted when its value is a
credential or user-supplied free text — values, text, comment,
comments, attestation, justification, statement_text_contains,
filters, filter_tree, content, content_base64, connection_string,
connection_properties, the bare credential names (password, secret,
credentials, passphrase, private_key, api_key, auth_token,
access_key), and anything ending _password, _secret, _credential,
_credentials, _private_key or _passphrase. Identifiers, enums and
pagination cursors are logged in full.
An argument can also reach a log by travelling in a request URL, which
redaction keyed on argument names cannot see. httpx's per-request line is
therefore held at WARNING, so it does not appear at the default INFO.
Dictionary keys survive, so a line reads
values={'ssn': '<redacted>', 'email': '<redacted>'}: you keep which fields
were sent and lose the data. Tokens are not redacted — a token exists to be
handled freely, and ALTR's own Shield audit log is keyed by token.
Redaction covers the invocation line, tracebacks, and the argument-coercion error returned to the caller.
LOG_FORMAT applies to dependency output as well as this server's own — under
json, every line on the stream is a JSON object, and dependency lines carry
the correlation_id of the tool call they occurred inside. See
Logging.
Upgrading from 0.6.0 or earlier? Arguments were not redacted before 0.7.0. Treat any credential passed as a tool argument as exposed in your logs and rotate it — in practice
database_passwordandconnection_string. Those logs may also hold plaintext passed to the tokenize tools, so review who can read them and how long they are kept. Log output also changed shape; see the 0.7.0 entry in the CHANGELOG.
Endpoint overrides
Every ALTR service endpoint can be pointed elsewhere, which is useful against a non-production ALTR environment. All are optional — leave them unset in normal use.
The eight per-service endpoints are derived from your ORG_ID as
https://<ORG_ID>.<service>.live.altr.com, five of them with a path appended
(a version, or /v1/dam-alerting). An override replaces the whole value, so it
must include that path where the default has one — see the table.
Variable | Default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Restricting Tools
Use RESTRICTED_TOOLS to hide specific tools from MCP clients. Restricted tools are removed from the tool list and blocked if called directly.
Names must match the registered tool name exactly. An entry that matches nothing restricts nothing, and is logged as a warning the first time a client lists tools. Note that 11 tools were renamed from delete_* to disconnect_* in 0.4.0.
For example, to give a team read-only access without any destructive operations:
RESTRICTED_TOOLS=disconnect_database,delete_policy,delete_rule,disconnect_tag,disconnect_tag_by_details,delete_classifier,delete_collection,disconnect_sc_repo,disconnect_sc_sidecarOr in the Claude Desktop config:
{
"mcpServers": {
"altr": {
"command": "uvx",
"args": ["altr-mcp"],
"env": {
"ORG_ID": "your-org-id",
"MAPI_KEY": "your-api-key",
"MAPI_SECRET": "your-api-secret",
"RESTRICTED_TOOLS": "disconnect_database,delete_policy,delete_rule,disconnect_tag"
}
}
}
}This is an operator-level safety net — it prevents accidental or unwanted tool usage but is not a substitute for proper API key permissions.
Running over HTTP
With the default stdio transport, your AI client starts the server as its own subprocess, so nothing else can reach it. With MCP_TRANSPORT=sse or streamable-http, the server listens on a port, and every tool call runs with your organization's API key. So:
The default address is loopback.
MCP_HOSTdefaults to127.0.0.1, so only clients on the same machine can connect, and no token is needed. Without a token, the server also rejects any request whoseHostorOriginheader is not a loopback name (localhost,127.0.0.1or[::1]), so a web page open in a local browser cannot use it. Pages served from this machine are trusted, whatever their port, so local tools such as the MCP Inspector keep working.Any other address needs a token. To accept connections from other machines, set
MCP_HOST(for example0.0.0.0) andMCP_AUTH_TOKEN. The server refuses to start with a non-loopbackMCP_HOSTand no token. Clients send the token asAuthorization: Bearer <token>, and a request without it gets401. The token may contain only letters, digits and-._~+/, with=only at the end. A reverse proxy on the same machine should also use a token, since it sends its ownHostheader.Use TLS. The server speaks plain HTTP, and a bearer token sent in the clear can be read on the network. Put it behind a reverse proxy or gateway that terminates TLS.
Or let a gateway authenticate. If a gateway in front of the server checks every request itself, for example with your identity provider, set
MCP_ALLOW_UNAUTHENTICATED=trueinstead of a token. This also turns off theHostandOrigincheck on a loopback address, so a gateway on the same machine that passes those headers through keeps working. The server logs a warning at startup, since it then accepts any request that reaches it.
Generate a token with:
python3 -c "import secrets; print(secrets.token_urlsafe(32))"For example, in a container that a gateway reaches over the network:
MCP_TRANSPORT=streamable-http MCP_HOST=0.0.0.0 MCP_AUTH_TOKEN=<token> uvx altr-mcpThe token is a shared secret: anyone who has it can call every tool the server exposes. Treat it like the API key, and combine it with RESTRICTED_TOOLS to limit what a client can do.
Setup
Claude Desktop
Add the following to your claude_desktop_config.json (Settings > Developer > Edit Config):
{
"mcpServers": {
"altr": {
"command": "uvx",
"args": ["altr-mcp"],
"env": {
"ORG_ID": "your-org-id",
"MAPI_KEY": "your-api-key",
"MAPI_SECRET": "your-api-secret"
}
}
}
}Claude Code (CLI)
claude mcp add altr -e ORG_ID=your-org-id -e MAPI_KEY=your-api-key -e MAPI_SECRET=your-api-secret -- uvx altr-mcpThis writes the config to .mcp.json which can be committed to share with your team.
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-scoped):
{
"mcpServers": {
"altr": {
"command": "uvx",
"args": ["altr-mcp"],
"env": {
"ORG_ID": "your-org-id",
"MAPI_KEY": "your-api-key",
"MAPI_SECRET": "your-api-secret"
}
}
}
}VS Code (GitHub Copilot)
Open User Settings JSON (Ctrl+Shift+P → "Preferences: Open User Settings (JSON)") and add:
{
"mcp": {
"servers": {
"altr": {
"command": "uvx",
"args": ["altr-mcp"],
"env": {
"ORG_ID": "your-org-id",
"MAPI_KEY": "your-api-key",
"MAPI_SECRET": "your-api-secret"
}
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"altr": {
"command": "uvx",
"args": ["altr-mcp"],
"env": {
"ORG_ID": "your-org-id",
"MAPI_KEY": "your-api-key",
"MAPI_SECRET": "your-api-secret"
}
}
}
}Running from Local Source
To run from a local clone instead of the published PyPI package:
Claude Code:
claude mcp add altr \
-e ORG_ID=your-org-id \
-e MAPI_KEY=your-api-key \
-e MAPI_SECRET=your-api-secret \
-- uv run --directory /path/to/altr-mcp altr-mcpClaude Desktop:
{
"mcpServers": {
"altr": {
"command": "uv",
"args": ["run", "--directory", "/path/to/altr-mcp", "altr-mcp"],
"env": {
"ORG_ID": "your-org-id",
"MAPI_KEY": "your-api-key",
"MAPI_SECRET": "your-api-secret"
}
}
}
}CLI (Optional)
This section is for building a standalone CLI binary from the MCP server. If you just want to use the server with Claude Desktop or Claude Code, skip to Tools.
A standalone CLI lets you call ALTR tools directly from the terminal without an MCP client. It's built with mcporter, an open-source tool that compiles MCP servers into native CLI binaries. See the mcporter docs for the full set of options.
Prerequisites
mcporter itself does not need to be installed separately — npx downloads and runs it on demand.
Building
From the repo root:
npx mcporter generate-cli --command "uv run --directory . altr-mcp" --name altr-cli --compile ./altr-cliThis generates a compiled binary at ./altr-cli.
Usage
Set your credentials as environment variables, then run any tool:
export ORG_ID=your-org-id
export MAPI_KEY=your-api-key
export MAPI_SECRET=your-api-secret
# List databases
./altr-cli get-databases
# Get a specific database ID
./altr-cli get-database-id --database-name "my_database"
# Create a masking policy
./altr-cli create-policy --tag "STOPLIGHT"
# Add rules (pass JSON string for complex params)
./altr-cli add-rules --policy-id "TAG#abc123" --rules '[{"masking_policy": 10001, "role": "PUBLIC", "tag_value": "red"}]'
# Search query audits
./altr-cli search-query-audits --limit 10
# JSON output
./altr-cli get-databases --output json
# See all available commands
./altr-cli --helpThe CLI runs the MCP server locally via uv run and requires the repo to be present at the working directory. All environment variables from the Configuration section apply.
Tools
For a full breakdown of every tool with parameters, behavior, and examples, see docs/index.md.
Domain | Tools | What it does |
8 | Connect Snowflake, OLTP, and Databricks data sources. Setup per platform: Snowflake, OLTP, Databricks. | |
8 | Manage Snowflake tag connections to ALTR. See Connecting Snowflake Tags to ALTR. | |
9 | Create masking policies and per-role rules. Tag-based (Snowflake, Databricks) and column-based (Snowflake only). Masking levels 10000–10009, limited by policy type ( | |
52 | Run automated data classification scans. Scans run a collection of classifiers on Snowflake (ALTR Hosted or In-Warehouse), Databricks, and database and file repositories through an agent, as the console's Classify Data wizard does. Includes findings-tree navigation, human review decisions, report groups, ALTR-managed collections, and classifying single files with | |
5 | Access management policies for Snowflake and OLTP. | |
4 | Review, approve and deny data access requests. | |
6 | Search sidecar, Snowflake query, and platform system audits. | |
17 | Create, schedule, and review structured audit report definitions and instances, including comments and sign-offs. | |
10 | Create match and threshold alert rules over sidecar and Snowflake audit events; triage, comment on, and acknowledge the alerts they fire. | |
9 | Monitor ALTR sidecar proxy agent and sidecar instance health. | |
38 | Configure the ALTR sidecar proxy — agents, repos, repo users, service users, sidecars, listeners, and bindings. | |
4 | Tokenize and detokenize values using ALTR vaulted tokenization. | |
4 | Tokenize and detokenize values using ALTR critical tokenization. | |
9 | Manage FPE encryption keys and tweaks. |
Critical callouts
A few things are easy to miss and worth surfacing here:
Snowflake tags vs Databricks tags. A Snowflake tag is a first-class ALTR object — you register it with connect_tag, it gets a tag_group_id, and shows up in get_tags, get_tag_details*, update_tag, and disconnect_tag*. A Databricks tag is the opposite: not an ALTR object at all, just a raw string you pass into create_policy (with policy_type="PUSHDOWN" and database_ids=[…]). Databricks tags never appear in get_tags and do not have a tag_group_id. None of the Tags tools apply to Databricks.
Databricks create_policy requirements. When creating a masking policy for a Databricks metastore, you must pass database_ids as a list — even for a single database (e.g. database_ids=[2167]) — and set policy_type="PUSHDOWN". Omitting database_ids or using policy_type="TAG" will be rejected by the API. Snowflake policies do the opposite: omit database_ids and let policy_type default to TAG.
Data Source Support
Platform setup guides on the ALTR docs site:
OLTP databases (PostgreSQL, MySQL, Oracle, SQL Server)
Feature | Snowflake | OLTP (via sidecar) | Databricks |
Database connections | ✅ | — | ✅ |
Masking policies | ✅ | ❌ | ✅ |
Classification | ✅ | ✅ | ⚠️ Partial |
Access management policies | ✅ | ✅ | ❌ |
Access requests | ✅ | ❌ | ❌ |
Query audit logging | ✅ | ✅ | ❌ |
System audit logging | ✅ | ✅ | ❌ |
Sidecar configuration | — | ✅ | — |
Telemetry & monitoring | — | ✅ | — |
Legend: ✅ Supported ⚠️ Partial ❌ Not supported — Not applicable
Classification processing locations: every scan runs a collection of classifiers, and where it runs depends on the source, as in the console.
Source | Tool | Processing location |
Snowflake |
| ALTR Hosted (default) or In-Warehouse |
Databricks |
| ALTR Hosted |
Database repositories (Oracle, MSSQL, PostgreSQL, MySQL, MongoDB, Cassandra) |
| Agent |
File repositories (S3, filesystem) |
| Agent |
Google DLP and Amazon Comprehend conditions in a collection run with ALTR's own services on ALTR Hosted scans, and with the agent's own Google Cloud and AWS credentials on agent scans; In-Warehouse scans skip Google DLP, Content Type and Amazon Comprehend conditions. An agent scan fails at start if the agent isn't configured for a kind its collection has.
Access management policies (Databricks): This MCP server does not currently expose Databricks grant or access management APIs. For Databricks access control, use the Databricks UI or REST API directly.
OLTP refers to relational databases (PostgreSQL, MySQL, Oracle, SQL Server) accessed through a customer-managed ALTR sidecar proxy.
Troubleshooting
Checking which version you are running
uvx altr-mcp --versionThis works without credentials. Your AI client also reports the same version as the server version when it connects, which is the quickest way to confirm the client actually picked up an upgrade.
uvx: command not found
Install uv: pip install uv or via the official installer.
Server not appearing in your AI client
Restart your AI client after editing the config file — changes are not picked up automatically.
ERROR: Missing required environment variables
Verify ORG_ID, MAPI_KEY, and MAPI_SECRET are set in the env block of your client config. Variable names are case-sensitive.
Tools returning {"success": false, ...}
HTTP status | Likely cause | Fix |
| Invalid credentials | Verify |
| Feature not enabled for this organization | The endpoint exists but is gated by an ALTR feature flag your org doesn't have turned on. Contact ALTR support to confirm the feature is enabled for your account. |
| Resource not found | Confirm the ID exists in your organization |
| Rate limited | The server retries automatically up to 3× with backoff; if persistent, reduce request frequency |
A tool is missing from the tool list
Check whether the tool name appears in the RESTRICTED_TOOLS env var in your client config. Restricted tools are hidden from the tool list entirely.
A restricted tool is still exposed
RESTRICTED_TOOLS matches names exactly, so a misspelled or renamed entry restricts nothing. Check the server log for tool_restriction_middleware.unknown_tools, which names any entry that matched no registered tool.
Timeouts on large result sets
Use pagination parameters (limit, offset, or cursor) available on audit, telemetry, and classification tools to reduce response size.
Development
Running Tests
# Install dependencies
uv sync --extra dev
# Run all tests
uv run pytest
# Run with verbose output
uv run pytest -v
# Run a specific test file
uv run pytest tests/integration/test_database.py
# Run a specific test
uv run pytest tests/integration/test_database.py::test_create_database_with_service_user
# Run with coverage report (terminal)
uv run pytest --cov=altr_mcp --cov-report=term-missing
# Run with coverage and generate an HTML report at htmlcov/index.html
uv run pytest --cov=altr_mcp --cov-report=htmlProject Structure
altr_mcp/
server.py # MCP server entrypoint and tool registration
settings.py # Pydantic settings (env vars)
instructions.md # System prompt for LLM tool guidance
tools/ # Tool definitions (one file per domain)
utils/ # API client functions (one file per API)
tests/
unit/ # Unit tests (settings, models, annotations)
integration/ # Integration tests (httpx mocks per domain)Learn More
Platform setup
Data access controls
Discovery and observability
Protocol
License
Copyright (C) 2026 ALTR Solutions, Inc.
GNU General Public License v3.0 or later (GPL-3.0-or-later). See
LICENSE.md for the copyright notice and the full license text.
Available Tools
133 toolsadd_classifiers_to_collectionA
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.
Inputs: collection_name (required), classifier_names (required). Returns: object
add_rulesA
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_rolestag_value: str — exact tag value this rule applies to (case-sensitive)
Inputs: policy_id (required), rules (required). Returns: object
approve_access_requestB
Approve a pending access request.
Inputs: request_id (required), justification (required). Returns: object
archive_report_definitionADestructive
Archive (soft-delete) an audit report definition.
Archived definitions are hidden from normal listings but can be
restored with restore_report_definition.
Inputs: definition_id (required). Returns: object
cancel_access_requestB
Cancel an access request you created.
Inputs: request_id (required), justification (required). Returns: object
connect_tagA
Connect a Snowflake tag to ALTR so it can be used in masking policies.
SNOWFLAKE ONLY — do NOT use for Databricks. There is no Databricks
equivalent of this tool: Databricks tags are not stored as ALTR
objects, they are just raw strings referenced at policy-creation
time. Skip connect_tag entirely for Databricks and pass the raw
tag name string directly to create_policy.
For Snowflake, this call registers an existing Snowflake tag as a
first-class ALTR tag object — it gets a tag_group_id, masking
configuration, etc. The tag must already exist in Snowflake. Once
connected, it appears in get_tags, can be inspected with
get_tag_details*, edited with update_tag, and used in
create_policy.
The tool automatically resolves the friendly name to the actual Snowflake database name for the API call.
Inputs: database_name (required), schema_name (required), tag_name (required). Returns: object
create_access_requestA
Create a new access request for data access approval.
Submits a request that must be approved before access is granted.
Use get_access_requests to check status after creation.
Each rule follows the same format as access management policy rules:
actors: list with 'type' ("role"), 'condition', and 'identifiers'.
objects: list with 'type' ("database"|"schema"|"table"|"view"), 'condition', and 'identifiers' or 'fully_qualified_identifiers'.
access: list with 'name' ("read"|"write").
Inputs: requester (required), justification (required), connection_id (required), rules (required), +3 more. Returns: object
create_classifierA
Create a custom data classifier for detecting specific data patterns.
Use when ALTR's built-in classifiers don't cover your data types. Custom classifiers can be added to collections and used in classification jobs.
Inputs: classifier_name (required), description (required), minimum_threshold (required), pattern (required), +1 more. Returns: object
create_collectionA
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
create_job to scan your database. Review results
with get_classification_report to see which
columns were detected.
Inputs: collection_name (required), description. Returns: object
create_databaseA
Connect a new data source to the ALTR platform.
Supports two authentication modes:
Service user (keypair auth — recommended for Snowflake): Provide
service_user_idfromget_service_users. No password, hostname, or port needed.Password auth: Provide
database_username,database_password,hostname, anddatabase_port.
After creation, use get_databases to confirm the connection.
Inputs: friendly_database_name (required), database_type (required), database_name (required), service_user_id, +4 more. Returns: object
create_databricks_databaseA
Connect a Databricks workspace to the ALTR platform.
Supports two authentication modes:
Service user (token auth — recommended): Provide
service_user_idfromget_service_users.Password auth: Provide
database_usernameanddatabase_password.
After creation, use get_databases to confirm the connection.
Inputs: friendly_database_name (required), database_name (required), hostname (required), database_username, +2 more. Returns: object
create_databricks_jobA
Run a GDLP classification scan on a Databricks database.
Scans the Databricks catalog to identify sensitive data columns using
ALTR's built-in GDLP classifiers. Runs asynchronously — after
creating the job, use get_jobs to poll for completion, then
get_classification_report to view results.
Inputs: database_id (required). Returns: object
create_jobA
Run an automated classification scan to discover sensitive data in your database.
Scans database columns using classifiers in the specified collection to identify columns containing PII, financial data, etc.
Classification jobs run asynchronously and can take
10-30+ minutes depending on database size. After
creating a job, use get_jobs to poll for
completion, then get_classification_report to
view results.
Inputs: job_type (required), database_id (required), collection_name (required). Returns: object
create_keyA
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.
Inputs: namespace (required), name (required). Returns: object
create_oltp_access_policyA
Create an access management policy for an OLTP datasource.
Each rule in the list must contain:
type: "read"
actors: list of dicts with 'type' ("idp_user"|"idp_group"), 'condition' ("equals"), and 'identifiers' (list of str).
objects: list of dicts with 'type' ("column") and 'identifiers' (list of dicts with database/schema/table/column keys, each having 'name' (str) and 'wildcard' (bool)).
Inputs: policy_name (required), description (required), repo_name (required), database_type (required), +3 more. Returns: object
create_policyA
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 atag_group_id, a masking configuration, and shows up inget_tags. You reference it here by its UPPERCASE name.A Databricks tag is NOT an ALTR object — it is just a raw string referenced at policy-creation time. There is no
connect_tagstep, notag_group_id, and it will never appear inget_tags. The string you pass here is what gets stored on the policy.
Snowflake: The tag param must be the UPPERCASE tag name as
returned by get_tags. The tag MUST already be connected to ALTR via
connect_tag before creating a policy. Do NOT pass database_ids for
Snowflake — the API will reject it.
Databricks: The tag param is any raw tag name string (e.g.,
"pac_access_level") — case-insensitive, no connection step required.
Do NOT call connect_tag and do NOT look the tag up in get_tags;
Databricks tags will not be there. You MUST set policy_type to
"PUSHDOWN" — the API rejects "TAG" for Databricks metastores.
You MUST also pass database_ids as a list of ALTR database IDs
for the target Databricks metastore(s) (from get_databases).
database_ids is required for Databricks, and it is ALWAYS a
list — even when targeting a single database, wrap the ID in a
list (e.g., database_ids=[2167], not database_ids=2167).
Omitting database_ids will be rejected by the API.
Available masking levels:
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 (replace with 12/31/9999)
Inputs: tag (required), policy_type, database_ids. Returns: object
create_report_commentB
Add a comment to a report instance.
Inputs: definition_id (required), instance_id (required), text (required). Returns: object
create_report_definitionA
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.
Inputs: name (required), integration_type (required), description, lookback_days, +6 more. Returns: object
create_report_sign_offA
Sign off on a report instance.
Records the current user's approval of the report. After signing off, comments can be pinned on the instance.
Inputs: definition_id (required), instance_id (required), action, attestation, +1 more. Returns: object
create_sc_agentC
Create a new ALTR agent.
Inputs: agent_type (required), name (required), description, public_key_1, +1 more. Returns: object
create_sc_agent_taskA
Create a task for an agent.
A task runs against a specific repo on a schedule.
Configuration depends on agent type (check with
get_sc_agent first).
CLASSIFIER agent configuration:
classification_type: must be 5
sample_strategy: "ROWS" or "PERCENT"
collection_name: classifier collection name Do NOT include SIS fields (service_name, audit_file_path, etc.) for classifier agents.
SIS (audit) agent configuration varies by DB:
Oracle: optional 'initial_audit_timestamp', 'service_name'
MSSQL: 'audit_file_path' (required, absolute path)
PostgreSQL: 'audit_file_path', 'audit_file_type' (log/csv/json), optional 'log_line_prefix'
MySQL: either 'table_name' or 'audit_file_path' Do NOT include classifier fields for SIS agents.
Schedule: 'type' ("CRON"), 'value' (cron expression), optional 'max_duration' (ISO 8601), optional 'timezone' (e.g. "America/New_York").
Inputs: agent_id (required), name (required), repo_name (required), configuration (required), +3 more. Returns: object
create_sc_repoB
Create a new database repository for sidecar proxying.
Inputs: name (required), repo_type (required), hostname (required), port (required), +1 more. Returns: object
create_sc_repo_userA
Create a repo user with credential reference.
Provide exactly one of aws_secrets_manager or azure_key_vault.
Inputs: repo_name (required), username (required), aws_secrets_manager, azure_key_vault. Returns: object
create_sc_service_userA
Create a service user for a repository.
Provide exactly one of aws_secrets_manager or azure_key_vault.
Inputs: repo_name (required), username (required), resource (required), aws_secrets_manager, +1 more. Returns: object
create_sc_sidecarC
Create a new sidecar.
Inputs: name (required), hostname (required), description, public_key_1, +3 more. Returns: object
create_sc_sidecar_bindingB
Bind a repository to a sidecar listener port.
Inputs: sidecar_id (required), port (required), repo_name (required). Returns: object
create_snowflake_access_policyA
Create an access management policy for a Snowflake datasource.
Defines which roles can access which databases, schemas, or tables with read or write permissions. Policies are enforced by ALTR and checked on a schedule.
Each rule in the list must contain:
actors: list of dicts with 'type' ("role"), 'condition' ("equals"|"starts_with"|"ends_with"), and 'identifiers' (list of str).
objects: list of dicts with 'type' ("database"|"schema"|"table"), 'condition' ("equals"|"starts_with"|"ends_with"| "fully_qualified"), and 'identifiers' (list of str) or 'fully_qualified_identifiers' (list of dicts with database/schema/table/view keys).
access: list of dicts with 'name' ("read"|"write").
Optionally, rules may include 'tagged_objects' for tag-based targeting:
tagged_objects: list of dicts with 'check_against' (list of "databases"|"schemas"|"tables"|"views"), 'tagged_with' (list of dicts with database/schema/name/value keys), and 'tag_condition' ("or"|"and").
Inputs: policy_name (required), description (required), connection_id (required), rules (required), +2 more. Returns: object
create_tweakA
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.
Inputs: name (required). Returns: object
critical_delete_tokensADestructive
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.
Inputs: tokens (required). Returns: object
critical_detokenizeARead-only
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.
Inputs: tokens (required). Returns: object
critical_partial_detokenizeARead-only
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.
Inputs: values (required). Returns: object
critical_tokenizeA
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.
Inputs: values (required), deterministic. Returns: object
deactivate_keyADestructive
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.
Inputs: namespace (required), name (required), sequence (required). Returns: object
deactivate_tweakADestructive
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.
Inputs: name (required), sequence (required). Returns: object
delete_agent_instanceBDestructive
Delete an agent instance.
Inputs: agent_id (required), instance_id (required). Returns: object
delete_classifierADestructive
Remove a custom classifier you created.
Cannot delete ALTR managed classifiers. Only use for
classifiers you created with create_classifier.
Inputs: classifier_name (required). Returns: object
delete_collectionADestructive
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.
Inputs: collection_name (required). Returns: object
delete_databaseADestructive
Disconnect and remove a database from ALTR.
Permanently removes the database connection. This does not affect the actual database — only the ALTR connection to it.
Inputs: database_id (required), ignore_errors. Returns: object
delete_policyADestructive
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.
Inputs: policy_id (required). Returns: object
delete_ruleADestructive
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.
Inputs: policy_id (required), rule_id (required). Returns: object
delete_sc_agentADestructive
Delete an agent. Agent must have task_count of 0.
Inputs: agent_id (required). Returns: object
delete_sc_agent_taskADestructive
Delete an agent task.
Atomically removes the task and decrements the agent's and service user's task counts.
Inputs: agent_id (required), task_id (required). Returns: object
delete_sc_repoADestructive
Delete a repository. Must have no users or bindings.
Inputs: repo_name (required). Returns: object
delete_sc_repo_userCDestructive
Delete a repo user.
Inputs: repo_name (required), username (required). Returns: object
delete_sc_service_userCDestructive
Delete a service user.
Inputs: repo_name (required), username (required). Returns: object
delete_sc_sidecarADestructive
Delete a sidecar. Must have no listeners.
Inputs: sidecar_id (required). Returns: object
delete_sc_sidecar_bindingBDestructive
Remove a repo binding from a sidecar listener port.
Inputs: sidecar_id (required), port (required), repo_name (required). Returns: object
delete_sidecar_instanceCDestructive
Delete a sidecar instance.
Inputs: sidecar_id (required), instance_id (required). Returns: object
delete_tagADestructive
Delete 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 delete 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 deletion will fail.
Inputs: tag_group_id (required). Returns: object
delete_tag_by_detailsADestructive
Delete a tag masking 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 delete_tag when you don't have the tag_group_id
but know the database/schema/tag details.
Inputs: database_id (required), database_name (required), schema_name (required), tag_name (required), +1 more. Returns: object
delete_task_telemetryBDestructive
Delete telemetry for a specific task.
Inputs: task_id (required). Returns: object
deny_access_requestB
Deny a pending access request.
Inputs: request_id (required), justification (required). Returns: object
deregister_sc_sidecar_listenerB
Remove a listener port from a sidecar.
Inputs: sidecar_id (required), port (required). Returns: object
get_access_requestARead-only
Get details for a specific access request.
Inputs: request_id (required). Returns: object
get_access_requestsARead-only
List access requests in your ALTR organization.
Inputs: limit, requester, status, sort, +1 more. Returns: object
get_agent_instanceARead-only
Get details for a specific agent instance.
Inputs: agent_id (required), instance_id (required). Returns: object
get_agent_instancesARead-only
List running instances for a specific ALTR agent.
Inputs: agent_id (required), limit, contiguous_id. Returns: object
get_agent_task_telemetryARead-only
Get task telemetry for a specific agent.
Returns task status, messages, and metadata for tasks assigned to this agent.
Inputs: agent_id (required), limit, contiguous_id. Returns: object
get_audit_resultsARead-only
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.
Inputs: search_uuid (required), limit, next_page_token. Returns: object
get_classification_reportARead-only
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).
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.
Inputs: job_id (required). Returns: object
get_classifiersARead-only
List all available data classifiers (pattern-based detectors) in ALTR.
Classifiers automatically detect sensitive data types like SSNs, emails, and phone numbers. Includes both ALTR-managed and custom classifiers.
Inputs: no named parameters. Returns: object
get_collectionsARead-only
List classifier collections (groups of classifiers used for classification jobs).
A collection is required when creating a classification
job with create_job. Check for existing collections
(e.g., "ALTR Managed") before creating new ones.
Inputs: no named parameters. Returns: object
get_database_idARead-only
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_job.
Inputs: database_name (required). Returns: object
get_databasesARead-only
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.
Inputs: no named parameters. Returns: object
get_jobsARead-only
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. If
status is still RUNNING, wait longer before checking
again.
Typical workflow: After creating a job with
create_job, wait 15-30+ minutes, then use this
function to check status. When status is COMPLETED,
use the job_id with get_classification_report to
view results.
Inputs: limit, contiguous_id, status, job_type, +3 more. Returns: object
get_keyARead-only
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.
Inputs: namespace (required), name (required), sequence. Returns: object
get_policiesARead-only
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 part)
10008: Show last four hash (hash prefix, show last 4)
10009: Constant date (replace with 12/31/9999)
Inputs: policy_type. Returns: object
get_query_audit_resultsARead-only
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.
Inputs: search_uuid (required), limit, next_page_token. Returns: object
get_report_definitionARead-only
Get a single audit report definition by ID.
Inputs: definition_id (required). Returns: object
get_report_instanceBRead-only
Get a single report instance by ID.
Inputs: definition_id (required), instance_id (required). Returns: object
get_report_instance_download_urlARead-only
Get a download URL for a report instance.
Returns a pre-signed URL to download the report file.
Inputs: definition_id (required), instance_id (required), format. Returns: object
get_report_sign_offARead-only
Get the current user's sign-off for a report instance.
Returns null/empty if the current user has not yet signed off.
Inputs: definition_id (required), instance_id (required). Returns: object
get_rolesARead-only
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.
Inputs: no named parameters. Returns: object
get_rulesARead-only
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 (replace with 12/31/9999)
Inputs: policy_id (required). Returns: object
get_sc_agentCRead-only
Get details for a specific agent.
Inputs: agent_id (required). Returns: object
get_sc_repoBRead-only
Get details for a specific repository.
Inputs: repo_name (required). Returns: object
get_sc_repo_userBRead-only
Get details for a specific repo user.
Inputs: repo_name (required), username (required). Returns: object
get_sc_service_userBRead-only
Get details for a specific service user.
Inputs: repo_name (required), username (required). Returns: object
get_sc_sidecarBRead-only
Get details for a specific sidecar.
Inputs: sidecar_id (required). Returns: object
get_sc_sidecar_bindingARead-only
Get a specific sidecar-repo binding.
Inputs: sidecar_id (required), port (required), repo_name (required). Returns: object
get_service_usersARead-only
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).
Inputs: no named parameters. Returns: object
get_sidecar_instanceBRead-only
Get details for a specific sidecar instance.
Inputs: sidecar_id (required), instance_id (required). Returns: object
get_sidecar_instancesARead-only
List running instances for a specific sidecar.
Inputs: sidecar_id (required), limit, contiguous_id. Returns: object
get_system_audit_resultsARead-only
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.
Inputs: token (required). Returns: object
get_tag_detailsARead-only
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.
Inputs: database_id (required), database_name (required), tag_name (required), schema_name (required), +1 more. Returns: object
get_tag_details_by_group_idARead-only
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.
Inputs: tag_group_id (required). Returns: object
get_tagsARead-only
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.
Inputs: no named parameters. Returns: object
get_tag_valuesARead-only
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.
Inputs: tag_name (required). Returns: object
get_task_telemetryARead-only
Get telemetry for a specific task by its ID.
Inputs: task_id (required). Returns: object
get_tweakARead-only
Get a single FPE tweak by name.
Returns the current (latest) version of the tweak. Pass sequence
to retrieve a specific historical version instead.
Inputs: name (required), sequence. Returns: object
list_keysARead-only
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.
Inputs: namespace (required), contiguous_id, limit, contain, +1 more. Returns: object
list_report_commentsARead-only
List comments on a report instance.
Pinned comments appear first, followed by the rest in chronological order.
Inputs: definition_id (required), instance_id (required), limit, cursor. Returns: object
list_report_definitionsARead-only
List audit report definitions.
Returns paginated definitions ordered by creation time descending.
Use cursor to page through results.
Inputs: limit, cursor, archived. Returns: object
list_report_instancesARead-only
List report instances for a given definition.
Each instance represents one generated report. Instances are returned newest-first.
Inputs: definition_id (required), limit, cursor. Returns: object
list_report_sign_offsARead-only
List all sign-offs for a report instance.
Returns sign-offs from all users who have reviewed the instance.
Inputs: definition_id (required), instance_id (required), limit, cursor. Returns: object
list_sc_agentsBRead-only
List ALTR agents (SIS or CLASSIFIER) in your organization.
Inputs: limit, contiguous_id, agent_type, name_starts_with. Returns: object
list_sc_agent_tasksARead-only
List tasks assigned to an agent.
Inputs: agent_id (required), limit, contiguous_id. Returns: object
list_sc_repo_bindingsCRead-only
List sidecar bindings for a repository.
Inputs: repo_name (required), ports, sidecar_ids, limit, +1 more. Returns: object
list_sc_reposARead-only
List database repositories configured for sidecar proxying.
Inputs: limit, contiguous_id, repo_type. Returns: object
list_sc_repo_usersARead-only
List users configured for a repository.
Inputs: repo_name (required), limit, contiguous_id. Returns: object
list_sc_service_usersARead-only
List service users. Optionally filter by repo.
Inputs: repo_name, limit, contiguous_id, username_starts_with. Returns: object
list_sc_sidecar_bindingsBRead-only
List repo bindings for a sidecar.
Inputs: sidecar_id (required), ports, repo_names, limit, +1 more. Returns: object
list_sc_sidecar_listenersARead-only
List listener ports registered on a sidecar.
Inputs: sidecar_id (required), limit, contiguous_id. Returns: object
list_sc_sidecarsBRead-only
List sidecars in your organization.
Inputs: limit, contiguous_id. Returns: object
list_tweaksARead-only
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.
Inputs: contiguous_id, limit, contain, status. Returns: object
pin_report_commentA
Pin a comment on a report instance.
Only one comment per instance can be pinned at a time. Pinning is allowed after the instance has been signed off.
Inputs: definition_id (required), instance_id (required), comment_id (required). Returns: object
register_sc_sidecar_listenerC
Register a listener port on a sidecar.
Inputs: sidecar_id (required), port (required), database_type (required), advertised_version. Returns: object
remove_classifiers_from_collectionB
Remove classifiers from a collection.
Inputs: collection_name (required), classifier_names (required). Returns: object
restore_report_definitionA
Restore an archived audit report definition.
Inputs: definition_id (required). Returns: object
rotate_keyA
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.
Inputs: namespace (required), name (required), sequence (required). Returns: object
search_auditsA
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.
Inputs: limit, offset, from_date_time, to_date_time, +13 more. Returns: object
search_query_auditsA
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.
Inputs: limit, offset, from_date_time, to_date_time, +11 more. Returns: object
search_system_auditsA
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.
Inputs: category (required), limit, offset, wait, +2 more. Returns: object
trigger_access_policy_checkA
Trigger a manual compliance check for a grant/access management policy.
Runs the policy check immediately instead of waiting for the next scheduled run.
Inputs: policy_id (required). Returns: object
trigger_database_status_syncA
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.
Inputs: database_id (required). Returns: object
trigger_report_definitionA
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.
Inputs: definition_id (required). Returns: object
unpin_report_commentB
Unpin the currently pinned comment on a report instance.
Inputs: definition_id (required), instance_id (required), comment_id (required). Returns: object
update_databaseA
Update a database connection's properties.
Only the fields you provide will be updated; omitted fields remain unchanged.
Inputs: database_id (required), friendly_database_name, max_number_of_connections, max_number_of_batches, +10 more. Returns: object
update_job_statusA
Control a running classification job (pause, cancel, or resume).
Use to manage long-running classification jobs. Status options: PAUSED, CANCELLED, or RUNNING.
Inputs: job_id (required), status (required). Returns: object
update_report_definitionA
Update an existing audit report definition (full replacement).
Replaces the definition's configuration entirely. All fields that should be preserved must be included.
Inputs: definition_id (required), name (required), integration_type (required), description, +7 more. Returns: object
update_ruleA
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 domain, hash local part)
10008: Show last four hash (hash prefix, show last 4)
10009: Constant date (replace with 12/31/9999)
Inputs: policy_id (required), rule_id (required), masking_policy, role, +3 more. Returns: object
update_sc_agentA
Update an existing agent. Only provided fields are changed.
Inputs: agent_id (required), name, description, public_key_1, +1 more. Returns: object
update_sc_agent_taskA
Update an agent task. Only provided fields change.
Configuration update rules vary by database type.
See create_sc_agent_task for details.
Inputs: agent_id (required), task_id (required), name, description, +2 more. Returns: object
update_sc_repoC
Update a repository's description.
Inputs: repo_name (required), description (required). Returns: object
update_sc_repo_userA
Update a repo user's credential reference.
Inputs: repo_name (required), username (required), aws_secrets_manager, azure_key_vault. Returns: object
update_sc_service_userA
Update a service user. Only provided fields are changed.
Inputs: repo_name (required), username (required), resource, aws_secrets_manager, +1 more. Returns: object
update_sc_sidecarA
Update a sidecar. Only provided fields are changed.
Inputs: sidecar_id (required), name, hostname, description, +4 more. Returns: object
update_snowflake_access_policyA
Update an existing Snowflake access management policy.
Replaces the policy's name, description, and rules. See
create_snowflake_access_policy for the rule format.
Inputs: policy_id (required), policy_name (required), rules (required), description. Returns: object
update_tagA
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.
Inputs: tag_group_id (required), database_id (required), friendly_name (required), protection_type, +3 more. Returns: object
vault_delete_tokensADestructive
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.
Inputs: tokens (required). Returns: object
vault_detokenizeARead-only
Detokenize vault tokens to recover plaintext values.
Fails if any value in tokens is not a valid vault token
(format: vaultd_XXXX...). 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.
Inputs: tokens (required). Returns: object
vault_partial_detokenizeARead-only
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.
Inputs: values (required). Returns: object
vault_tokenizeA
Tokenize plaintext values using ALTR vaulted tokenization.
Replaces plaintext strings with vault tokens
(format: vaultd_XXXX...). Tokens are stored in the ALTR vault
and can be detokenized later. Deterministic tokenization produces
the same token for the same input value.
Rate-limited to 492 requests/month and 50 requests/second. Maximum 4096 values per call. Each value must be under 1024 characters.
Inputs: values (required), deterministic. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 133 tools
With 133 tools, there is potential for overlap, but each tool targets a distinct resource-action pair. Descriptions are detailed and clarify platform-specific differences. Some tools like `get_tags`, `get_tag_details`, `get_tag_details_by_group_id` are similar but descriptions distinguish them.
All tools follow a consistent verb_noun pattern (e.g., create_classifier, get_classifiers, delete_database). No mixing of casing or verb styles is observed.
133 tools is excessive for an MCP server. The server attempts to cover the entire ALTR platform with CRUD for many resource types, making it overwhelming for agents to navigate effectively.
The tool surface is broad, covering classification, masking, access policies, tokenization, FPE, sidecar management, auditing, and reporting. Minor gaps exist (e.g., no update for classifiers or collections), but core workflows are well supported.
Maintenance
Related MCP Connectors
Agent-native security, trust, reliability, data and procurement tools for AI workflows.
Company and industrial data for AI assistants: datasets, SQL, dashboards, alarms, with approvals.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
Connect your AI to all your data - 200+ sources, intelligently filtered, compliance-ready.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables intelligent data analysis and querying of Snowflake databases through specialized AI agents. Features 20+ tools for data operations, lineage tracing, usage analysis, and performance optimization with multi-agent architecture.-
- AlicenseNot gradedqualityBmaintenanceA production-grade platform that connects AI assistants to internal databases and filesystems through a single authenticated endpoint. It features role-based access control, SSO integration, and built-in tools for querying SQL databases and managing files with full audit logging.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to scan, redact, and govern sensitive data before sending it to external tools through DLP, secure chat, and shadow AI discovery tools.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceActs as a routing and governance gateway between AI agents and internal databases, data pipelines, and APIs. It semantically filters large tool catalogs down to the most relevant schemas per turn, enforces role-based access with human-in-the-loop approval for mutating actions, and guards Snowflake, Informatica, and PostgreSQL connectors against unsafe queries and stale data.MIT