Skip to content
VaultLens Studio

Tools

The VaultLens MCP server offers 15 tools. Your AI app picks the right tool from your question, so you don’t need to name them. This page helps you understand what the AI did and why a tool might be missing.

How tools are shown

  • Permissions. Each tool needs one permission (scope). The AI only sees tools whose permission you ticked when you approved the connection. See Security and permissions.
  • Your role. Some tools also need an owner or admin, because they show record values or start work. A member’s connection is refused for those, even with the permission ticked.
  • Your plan. Some tools need Analytics or Archive on your plan.
  • Read-only workspaces. If an admin turned on Read-only under Settings → AI connections, the AI doesn’t see trigger_reconcile or run_archive.
  • Annotations. Each tool tells the AI app whether it only reads, or changes something. Many AI apps use this to ask you before running a tool that changes something.
  • Apps. If the connection or workspace is limited to some apps, every tool only sees those apps.

Every tool call is recorded in the workspace audit log, whether it worked or not.

Summary

Tool Permission Role Plan Annotation
get_workspace Read Any Any Read-only
list_apps Read Any Any Read-only
get_schema Read Any Any Read-only
describe_table Read Any Analytics Read-only
query_data Query data Owner or admin Analytics Read-only
get_sync_status Read Any Analytics Read-only
list_jobs Read Any Any Read-only
get_job Read Any Any Read-only
trigger_reconcile Write Owner or admin Analytics Changes something, not destructive
list_archive_settings Read Any Any Read-only
find_archived_record Read Any Any Read-only
list_archive_runs Read Any Any Read-only
get_archive_download_link Read Any Any Read-only
preview_archive Read Owner or admin Archive Read-only
run_archive Run archives Owner or admin Archive Destructive

In a HIPAA workspace, query_data also needs the Read PHI permission and the owner’s BAA confirmation. See HIPAA workspaces.

Workspace and data

get_workspace

Shows the workspace this connection belongs to: its name, whether it is a HIPAA workspace, the plan and what it includes, who is connected and their role, the connection’s permissions, and which apps it can see. The AI uses it to explain why something isn’t allowed.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: none.
  • Example: “What plan is my VaultLens workspace on, and what is this AI connection allowed to do?”

list_apps

Lists the Knack apps connected to VaultLens: id, name, number of tables and records, and whether each has an analytics copy, which database it uses, how fresh it is, and whether live sync is on. The AI calls this first to get an app’s id.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: none.
  • Example: “Which Knack apps are connected to VaultLens?”

get_schema

Shows an app’s tables in the analytics copy: column names, the Knack table each comes from, record counts, and how tables are related (joins). It also gives the AI notes for writing SQL, such as how deleted and archived records are marked. If the app has no analytics copy, or your plan doesn’t include Analytics, it lists the Knack tables and their field names instead.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: appId (from list_apps).
  • Example: “How many tables does my app’s analytics copy have?”

describe_table

Shows one table in detail: each column’s database type and the Knack field and field type it comes from, the live row count, and its relationships. It accepts the database table name, the Knack table name, or a junction table (a table that links two tables in a many-to-many connection).

  • Permission: Read. Plan: Analytics. Read-only.
  • Inputs: appId, table (for example customers, or the Knack table name).
  • Example: “What data type is the price column on the listings table, and which Knack field type does it come from?”

query_data

Runs one read-only SQL SELECT on an app’s analytics copy and returns the rows. This is how the AI answers questions about your records. The analytics copy is PostgreSQL or BigQuery, depending on the app.

  • Permission: Query data. Role: owner or admin. Plan: Analytics. Read-only.
  • Inputs: appId, sql (one SELECT statement, up to 20,000 characters).
  • Limits: up to 500 rows, and about 100 KB of results. Queries stop after 20 seconds. When rows are cut off, the result says so and suggests aggregating or filtering.
  • Example: “Which company has placed the most orders, and how many?”

The AI usually calls get_schema or describe_table first, so it uses the exact table and column names. See query_data guardrails for what queries are allowed.

Syncs and jobs

get_sync_status

Tells you whether an app’s analytics copy is up to date. It starts with a plain-language summary, then gives the details: live sync (changes made in Knack arriving within seconds), the last and next nightly reconcile, records that couldn’t be copied, any running job, and what is left of today’s Knack API budget.

  • Permission: Read. Plan: Analytics. Read-only.
  • Inputs: appId.
  • Example: “Is my analytics copy up to date? Is live sync working?”

list_jobs

Lists recent VaultLens jobs, newest first: full copies, nightly reconciles, archive runs and restores, with status, timing and any error.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: appId (optional), type (optional: clone, reconcile, archive or restore), limit (optional, 1 to 20, default 10).
  • Example: “Why did last night’s sync fail?”

get_job

Shows one job’s status, progress, summary and error, in plain language.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: jobId (from list_jobs).
  • Example: “Has the reconcile you just started finished?”

trigger_reconcile

Starts a reconcile for an app now. VaultLens compares the analytics copy with Knack and copies what changed. It uses the app’s Knack API budget, so the AI is told to start one only when you ask to bring the data up to date. It returns a job id to follow with get_job.

  • Permission: Write. Role: owner or admin. Plan: Analytics.
  • Annotation: changes something; not destructive; safe to repeat.
  • Inputs: appId.
  • Refused when today’s Knack API budget for syncing the app is used up. See Knack API budget.
  • Example: “Bring my app’s analytics copy up to date now.”

Archives

list_archive_settings

Lists an app’s archive settings: which Knack tables they archive (records flagged Yes), whether records are removed from Knack afterwards or only unflagged, test mode, where files are saved, the schedule and the last and next run.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: appId.
  • Example: “Which Knack tables does my app archive, and what happens to records in Knack once they’re archived?”

find_archived_record

Finds which archive run and file a record went to. You can give the archive key (the value of the setting’s key field) or the 24-character Knack record id. It also says if the record has since been restored to Knack. It shows up to 20 matches.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: appId, key.
  • Example: “Inquiry record 5f1c… was archived. Which archive run did it go to, and has it been restored since?”

list_archive_runs

Lists recent archive runs, newest first: when they ran, how many records were archived and removed, the files, and any error.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: appId (optional), limit (optional, 1 to 20, default 10).
  • Example: “When was the last archive run that actually archived records, and how many did it archive?”

Tells you where an archive run’s CSV file is and how to download it: its location (your Knack app, Google Drive, OneDrive or storage bucket) and the VaultLens page where a signed-in person can download it. Files are never passed through the chat.

  • Permission: Read. Plan: any. Read-only.
  • Inputs: runId (from list_archive_runs or find_archived_record), fileId (optional, from find_archived_record; leave out for all files).
  • Example: “Where can I download the file that record went to?”

preview_archive

Shows how many records are flagged for archiving right now under an archive setting, per table, and how many Knack API calls a run would use. It changes nothing.

  • Permission: Read. Role: owner or admin. Plan: Archive. Read-only.
  • Inputs: appId, configId (from list_archive_settings).
  • Example: “Preview what the Inquiries archive setting would archive if it ran now.”

run_archive

Runs an archive setting. Without confirmation it only previews, and nothing changes. With confirmation it starts the run: flagged records are written to CSV, checked, and then removed from Knack or unflagged, depending on the setting. In test mode nothing in Knack is removed or changed.

The AI is told to confirm only after you have seen the preview and clearly agreed. Your AI app may also ask you before it runs this tool, because it is marked destructive.

  • Permission: Run archives. Role: owner or admin. Plan: Archive.
  • Annotation: destructive; not safe to repeat.
  • Inputs: appId, configId, confirm (leave out to preview; true to run).
  • Refused when no records are flagged, or the run needs more Knack API calls than are left today.
  • Example: “Run the Inquiries archive setting.” The AI shows the preview, for example “After they’re archived and verified, 120 records will be REMOVED from Knack”, and waits for you to agree.

What the AI can’t do

There is no tool to create, edit or delete Knack records, change archive settings, or change your workspace. If you ask the AI to “delete all the cancelled orders”, it should tell you it can’t.