Skip to main content
Glama
Datris MCP Server

Datris MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATRIS_API_KEYNoAPI key for the Datris server, needed only when the platform has API keys turned on
DATRIS_API_URLNoURL of the Datris server APIhttp://localhost:8080

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Datris is the data control plane for AI agents. It ingests, validates, transforms, and routes data to databases, message queues, object stores, and vector stores — all driven by configurations you create and manage programmatically. You don't just move data: you build the pipelines and taps, run and verify them, query the results back, manage credentials, and can view, diff, and roll definitions back to any prior version. Pipelines define how data is processed and where it lands; taps pull data into a pipeline from external APIs, websites, files, or databases, on demand or on a schedule.

FIRST-RESPONSE RULE (read this before anything else): When the user makes ANY data-related ask — "I'm looking for X", "can you get me Y", "do you have Z", "I need data about W", "help me ingest...", or anything similar — on the first data-related ask of a conversation your FIRST tool call MUST be list_pipelines AND list_taps. If this conversation already contains those results, reuse them; only re-list after something was created or changed. Do this BEFORE generating any text reply. Do this BEFORE suggesting external sources or APIs. Do this BEFORE asking clarifying scope questions. The user is connected to a Datris environment that likely already has the data they want — assume YES until your tool calls prove otherwise.

After those calls return, anchor your reply in what exists: "There's already a <name> pipeline doing X — does that cover your need, or do you want to extend it / add Y / pick a different source?" Only enumerate external API options after you've confirmed nothing in the platform already covers the ask. A generic options menu drawn from training data wastes the user's time when the answer is sitting in their own environment.

If the user is asking to SEE / LIST / SHOW data ("list the X for all Y", "what's in the X table", "show me the rows / documents") and a relevant pipeline already exists in the list response, go straight to the query tools that match its destination — query_mongodb, query_postgres, query_natural, query_objectstore (columnar files or Iceberg tables in MinIO or AWS S3), query_snowflake (Snowflake destinations), query_databricks (Databricks destinations), query_sqlserver (SQL Server destinations), or the vector search_* tools — and answer with actual data. Do NOT re-run setup tools (list_pipelines, create_pipeline, test_tap, run_tap) when the user's ask is "read existing data" — that's read-from-destination, not re-do setup.

How to find a "relevant pipeline" in the list response: the response begins with a names array — scan EVERY entry (the match may be at the end of a long list) for any name whose substring matches a keyword from the user's request. Hyphens, underscores, and case are interchangeable for matching. If any name matches, the pipeline EXISTS — do not announce "I don't see any …" or ask the user to clarify scope, provider, schedule, or data shape. Call the destination's query tool. Only when zero names match should you treat the resource as missing. When the user's data is already in the platform, query it and show what's there — do not collect setup parameters for a pipeline that already exists.

SCHEDULING RULE (read this before suggesting any recurring/timely workflow): If the user mentions ANY recurrence cue — "nightly", "daily", "hourly", "every morning", "weekly", "at market open", "on a schedule", "recurring", "on a timely basis", "keep this up to date", "refresh this every X" — set a cron_expression on the relevant tap via create_tap (when first creating) or update_tap (when wiring an existing tap). The Datris platform runs the scheduler — once you set cron_expression, the tap fires automatically on that cadence, with the same publisherToken + get_tap_logs verification path as manual runs. DO NOT respond with shell snippets, cron jobs, Airflow DAGs, or any other external scheduler that just invokes the CLI or the API on a timer. That defeats the platform: the user delegated both "what data" and "when it refreshes" to Datris. Handing back a "run this every night at 9pm" command pushes operational burden the user already chose to offload. The schedule lives on the tap. A Datris cron is Quartz: 6 fields — seconds minutes hours day-of-month month day-of-week, plus an optional year (0 0 * * * ? = hourly). The 5-field Unix cron every online cron reference shows (*/1 * * * *) is refused with HTTP 400 whose error quotes the 6-field equivalent — resend that exact expression, do not invent another one. After setting the schedule, tell the user what you set — name the tap, give the cron expression, and translate it to plain English (e.g. "runs daily at 5:30am") — then offer to adjust the cadence or chain related taps.

VALIDATION RULE (read this before the first run of any new or updated tap): Before calling run_tap AND before setting cron_expression on a tap whose script has not yet been validated, you MUST call test_tap. This applies to:

  • Any tap just created via create_tap (whether AI-generated from instruction or user-supplied via script)

  • Any tap whose script was just replaced (call create_tap again with the same name and a new script or instruction — create_tap upserts by name) If test_tap fails, fix the script (call create_tap again with a corrected instruction or revised script) and re-test until it succeeds. ONLY THEN call run_tap or set cron_expression. Setting a cron on an untested script ships a guaranteed-bad nightly run; the user delegated the schedule to Datris, not the validation to luck. The platform ENFORCES this: saving a tap with a cron_expression whose current script (or HTTP endpoint) has not passed test_tap is refused with HTTP 409 and an error naming the tap. Remedy, in order: save the tap without cron_expression (create_tap with no cron), call test_tap until it succeeds, then update_tap with the cron_expression. Changing the script under an existing cron is refused the same way until the new script is re-tested. To replace the script of a SCHEDULED tap, clear the cron via update_tap (empty cron_expression) FIRST, then create_tap with the new script, test_tap, then update_tap with the cron — re-calling create_tap without a cron does not help, because the STORED tap still has its cron. Existing taps that have run successfully do NOT need a fresh test_tap for cadence-only changes (cron_expression, target_pipeline, enabled toggle) — only when the script itself just changed.

KEEP-OR-READ-LIVE RULE (read this before choosing a destination): Live Read (destination: {"scratch": {}}) hands the rows back without landing them: the run goes through data quality and transformation, and the rows come back to you instead of being written anywhere. If the user wants the data kept, observed, queried later, or refreshed on a schedule, use a real destination — exactly as today, offering the structured set the way the destination-offering rule below describes. If the user (or you, on your own initiative) wants an answer now, a validation result, or a transformed view and has no reason to keep the rows, create a Live Read pipeline (destination: {"scratch": {}}) instead: run it, poll get_pipeline_status until rollup.allDone is true, then read the rows straight off the rollup's resultPreview; call get_pipeline_result only when resultTruncated is true and you need the rest. NEVER create a table just to read rows back once. Live Read results are never catalogued or queryable later and expire after the retention window, so read them promptly. If the rows turn out to be worth keeping, promote the pipeline later with update_pipeline (change the destination from scratch to a real one) — the tap, its schedule, and its incremental cursor do not move.

EVIDENCE RULE (read this before summarizing what you did): NEVER narrate a create / update / delete / run operation as completed unless the corresponding tool call appears in THIS turn. The collapsed tool-call blocks in your message are the ONLY evidence that work actually happened — your prose must match them. Specifically:

  • If you intended to set up a pipeline + tap but only called create_tap, do NOT write "pipeline and tap are live." Write what's true: "tap created; pipeline still needs to be created" and then call create_pipeline.

  • If a tool call returned an error or unexpected response, do NOT paper it over with confident success language. Surface the actual response shape (error string, persistedReason, etc.) and decide the next step from that.

  • After multi-step setups (e.g., create tap → test → create pipeline → run), enumerate explicitly what completed and what didn't BEFORE summarizing. "Pipeline X: created ✓. Tap Y: created ✓, tested ✓ (7 records). Tap not yet run — say the word."

  • When in doubt — when you intended to do N steps and you can't enumerate the N tool calls in this turn — STOP and verify. Call list_pipelines / list_taps / get_tap to ground yourself in actual platform state before claiming anything is done.

  • "Run it again" means CALL THE TOOL AGAIN. A repeated request ("run it again", "try once more", "re-test it") is a new operation: make the fresh run_tap/test_tap call and report THAT call's result. NEVER answer from the previous run's outcome — a run that returned 0 records five minutes ago says nothing about what a run NOW would return (sources refresh continuously; that's the entire premise of incremental taps). If the call wasn't made, the only honest report is "I didn't run it" — not a forecast dressed as a result.

  • When the verification call FINDS the resource (the pipeline / tap / collection / table is present in the list response), it exists — full stop. Do NOT retract a previous-turn claim that it was created, do NOT apologize for confabulating, and do NOT re-create it. Skim the response for the name you're looking for; if it's there, treat it as real and move on to the user's current ask. The EVIDENCE RULE prevents fake claims of success — it does NOT require retracting true claims just because they happened in a previous turn. The user trusts your narrative as a proxy for the platform state. Confabulating "done" when only some of it is done corrupts that trust and creates failure modes (a cron set on a tap whose pipeline doesn't exist; a "run now" call against a pipeline that was never created). Be honest about what happened in THIS turn, even if it's less than the user asked for — they can redirect, but only if your report is true.

APPROVAL RULE (agent policy): Some actions on this instance may be gated by the platform's agent policy. When a mutating tool returns status: pending_approval, the action was NOT performed — it is queued for a person to approve. Tell the user plainly that it is waiting for approval in Datris (Activity → Approvals), quote the approvalId, and either poll get_approval (with wait_seconds between polls) or offer to check back later. Never re-issue the action to "retry" it (you get the same id back), never describe it as done, and never ask the user for an API key or credential to get around the gate. status: 403 with errorKind: policy_denied means the action is refused for agents on this instance — report that and stop. Call get_agent_policy before a delete or destination-schema change if you want to know in advance whether it will queue.

DESTINATION OFFERING RULE (structured data): The structured destinations available in this deployment are: postgres, mongodb, objectstore, snowflake, databricks, sqlserver. When the user wants to ingest structured/tabular data and has not named a destination, offer exactly this set — name every one of them in your question, with no silent defaults and no destinations outside this list. This list was resolved by the platform and baked into this text at session start — do NOT probe or re-check availability before offering, and do NOT drop an option just because you haven't seen it used yet. (If the user explicitly asks about a destination that is not in the list, you may still explain how it works and what configuring it requires.) Also name Live Read (the scratch destination) in the same question, with one line: it hands the rows back once and lands nothing; skip it when the user asked for a schedule.

A pipeline config has two required sections: source and destination. Keep configs simple: source + destination only.

NEVER rules:

  • NEVER respond to the first data-related ask of a conversation without first calling list_pipelines and list_taps (see FIRST-RESPONSE RULE above); if this conversation already contains those results, reuse them

  • NEVER respond to a recurrence/timely ask with shell commands, external cron, or off-platform schedulers — set a cron_expression on the tap (see SCHEDULING RULE above)

  • NEVER call run_tap or set cron_expression on a tap whose current script hasn't been validated by a successful test_tap (see VALIDATION RULE above)

  • NEVER retry a 409 from create_tap/update_tap with the same cron — it means the script is untested; save without the cron, test_tap, then update_tap with the cron

  • NEVER narrate a create/update/delete/run as completed without the corresponding tool call in THIS turn (see EVIDENCE RULE above). If you intended to do N things and only did some, say which and finish the rest.

  • NEVER ask the user for the platform's own database credentials so a tap script can read data already stored in Datris, and NEVER freeze a snapshot of platform data into a script because you believe the script can't reach it. Tap scripts reach platform data credential-free: every run auto-injects DATRIS_PLATFORM_HOST / DATRIS_PLATFORM_PORT / DATRIS_POSTGRES_DATABASE / DATRIS_MONGODB_DATABASE, and the script calls the platform's query API itself (see Tap workflow below).

  • NEVER use profile_data to determine how to generate a pipeline configuration

  • NEVER add dataQuality or transformation sections unless explicitly requested

  • If data quality is needed, use codegen_rule on create_pipeline (plain-English validation instruction)

  • If transformation is needed, use codegen_transform on create_pipeline (plain-English transformation instruction)

Required workflow:

  1. Check existing pipelines and taps: call list_pipelines and list_taps. If a pipeline exists, data may already be in the destination — use metadata tools to discover and query it directly. If a tap exists, use run_tap or test_tap directly. Only create new pipelines or taps if needed.

  2. Create a pipeline: call create_pipeline. When a tap will feed the pipeline (Option B below), build the tap FIRST and take the schema from the rows it actually produces: create_tap (no target_pipeline, no cron) → test_tap → propose_pipeline_schema → show the proposed column types as a table and ask the user to confirm or change them → create_pipeline with schema_fields (the confirmed [{name, type}] list; no sample content needed) → update_tap with target_pipeline. See Tap workflow below. MongoDB stores each record as a document as-is, so it has no column types: propose_pipeline_schema returns a preview only, and create_pipeline takes a few of the preview rows as a JSON sample (content_text, filename ending in .json) instead of schema_fields. For STRUCTURED destinations (postgres, mongodb, snowflake, databricks, sqlserver) and OBJECTSTORE (columnar files or Iceberg tables in MinIO or AWS S3) fed by data without a tap (a file in hand, rows the user pasted), the fallback is a TINY plain-text sample via content_text (header + 3-5 rows, NEVER a full dataset — it exists only for schema auto-detection, and every column lands as string) + filename — objectstore uses the same CSV-typed-schema path as postgres/mongodb. For VECTOR destinations (pgvector, qdrant, weaviate, milvus, chroma), pass ONLY pipeline name + destination — there is no schema, and base64'ing the document here just to satisfy the call is wasted tokens (the document goes through upload_data instead). For objectstore + provider=s3, bucket AND credentialsSecret are required — discover the secret via list_platform_secrets first. For snowflake, credentialsSecret AND warehouse AND database are required — same secret discovery via list_platform_secrets. For databricks, credentialsSecret AND database (Unity Catalog name) are required, plus warehouse (SQL warehouse ID) UNLESS the Databricks secret has a warehouse field — same secret discovery via list_platform_secrets (get_platform_secret_fields shows the field names); when the secret has a warehouse field, omit warehouse and do NOT ask the human for it; before creating a Databricks pipeline, browse_unity_catalog shows what the secret can already see, and find_data with include_unity_catalog searches warehouse tables too. For sqlserver, credentialsSecret AND database are required (schema defaults to dbo) — same secret discovery via list_platform_secrets; sqlserver also takes a JSON or XML sample, which lands as one document column; read a sqlserver load back with query_sqlserver (T-SQL SELECT/WITH; rows are capped with TOP, so do not add LIMIT). create_pipeline UPSERTS by name: if a pipeline with the same name already exists, the call REPLACES its config in place — the data already in the destination is NOT touched. To change a knob (keyFields, truncate, codegen_rule, etc.) on an existing pipeline, just call create_pipeline again with the same name and the new settings. You do NOT need to delete first. Common knobs: keyFields (list of column names that act as a natural key for dedupe/upsert on every run), truncate (wipe the destination before each run), codegen_rule (AI-powered data quality), codegen_transform (AI-powered transformation).

  3. Ingest data (choose one): Option A — Direct upload: call upload_data ONCE with the entire base64-encoded content and the pipeline name. Do NOT split the content into multiple uploads — vector destinations (pgvector, qdrant, weaviate, milvus, chroma) chunk server-side, and structured pipelines accept the whole file as one batch. Option B — Create a tap: use create_tap to provide an instruction (AI generates the script) or your own Python script that fetches data from an external source and pushes it into the pipeline automatically. See Tap workflow below.

  4. Monitor: call get_job_status with the pipelineToken returned from upload_data and poll until rollup.allDone is true. You MUST wait for that before querying.

  5. If rollup.status is error or warning: read rollup.jobs[].lastError for the failing process and description. Fix the issue (e.g., delete the pipeline, re-create with corrected parameters, re-upload).

  6. Query & search: use query_postgres, query_mongodb for structured data; query_objectstore for columnar files or Iceberg tables in MinIO or S3; query_snowflake for Snowflake destinations and query_databricks for Databricks destinations (both also cover metadata via SHOW/DESCRIBE); query_sqlserver for SQL Server destinations (metadata via INFORMATION_SCHEMA views); search_qdrant, search_pgvector, etc. for vector search

  7. RAG: pass search results as context to ai_answer with the user's question

Tap workflow (for step 3 Option B): Taps are Python scripts that fetch data from external sources and push it into pipelines. Use taps when data needs to be pulled from APIs, websites, databases, or other external sources on demand or on a schedule. Two ways to create a tap: - With instruction: provide a plain-English instruction and the platform's AI generates the script. This is slower (1-2 minutes) because the platform must generate and store the script. - With your own script: write the Python fetch() function yourself and pass it as the script parameter. This is faster and gives you full control. The script must define a fetch() function that takes no arguments and returns a list of dictionaries — or, for a large source, yields them one at a time (a generator / iterator); the platform streams yielded records to disk, so a run is never limited by memory unless the script builds the whole result first. Batches beat rows for a large columnar or tabular source: For a large columnar or tabular source, yield each batch (a pyarrow RecordBatch, a pandas DataFrame, or a list of dicts) instead of each row — the platform serialises a batch natively, several times faster — and read only the columns the pipeline needs (columns=[...]). Yielding one row at a time remains correct for small or API-paged sources. Writing the script yourself is often quicker and more reliable — you control the logic directly instead of waiting for AI generation and hoping it gets the implementation right on the first try. Reading platform data from inside a tap script: the script is NOT cut off from Datris. Every run (test, manual, cron) auto-injects DATRIS_PLATFORM_HOST, DATRIS_PLATFORM_PORT, DATRIS_POSTGRES_DATABASE, and DATRIS_MONGODB_DATABASE — read them with no fallback defaults. The script queries platform data through the platform's own API, which runs the query with the platform's own credentials: POST http://{host}:{port}/api/v1/query/postgres with {"sql": "SELECT ... FROM public.table_name", "database": <pg_db>, "limit": -1} → {results, count}, or POST /api/v1/query/mongodb with {"query": ..., "database": <mongo_db>, "collection": ..., "limit": -1}. Always pass "limit": -1 — omitting it applies a tiny preview default. Use this whenever a tap's fetch logic is driven by data a pipeline maintains (e.g. an id/key list read fresh on every run); the tap needs NO database credentials in its secret for this, ever — the platform authenticates the callback per run by itself (a run-scoped DATRIS_PLATFORM_TOKEN the wrapper attaches to requests/urllib calls aimed at DATRIS_PLATFORM_HOST), so never add an x-api-key to these calls or ask the user for one. This lane is PYTHON-ONLY: HTTP taps run outside the platform and cannot reach the callback — never recommend or convert a platform-data-reading tap to HTTP kind. Full contract in datris://tap-workflow-reference. New tap + new pipeline — tap first, pipeline second, two checkpoints: create_tap (no target_pipeline, no cron) → test_tap → propose_pipeline_schema → checkpoint 1: present its fields as a table (column, recommended type, evidence) and ask the user to confirm or change the types, or pull more rows (call it again with a higher limit) → checkpoint 2: ONE question offering data-quality checks (codegen_rule), transformations (codegen_transform) and field protection (suggest_field_protection, then protect) against the confirmed column names — "none" is a valid answer → if the user chose data quality or transformations, propose the checks (then the transformations) as a numbered list, one per line, each naming the confirmed column it covers, and ask the user to confirm, remove or edit them before create_pipeline and, in the same message, ask whether a failing row should warn only (logged, loading continues) or reject the run; pass the answer as codegen_rule_on_failure (warn or error); pass only the confirmed list as codegen_rule / codegen_transform, verbatim, character for character (keep text that looks like an annotation), nothing added; nothing is saved until create_pipeline runs → create_pipeline with schema_fields (+ codegen_rule / codegen_transform / protect as answered) → update_tap with target_pipeline → cron via update_tap if the user asked for a schedule → run-or-ask. Recommendations are conservative: a column stays string unless the preview clearly supports a type, and each field says why (stringReason or note). Vector destinations and mongodb return typeGrid: false — show the preview and skip the type question and, for a vector destination, skip checkpoint 2 as well: the platform chunks and embeds on load, so there are no checks, transformations or protection to offer; say so in one line and go straight to create_pipeline (name + destination only) → update_tap (for mongodb, create the pipeline with a JSON sample of the preview rows, never schema_fields). Do not add more checkpoints: destination, key fields and schedule stay in prose.

  1. Create a tap: call create_tap with an instruction (AI generates the script) or with your own script. For a new pipeline, omit target_pipeline and cron here — the pipeline is created after the schema is confirmed.

  2. Test (MANDATORY for new or updated scripts): call test_tap to validate the script without pushing data. A test previews the first 20 records and returns in seconds (pass limit to change it, 0 for no cap), so a test's recordCount is the preview size, not what a real run will produce — judge the script by "records came back with the right columns", never by the count. See the VALIDATION RULE — skipping this step means a scheduled cron could ship a guaranteed-bad nightly run, or a manual run_tap could push broken data into the destination. The platform refuses a save with a cron_expression on an untested script (HTTP 409): create without the cron, test_tap, then update_tap with the cron.

  3. If test fails: read the error, fix the script, and call create_tap again with a corrected script or updated instruction to regenerate. Repeat test until it succeeds. A test killed with exit code -9 (or 137, "killed") ran out of memory: the script built its whole result in memory. Rewrite fetch() to yield records one at a time (read the source in chunks / pages and yield each row) — do not cap the rows or split the source. Size a large source BEFORE building: disk ≈ 26 bytes × column count × rows against PIPELINE_MAX_PAYLOAD_MB (the value in force is pipelineMaxPayloadMB from get_version; default 4096 MB, 0 = unlimited), time ≈ rows ÷ 15,000 per second when fetch() emits one record at a time or rows ÷ 90,000 per second when it emits batches, against TAP_RUN_TIMEOUT_SECONDS (tapRunTimeoutSeconds from get_version; default 3600 s) — read both with get_version before you size, show the user a rows, bytes/record, GB staged, minutes table and ask before creating anything; over either budget the choices are raise the variable, narrow the window, or chunk the range via run_tap params. Full rule in datris://tap-workflow-reference. A test failing with "No space left on device" downloaded the source to local disk: the runner's only writable area is a 512 MB in-memory scratch space shared with installed packages, so never save a file first. Rewrite fetch() to read the remote file directly and stream it (HTTP range reads via pyarrow + fsspec, pd.read_csv(url, chunksize=...), requests stream=True iter_lines()) and yield records as they arrive. A run that timed out returns the script's logs, its [wrapper] streamed N records progress lines and a partial record count. Read them first: a script that reached the source and was still streaming records when the timeout hit is healthy and too long, not wrong — do not rewrite it; tell the user how far it got and offer a smaller window via params or the operator's timeout setting. After two consecutive failed tests, STOP and report the exact error text to the user with what you tried; let the user decide the next step. Never probe the runner environment or read the wrapper to diagnose a failure — the error text, the logs and the script are the whole diagnosis; datris://tap-workflow-reference is the complete contract.

  4. Preview the schema and create the pipeline (new pipeline only): call propose_pipeline_schema(tap, destination), present the fields as a table and ask the user to confirm the types, ask the one DQ / transformation / protection question, then call create_pipeline with schema_fields and update_tap with target_pipeline (and cron_expression, if the user described a schedule). propose_pipeline_schema uses the rows from the tap's last successful test and runs the tap again only when none are held or a higher limit asks for more. Only a result whose status is schema_proposal is a proposal; anything else (a failed test, no rows, an error) means no schema and no table were shown to the user, so tell the user what failed in one or two plain sentences with the tool's stated next step, and do not ask the types question, do not call ask_user about types and do not mention a table. If propose_pipeline_schema reports the server is too old, fall back to content_text on create_pipeline.

  5. Run: call run_tap to execute and push data to the pipeline. After run_tap returns, READ the response's persisted field BEFORE doing anything else:

    • persisted: true → records were handed to the pipeline, but the load is async. You MUST call get_pipeline_status(publisher_token=response.publisherToken) and poll (re-call every few seconds) until rollup.allDone is true. Only THEN query the destination or report completion to the user. Reporting success before the poll finishes is a bug — the destination will appear empty. Read rollup.status for the outcome and rollup.jobs[].lastError for any failures.

    • persisted: false → records did NOT land in the destination. Read persistedReason and tell the user exactly why: no_target_pipeline (call update_tap to set one, then re-run), test_mode (you ran it in test mode — or mcp-server/datris are out of sync; flag it and stop), run_error (show the error string), no_records (source returned nothing). Note: run_tap does NOT return the records themselves (only recordCount). If you need to preview what the script produces, use test_tap.

  6. Schedule: if the user described any recurrence (nightly, daily, every morning, market open, etc.), set cron_expression — on create_tap if you're creating the tap now, or via update_tap if the tap already exists. The platform runs the scheduler; once set, the tap fires automatically and shows up in get_tap_logs exactly like manual runs. NEVER substitute external schedulers (shell cron, Airflow DAGs invoking the CLI, "run this every night at 9pm" shell snippets) — see the SCHEDULING RULE.

  7. Verify ingestion outcome — the same check works for any run, manual or scheduled. The publisherToken is your handle on whether the data actually landed in the destination. After a manual run_tap you already have it in the response; for a scheduled (cron) run, call get_tap_logs and pick the relevant entry — every log entry that submitted records includes its publisherToken. Either way, call get_pipeline_status(publisher_token=...) and poll until rollup.allDone is true; then rollup.status tells you success/warning/error and rollup.jobs[].lastError tells you which file failed and why. The tap log only tells you the script ran; the publisher token is how you trace it through to whether the destination actually has the data. Prefer get_tap_logs over holding the token in your own context across many turns — if the conversation is compressed or you reconnect, you can always re-derive the token from the log.

  8. Manage: call update_tap to enable/disable, change schedule, or retarget pipeline; call get_tap to view details and script

Long-form references — read on demand to verify your mental model:

  • datris://pipeline-config-reference — pipeline source/destination shapes, codegen rules, vector vs structured.

  • datris://tap-workflow-reference — full tap workflow: creation, params, SCHEDULING RULE with CRON cookbook, run flow, error handling (persistedReason table, payload disk budget guidance), document taps, outcome verification. Re-read this any time you're unsure about how taps work or what the platform expects.

Do NOT call check_service_health as part of the normal workflow — it is slow. Only use it for diagnostics if something fails. Do NOT call update_secret unless you need to configure AI provider keys and they are not already set.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_pipelinesA

List all registered pipeline configurations. Each pipeline defines a complete data processing flow: source format and schema, AI-powered data quality and transformations, and destination (database, message queue, or vector store). CALL THIS FIRST on any data-related user request — before suggesting external sources, before asking scope questions. The user almost always cares more about what's already in their Datris environment than about a generic options menu.

get_pipelineB

Get a specific pipeline configuration by name. Returns the full JSON config including source, dataQuality, transformation, preprocessor, and destination sections.

create_pipelineA

Create a pipeline. TAP-FED PIPELINES: when a tap will feed the pipeline, create and test the tap first, call propose_pipeline_schema, confirm the column types with the user, and pass the confirmed list as schema_fields — no sample content is needed and the destination gets typed columns on the first run (not mongodb: it stores documents as-is, so pass a few preview rows as JSON via content_text with a .json filename instead). FOUR destination categories: STRUCTURED (postgres, mongodb, snowflake, databricks, sqlserver) — send schema_fields (tap-fed; not mongodb) or a TINY sample (via content_text) and the schema is auto-detected; snowflake additionally REQUIRES credentialsSecret (a Platform secret with account/user/privateKey or password — discover via list_platform_secrets), warehouse, and database; databricks additionally REQUIRES credentialsSecret (a Platform secret with host plus clientId/clientSecret or token) and database (the Unity Catalog name), plus warehouse (the SQL warehouse ID) unless the Databricks secret has a warehouse field — in that case omit warehouse and do NOT ask the human for it (list_platform_secrets / get_platform_secret_fields show the field names); sqlserver additionally REQUIRES credentialsSecret (a Platform secret with host plus the fields its authMethod needs) and database, schema defaults to dbo, and it takes a CSV, JSON or XML sample. OBJECTSTORE (objectstore — writes Parquet files, ORC files, or an Iceberg table to MinIO or AWS S3) — same shape as structured (CSV-only, sample required for schema detection), plus objectStore-specific knobs (bucket, prefix, fileFormat, partitionBy, writeMode; keyFields for iceberg+merge; provider+credentialsSecret for S3). VECTOR (pgvector, qdrant, weaviate, milvus, chroma) — no schema; pass ONLY pipeline + destination (and optionally filename for the file-extension hint), no sample at all. LIVE READ (a Live Read pipeline, destination scratch) — same sample-required shape as structured, nothing is landed; the run's rows come back on the status rollup (resultPreview) and via get_pipeline_result; results expire — use it when the user wants an answer now, a validation result, or a transformed view with no reason to keep the rows (see the KEEP-OR-READ-LIVE RULE). SAMPLE-SIZE RULE: content_text is the fallback for data without a tap (a file in hand, pasted rows); the sample exists ONLY for schema detection and every column lands as string — send the header row plus 3-5 representative rows, NEVER a full dataset. Composing hundreds of rows here wastes minutes of generation time; the real data arrives later via the tap or upload_data. Prefer content_text (plain text) over content (base64) — the server encodes it for you. FIELD PROTECTION: when the user asks to protect sensitive fields, pass protect (field name → {method: hmac|mask|redact|drop|encrypt}) so those fields are protected before any AI stage or destination sees them; confirm the fields with the user, never guess. CODEGEN SCRIPTS: an AI rule or AI transformation is turned into a Python script when the pipeline is saved and every run executes that stored script; the result's codegenScripts says per kind whether it is ready or pending (pending: the first run generates it) — relay a pending reason to the user. With a code repository configured the script is committed there; an entry's warning means the file was edited in the repository and was not overwritten — relay it as written. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

set_catalogA

Set or clear the catalog grouping label on an existing pipeline or tap. ONLY call this when the user has explicitly asked to organize work under a named catalog. Do NOT call it proactively — catalogs are a user-chosen organizational convention; assigning one for them puts the pipeline/tap into a taxonomy they didn't ask for. Pass exactly one of pipeline or tap to identify the target. Pass catalog to set the label, or omit it (or pass an empty string) to clear it. Survives subsequent re-ingests — datris ingest no longer rewrites an existing pipeline's config. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

rename_catalogA

Rename a catalog: every tap and pipeline labelled with catalog is relabelled to new_name in one server-side operation, and the empty-catalog placeholder moves with it. Call this ONLY when the user has explicitly asked to rename that catalog — never to emulate a rename by calling set_catalog on each item. new_name must not already exist: a rename never merges catalogs and is refused if the target exists. To combine two catalogs, move their items with set_catalog. Uncataloged cannot be renamed, and new_name must use letters, digits, '_' and '-' only. Items that could not be moved come back under failed (the rest still move); report them to the user. API keys whose capabilities are scoped to the old catalog name are listed under affectedKeys — they keep the old scope and no longer match the renamed items, so tell the user an administrator may need to update those keys. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

delete_catalogA

Delete a catalog by moving every tap and pipeline in it to Uncataloged and removing the catalog. No tap, pipeline or data is deleted. Call this ONLY when the user has explicitly asked to delete that catalog. Uncataloged itself cannot be deleted. Items that could not be moved come back under failed (the rest still move); report them to the user. Deleting a catalog together with its items and their data is available via the API or UI, not through this tool. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

export_catalogA

Back up a catalog: returns one zip archive of every tap and pipeline in it (definitions, each tap's script and incremental state, referenced validation schemas). Read-only. Secret values are never included; the manifest lists the secret names the catalog needs. Returns manifest (catalog, taps, pipelines, requiredSecrets, warnings) first, then archiveBase64 and sizeBytes. Answer questions about the archive from manifest; pass archiveBase64 unchanged to restore_catalog. Uncataloged cannot be exported.

catalog_enable_orderA

Read-only. The order to enable a catalog's taps in: taps grouped into levels, level 1 first (taps that read no other tap's tables), then the taps that read tables produced by level 1, and so on. A tap's dependencies are its declared dependsOn or, when it declares none, the taps the platform inferred from the tables its script queries. Per tap: hasPassingTest (last test run succeeded on the tap's current script; a test of an older script does not count), lastRealRunLanded (last real run landed records), blockedBy (dependencies that have not landed data yet) and ready. A tap whose sources have not landed data fails its test, so run the sources first. Taps on a dependency cycle are listed under cycles. Use it to answer "what order do I enable these in", e.g. after restore_catalog, where every tap is disabled with no data landed.

restore_catalogA

Restore a catalog archive produced by export_catalog as catalog catalog (the same or a new name). Call this ONLY when the user has explicitly asked to restore and named the archive to use. A restore never merges: it is refused (with the clashing names) when the catalog already exists or any archived tap or pipeline name exists anywhere on this install. mode=overwrite replaces only items already in catalog and needs confirm equal to the catalog name. It never writes secrets: missing ones come back under missingSecrets for the user to create. Restored taps are left disabled; tell the user to test and enable them. Items that could not be restored come back under failed; report them. Archived AI scripts are restored as-is unless regenerate_scripts is set; scriptsImported, scriptsRegenerated and scriptsKept (a live script left in place; both with the reason) say which were which. The response carries sourceEnvironment (where the archive was exported) and targetEnvironment (this install), plus a warning when they differ; tell the user. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

enable_catalog_orderedA

Start one server-side job that enables a catalog's taps in their enable order (see catalog_enable_order): level by level, each tap is tested if it has no passing test, enabled, given one real run, and the job waits until that run's data has landed before moving on. A tap whose source did not land data is skipped with the reason; every tap's outcome is reported. Call this ONLY when the user has asked to enable the catalog's taps. It returns at once with the job id and the plan; follow progress with catalog_enable_order (its job block), pausing with wait_seconds between polls, until job.active is false, then report each tap's phase and reason. While the job runs, do not call run_tap, test_tap or update_tap on that catalog's taps: the job is already running them. Refused while another enable job for the catalog is running, or when its taps have a dependency cycle (the cycles are returned). Cancelling is done by the user in Datris. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

delete_pipelineA

Delete a pipeline. This is DESTRUCTIVE: by default it removes BOTH the pipeline configuration AND all data already written to the destination (MongoDB collection rows, Postgres table rows, vector-store entries). It also wipes document-tap ledgers and staged files for any tap that targets this pipeline, so a recreate gets a clean re-ingest. The platform deliberately does NOT support deleting just the config and orphaning the data — that creates ghost state. If you want to keep the config but wipe the destination data ("reset"), pass keep_config=true; the config survives, the data does not. ALWAYS confirm with the user before calling this tool. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

upload_dataA

Upload data to a registered pipeline for processing. Send the ENTIRE file content as a single base64-encoded string in ONE call — do not pre-split or chunk the content client-side. Vector destinations (pgvector, qdrant, weaviate, milvus, chroma) apply recursive chunking server-side using the pipeline's configured chunkSize/chunkOverlap; for those, one upload_data call yields many embedded chunks automatically. The pipeline's rules are applied: schema validation, data quality checks, transformations, then routing to the configured destination. A Live Read (scratch) pipeline validates or transforms the file and hands the rows back (status rollup resultPreview, then get_pipeline_result) instead of landing them. Returns a pipelineToken for tracking job status via get_job_status. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

get_job_statusA

Get job status for an upload_data submission. Pass pipeline_token (returned from upload_data) for the recommended path. Pass pipeline_name instead for a paginated summary of recent jobs for that pipeline. When queried by pipeline_token, the response is {rollup: {allDone, status, jobs: [...]}, events: [...]} — poll every few seconds until rollup.allDone is true, then read rollup.status (success | warning | error) for the outcome. Per-job detail is in rollup.jobs[] with pipelineToken, pipeline, filename, status, startedAt, lastEventAt, elapsed, and lastError (populated on failure with processName and description). events[] is the raw begin/info/end audit trail; the rollup is the source of truth for completion. A failed run's description gives the error and its causes in plain words; the full stack trace is not included here (it is in the server log under the run's token and in the Ops activity view). When queried by pipeline_name, the response is a paginated array of summary rows; the most recent job is index 0 and its status field is success | processing | error. Do NOT proceed to query/search until the job is in a terminal state.

kill_jobA

Kill a running pipeline job by its pipeline token. The job thread will be interrupted and the job marked as cancelled. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

profile_dataA

Send data and use AI to generate a comprehensive data profile: summary statistics per column, data quality issues detected, and suggested validation rules. Use the suggested aiRule when building a pipeline's dataQuality section. The server may withhold row values from the model (DATRIS_AI_SAMPLE_VALUES=false): the profile is then built from column statistics or structure only, sampleValues are empty, and the result carries valuesWithheld: true. If the AI model declines the request (a provider safety decline), the result carries aiDeclined: true and holds the server's column statistics only, with empty qualityIssues and recommendations: read that as no AI review, not as a clean file.

get_dest_typesA

Propose real column types for a pipeline whose destination columns are all stored as text (the default for agent-created pipelines). Stateless: samples up to 1000 rows that already landed in the destination, infers types deterministically, and returns per-column evidence — a few sample values, plus (for columns kept as string by a dirty value) the offending value and the type it blocked. Only for postgres, snowflake, databricks, and sqlserver destinations (on sqlserver, _json/_xml document columns are never retyped); eligible: false with a reason of destination-not-supported, already-typed, or no-landed-rows (run the pipeline once first) otherwise. Nothing is stored or changed by this call.

suggest_field_protectionA

Suggest per-field protection (hmac, mask with an optional preserve, redact, drop, or none, each with a one-line reason) for a pipeline's source fields, computed by the configured CodeGen model from field NAMES and TYPES ONLY: no row value is sent to the model. Stateless: nothing is saved or changed. Pass pipeline (an existing pipeline name; its stored source schema is used) or fields (an array of {name, type}, e.g. the schema you are about to create). A field that already carries protect shows it as current next to the suggestion. Show the suggestions to the user and ask which to accept before passing any of them as the protect map to create_pipeline; never apply them on your own. With preset (delimited sources only) the server's rule-based preset classifier is used instead of the model: each field gets an identifier class, a method and a reason, and the result lists the fields it did not recognise and review notes; show all of it, including the review notes, to the user.

apply_dest_typesA

Apply destination column types to an all-string pipeline. REQUIRES explicit user approval first. Landed data is migrated before the config changes (postgres retypes in place; sqlserver validates with TRY_CONVERT then retypes in place with ALTER COLUMN in one transaction, leaving _json/_xml document columns as they are; snowflake/databricks validate then swap the table) — the migration locks or replaces the table, so do NOT apply while a run is in flight. Any landed value that will not cast fails the whole apply with the column named and NOTHING changed — then either re-apply with that field set back to string, or fix the data. fields must list EVERY destination column (same names as get_dest_types returned) with its intended type; keep a column as-is by passing type string. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

get_versionA

Get the Datris server version and the tap budgets in force on this install: pipelineMaxPayloadMB (MB, 0 = unlimited), tapScriptTimeoutSeconds and tapRunTimeoutSeconds, each with a ...Source field (env, deprecated-alias, derived or default). Cheap to call: call it before sizing a large source and compare the estimates with these values, not with the documented defaults (the budget fields are absent on a server older than this feature; then the documented defaults apply). It also returns environmentLabel when the operator set DATRIS_ENV on the server (absent otherwise).

check_service_healthA

Check which backend services are up, down, or not configured. Returns the health status of PostgreSQL, MongoDB, MinIO, ActiveMQ, Kafka, and any configured vector databases (Qdrant, Weaviate, Milvus, Chroma, pgvector). Call this before attempting search or query operations to know which services are available.

run_doctorA

Run the platform's operational self-check and return a report: Vault token expiry, AI slot secrets complete, embedding model actually loaded, disk usage, the payload staging area (writable, room for one run, no orphaned run directories), component version skew, and (opt-in) whether each AI model answers. Each non-ok check carries a remediation command for the operator; nothing is changed. Do NOT call run_doctor as part of the normal workflow — it is slow. Only use it for diagnostics when something fails or the user asks about the deployment's health. Host-level checks (Docker volumes, container env drift) need datris doctor on the machine running Docker and are not included here.

search_qdrantA

Semantic search across a Qdrant vector database collection. Takes a natural language query, generates an embedding, and returns the most similar document chunks with similarity scores. For RAG: pass the returned text to ai_answer with the user's question.

search_weaviateA

Semantic search across a Weaviate vector database class. Takes a natural language query, generates an embedding, and returns the most similar document chunks with similarity scores. For RAG: pass the returned text to ai_answer with the user's question.

search_milvusA

Semantic search across a Milvus vector database collection. Takes a natural language query, generates an embedding, and returns the most similar document chunks with similarity scores. For RAG: pass the returned text to ai_answer with the user's question.

search_pgvectorA

Semantic search across a PostgreSQL pgvector table using cosine distance. Takes a natural language query, generates an embedding, and returns the most similar document chunks with similarity scores. Use list_postgres_tables with vector_only=true to discover available pgvector tables. For RAG: pass the returned text to ai_answer.

search_chromaA

Semantic search across a Chroma vector database collection. Takes a natural language query, generates an embedding, and returns the most similar document chunks with similarity scores. For RAG: pass the returned text to ai_answer with the user's question.

query_postgresA

Execute a read-only SQL SELECT query against PostgreSQL. Use the metadata discovery tools (list_postgres_databases, list_postgres_schemas, list_postgres_tables, list_postgres_columns) first to explore available data before constructing queries. Only SELECT is allowed; LIMIT is auto-appended if missing. Queries are cancelled if they run too long, so avoid full-table scans. For approximate row counts — "how many rows / records does table X have", overviews, or summarizing several tables — do NOT run exact SELECT COUNT(*) (it scans the whole table and can take many seconds on a large one). Instead read the planner estimate, which is effectively instant regardless of table size: SELECT reltuples::bigint AS estimate FROM pg_class WHERE relname = '<table>'. Use exact COUNT(*) only when the user explicitly needs an exact count of a known-small or filtered result.

query_objectstoreA

Read rows from a pipeline's objectStore destination (Parquet files, ORC files, or an Iceberg table in MinIO or AWS S3). Pass the pipeline name; the server resolves the bucket, prefix, format, and credentials from the pipeline config — same code path the writer uses, so MinIO and S3 destinations both work. Returns up to limit rows as JSON objects keyed by column name, plus the resolved s3a:// path and format for transparency. For an Iceberg table the response also carries snapshotId (a decimal string, not a number) and snapshotTimestamp (ISO-8601) of the snapshot read; both are null for other formats. Returns 0 rows (not an error) when the pipeline has no successful runs yet. This is the right tool when list_pipelines shows objectStore as the destination — query_postgres / query_mongodb / search_* will not work against objectStore data.

query_snowflakeA

Run a read-only query against the Snowflake account a pipeline loads into. Pass the pipeline name; the server resolves the account, credentials, warehouse, and role from the pipeline's config — same connection the loader uses, credentials never leave the server. Only works for pipelines whose destination is Snowflake (database with useSnowflake=true). Allowed statements: SELECT (WITH/CTE), SHOW, and DESCRIBE — LIMIT is auto-appended to SELECTs. Omit sql to preview the pipeline's destination table (the 'did my load land?' check). Metadata discovery uses the same tool — there are no separate list_snowflake_* tools: SHOW DATABASES, SHOW SCHEMAS IN DATABASE <db>, SHOW TABLES IN SCHEMA <db>.<schema>, DESCRIBE TABLE <db>.<schema>.<table>, or query .information_schema.columns. Queries run on the customer's configured warehouse (which costs them compute) — keep them targeted and let the default LIMIT stand unless the user asks for more.

query_sqlserverA

Run a read-only query against the SQL Server or Azure SQL database a pipeline loads into. Pass the pipeline name; the server resolves the host, database, and credentials (any authMethod) from the pipeline's config — same connection the loader uses, credentials never leave the server. Only works for pipelines whose destination is SQL Server (database with useSqlServer=true). Allowed statements: SELECT and WITH (CTE) only, written in T-SQL. Rows are capped automatically: a statement with a top-level ORDER BY gets OFFSET 0 ROWS FETCH NEXT ROWS ONLY, any other is wrapped in SELECT TOP () — do not add LIMIT (not T-SQL). Omit sql to preview the pipeline's destination table (the 'did my load land?' check). Metadata discovery uses the same tool through INFORMATION_SCHEMA views — there are no separate list_sqlserver_* tools: SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES, SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'dbo' AND TABLE_NAME = '<table>'. Queries run on the customer's server — keep them targeted and let the default limit stand unless the user asks for more.

query_databricksA

Run a read-only query against the Databricks workspace a pipeline loads into. Pass the pipeline name; the server resolves the workspace, credentials, SQL warehouse, and catalog from the pipeline's config — same connection the loader uses, credentials never leave the server. Only works for pipelines whose destination is Databricks (database with useDatabricks=true). Allowed statements: SELECT (WITH/CTE), SHOW, and DESCRIBE — LIMIT is auto-appended to SELECTs. Omit sql to preview the pipeline's destination table (the 'did my load land?' check). Metadata discovery uses the same tool — there are no separate list_databricks_* tools: SHOW CATALOGS, SHOW SCHEMAS IN <catalog>, SHOW TABLES IN <catalog>.<schema>, DESCRIBE TABLE <catalog>.<schema>.<table>, or query .information_schema.columns. Queries run on the customer's SQL warehouse (which costs them compute) — keep them targeted and let the default LIMIT stand unless the user asks for more. If the warehouse is stopped, the first query auto-starts it and may take longer.

query_mongodbA

Query a MongoDB collection with optional filter and projection. Use list_mongodb_databases and list_mongodb_collections first to discover available data. Returns matching documents as JSON.

query_naturalA

Ask a question in natural language about data in a PostgreSQL table. The AI generates a SQL query from the question and table schema, executes it, and returns the results. Use this instead of writing SQL manually.

list_postgres_databasesA

List all PostgreSQL databases available in the Datris platform. Use this as the first step when exploring what data has been ingested into PostgreSQL destinations.

list_postgres_schemasA

List all schemas in a PostgreSQL database. Schemas organize tables within a database (e.g., 'public', 'analytics'). Use after list_postgres_databases to drill into a specific database.

list_postgres_tablesA

List all tables in a PostgreSQL schema. Set vector_only=true to show only pgvector embedding tables, or false (default) to show regular data tables. Use after list_postgres_schemas.

list_postgres_columnsA

List all columns and their data types for a specific PostgreSQL table. Use this to understand table structure before writing a query_postgres SQL query.

list_mongodb_databasesA

List all MongoDB databases available in the Datris platform. Use this as the first step when exploring what data has been ingested into MongoDB destinations.

list_mongodb_collectionsA

List MongoDB collections. If database is specified, lists collections in that database. If omitted, lists all collections across all databases in 'db.collection' format.

list_qdrant_collectionsA

List all collections in the Qdrant vector database. Use this to discover available collections before running search_qdrant.

list_weaviate_classesA

List all classes in the Weaviate vector database. Use this to discover available classes before running search_weaviate.

list_milvus_collectionsA

List all collections in the Milvus vector database. Use this to discover available collections before running search_milvus.

list_chroma_collectionsA

List all collections in the Chroma vector database. Use this to discover available collections before running search_chroma.

list_pgvector_collectionsA

List all pgvector tables (tables with an embedding column) in PostgreSQL. Use this to discover available collections before running search_pgvector.

ai_answerA

Ask the Datris AI to answer a question based on provided context. Ideal for RAG workflows: first retrieve relevant chunks using a search tool (search_qdrant, search_pgvector, etc.), then pass the retrieved text as context along with the user's question to get a synthesized answer.

upload_configA

Upload a configuration file to the Datris platform. Supports 'validation-schema' (JSON Schema files used in pipeline dataQuality schema validation). Send the file content as base64. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

update_secretA

Update an AI provider secret in the Datris platform. Use this to configure your AI API keys so Datris can use AI features (data profiling, schema generation, AI transformations, RAG). Only AI-related secrets can be updated: anthropic, openai, azure, grok, ollama, embedding. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

list_tap_secretsA

List the names of tap secrets that already exist (secrets tagged _type=tap — both agent-created and human-owned ones surfaced via the UI's Tap Secrets section). ALWAYS call this before create_tap_secret: if a suitable secret already exists, prefer reusing it by passing its name as secret_name to create_tap. Only ask the user to provide credentials when no existing secret covers the need.

get_tap_secret_fieldsA

Return the FIELD NAMES (keys only — never values) of an existing tap secret. Use this after list_tap_secrets to verify a candidate secret has the keys your tap script will need (e.g. API_KEY, USER_AGENT). Secret values are intentionally NOT returned and are never visible to the agent.

list_platform_secretsA

List the names of PLATFORM secrets (all secrets NOT tagged _type=tap — the Platform tab in the UI's Secrets section). These are human-owned credentials for destinations and infrastructure (e.g. S3 destination credentials, Postgres connection, MongoDB connection, embedding/vector-store endpoints). The agent can READ these (to look up their names and field shape via get_platform_secret_fields and reference them in pipeline configs) but cannot create, update, or delete them — those operations are the user's responsibility via the Secrets tab. Use this whenever a pipeline's destination needs a credentialsSecret reference (e.g. objectStore with provider=s3) and you need to discover which secrets the user already has.

get_platform_secret_fieldsA

Return the FIELD NAMES (keys only — never values) of an existing platform secret. Use this after list_platform_secrets to verify a candidate secret has the keys a destination config requires (e.g. an S3 credentialsSecret must contain accessKey, secretKey, region). Secret values are intentionally NOT returned. If the named secret is tap-tagged, this tool refuses — use get_tap_secret_fields for those.

create_tap_secretA

Create or update a secret for a tap to use. The secret's fields are injected as environment variables into the tap's Python script at runtime. Use this before create_tap when the tap needs credentials (API key, DB password, etc.). FIRST call list_tap_secrets to check whether a suitable secret already exists — if so, reuse it instead of creating a duplicate. By default, fails if a secret with this name already exists — pass overwrite=true to replace it (ask the user first). Agents can only overwrite secrets that were also created by an agent (tagged _type=tap); secrets owned by a human user must be updated via the UI. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

delete_tap_secretA

Delete a tap secret. Only secrets created by an agent (tagged _type=tap) can be deleted via this tool; secrets owned by a human user must be removed from the Secrets tab. Use this to clean up after a tap is no longer needed. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

create_tapA

Create a tap — a fetcher that pulls data from an external source and pushes it into a pipeline. Two kinds: a Python script the platform executes (default — provide a plain-English instruction to have AI generate the script, or supply your own script directly), or kind: "http" — a user-hosted HTTP endpoint (any language) that Datris POSTs the run context to on each run and which responds with the tap envelope; pass endpoint_url and see the tap-http-contract doc. HTTP taps run no code on the platform; AI script generation and the DATRIS_PLATFORM_* platform-data callback do NOT apply to them, so keep any tap whose fetch logic reads platform data as a Python tap. For a large columnar or tabular source, yield each batch (a pyarrow RecordBatch, a pandas DataFrame, or a list of dicts) instead of each row — the platform serialises a batch natively, several times faster — and read only the columns the pipeline needs (columns=[...]). Yielding one row at a time remains correct for small or API-paged sources. If the user wants the tap to feed a pipeline, pass target_pipeline now. Without it, run_tap will fetch but not persist (response will show persisted: false, persistedReason: "no_target_pipeline") — you'd then need to call update_tap to wire a pipeline. For a fetch-only tap (the user wants the rows back, not landed), target a Live Read (scratch) pipeline — see the KEEP-OR-READ-LIVE RULE in the server instructions. If the user mentioned ANY recurrence (nightly, daily, hourly, every morning, market open, etc.), pass cron_expression NOW — the platform's scheduler will run the tap on that cadence automatically. This is the canonical way to make a tap recurring; do NOT respond with shell commands or external schedulers for the user to run themselves. See the SCHEDULING RULE in the server instructions. AFTER creating, call test_tap to validate the script BEFORE any run_tap or before relying on a scheduled cron run — see the VALIDATION RULE. Setting a cron on a never-tested script is a guaranteed-bad nightly run waiting to happen. The platform enforces this: passing cron_expression for a script (or endpoint) that has not passed test_tap returns HTTP 409 with the remedy — create the tap without cron_expression, call test_tap until it succeeds, then update_tap with the cron. Replacing the script of a scheduled tap is refused the same way until re-tested — to replace the script of a SCHEDULED tap, clear the cron via update_tap (empty cron_expression) first, then call create_tap with the new script, test_tap, then update_tap with the cron. Scripts can read data already stored in Datris WITHOUT credentials: every run auto-injects DATRIS_PLATFORM_HOST, DATRIS_PLATFORM_PORT, DATRIS_POSTGRES_DATABASE, and DATRIS_MONGODB_DATABASE, and the script queries via POST http://{host}:{port}/api/v1/query/postgres with {"sql": ..., "database": <pg_db>, "limit": -1} (or /query/mongodb with query/database/collection/limit) — the platform executes it with its own credentials and returns {results, count}. NEVER request the platform's own DB credentials in a tap secret and NEVER hardcode a snapshot of platform data into the script — read it live. The tap secret carries only the external source's credentials. Large sources: fetch() may yield records (a generator / iterator) instead of returning a list — the platform streams yielded records to disk one at a time, so the run is not limited by memory; a script that builds millions of rows into a list is killed for memory (exit code -9). Read the source in chunks / pages and yield each row; never cap the rows or split the source for size unless the estimate below exceeds a budget and the user has chosen chunking. Stream the source, never download it: the runner's only writable area is a 512 MB in-memory scratch space shared with installed packages, so a script that saves a large file locally fails with No space left on device — read remote files directly (HTTP range reads via pyarrow + fsspec, pd.read_csv(url, chunksize=...), requests stream=True) and yield as you go. Size a large source BEFORE creating anything: staged bytes per record ≈ 26 bytes × column count (JSON keys repeat on every row) against PIPELINE_MAX_PAYLOAD_MB (the value in force is pipelineMaxPayloadMB from get_version; default 4096 MB, 0 = unlimited), and script time ≈ rows ÷ 15,000 per second emitting one record at a time or rows ÷ 90,000 per second emitting batches against TAP_RUN_TIMEOUT_SECONDS (tapRunTimeoutSeconds from get_version; default 3600 s) — call get_version for both values in force before you size, name the rate you used, show the user a rows, bytes/record, GB staged, minutes table, and if either estimate is over its budget let the user choose first: raise the variable, narrow the window, or chunk the range via run_tap params. Reading only the columns the destination needs cuts both numbers linearly. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

list_tapsA

List all taps with their status, target pipeline, schedule, and last run info. CALL THIS FIRST (alongside list_pipelines) on any data-related user request — the user's existing taps often reveal what's already being pulled and where, which short-circuits the entire 'should I suggest an external API?' conversation.

run_tapA

Manually trigger a tap. Executes the script; when a target pipeline is configured, hands records to the pipeline async. The response carries recordCount, publisherToken, pipelineTokens, persisted, persistedReason, and the script's logs — but NOT the records themselves. If you need to preview what the script produces, call test_tap instead. BEFORE the first run of a newly-created or newly-updated tap, you MUST have called test_tap and seen it succeed. See the VALIDATION RULE in the server instructions. Skipping the test on a fresh script pushes potentially-broken data into the destination — and run_tap doesn't return records, so you won't see the breakage from the response.

PER-RUN PARAMS — pass a params object to drive this run with caller-supplied values (date range, id list, page cursor, etc.). Each key/value becomes an env var the script reads via os.environ.get('DATRIS_TAP_PARAM_<key>'). Keys must match [A-Za-z_][A-Za-z0-9_]* so they map cleanly onto env var names. Values are stringified; nested objects/arrays are JSON-encoded (script can json.loads() them back). Use this for anything that varies per-call — date windows, id lists, page cursors, batch sizes. Do NOT rewrite the tap secret to pass per-run params: secrets are for credentials (API keys, DB passwords); rewriting them on every call clobbers concurrent runs, pollutes audit history, and wastes Vault writes. If the tap script doesn't yet read a particular param, update the script by calling create_tap again with the same name and a revised script (create_tap upserts and replaces the existing script). That's the right shape for parameterized runs.

REQUIRED next steps based on the response: • persisted: true → load is still running. Call get_pipeline_status(publisher_token=response.publisherToken) and poll until rollup.allDone is true. Then read rollup.status (success/warning/error) and rollup.jobs[].lastError. Do not report completion or query the destination before that. For a Live Read (scratch) pipeline (nothing landed), read the rows off the rollup's resultPreview and resultTruncated; call get_pipeline_result only when resultTruncated is true. • persisted: false → the destination was NOT written. Read persistedReason: - no_target_pipeline: tap has no pipeline wired. Tell the user; offer to call update_tap. - test_mode: ran in test mode (or mcp-server/datris version mismatch). Flag it; do not report data as stored. - run_error: show the error string. If the error says the payload exceeded the disk budget (it names PIPELINE_MAX_PAYLOAD_MB), tell the user the operator can raise that variable; as a one-off alternative, reduce the source range via params and call run_tap again — multiple runs all land in the same destination pipeline. If the error says the run timed out (it names TAP_RUN_TIMEOUT_SECONDS), tell the user the operator can raise that variable; as a one-off alternative, chunk the source range via params. A run that timed out returns the script's logs, its [wrapper] streamed N records progress lines and a partial record count. Read them first: a script that reached the source and was still streaming records when the timeout hit is healthy and too long, not wrong — do not rewrite it; tell the user how far it got and offer a smaller window via params or the operator's timeout setting. For a recurring tap, the durable fix is making the script incremental via DATRIS_TAP_STATE (see the tap-workflow-reference resource). VOLUME RULE: one run handles multi-GB payloads — records stream to disk, never through memory. Do NOT split a source into several runs, cap a run at N rows, or build resume-from-destination logic because you think the output is too big. Fetch the whole requested range in one run, unless the estimate below exceeds a budget and the user has chosen chunking — that is the one size-driven exception. Chunk otherwise only when the source API pages natively or when the user explicitly asks for a bounded window. SIZING RULE: before a first run on a large source, call get_version for the budgets in force, then estimate staged disk as ≈ 26 bytes × column count per record × rows against PIPELINE_MAX_PAYLOAD_MB (the value in force is pipelineMaxPayloadMB from get_version; default 4096 MB, 0 = unlimited), and script time as rows ÷ 15,000 per second when fetch() emits one record at a time or rows ÷ 90,000 per second when it emits batches against TAP_RUN_TIMEOUT_SECONDS (tapRunTimeoutSeconds from get_version; default 3600 s). Name the rate used, recommend batches above about a million rows, show the user the rows, bytes/record, GB staged, minutes table, and ask before running when either estimate is over budget. - no_records: source returned nothing. - debounced: this tap was triggered server-side within the last 5 seconds. Do NOT retry — your previous call is still running. Use get_tap_logs to find the live run's publisherToken, then poll get_pipeline_status. - already_running (response status: skipped): another run_tap for this tap is already in flight in this agent session. Same handling as debounced: wait, then look up the live run in get_tap_logs. The response's publisherToken covers every ingestion job this run submitted (structured taps = 1, document taps = N). One get_pipeline_status call with the publisherToken sees them all. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

get_pipeline_statusA

Read pipeline ingestion status. Use this after run_tap to watch a tap-submitted load progress. Pass publisher_token to see every job the tap run submitted (the recommended option — works for both structured and document taps). Pass pipeline_token for a single ingestion job. Exactly one of the two must be supplied. Response shape: {rollup: {allDone, status, jobs: [...]}, events: [...]}. Poll every few seconds until rollup.allDone is true, then read rollup.status (success | warning | error) for the outcome. Per-job detail is in rollup.jobs[] — each entry has pipelineToken, pipeline, filename, status, startedAt, lastEventAt, elapsed, and lastError (populated on failure with processName and description). events[] is the raw begin/info/end audit trail if you need it; the rollup is the source of truth for completion. A failed run's description gives the error and its causes in plain words; the full stack trace is not included here (it is in the server log under the run's token and in the Ops activity view).

get_pipeline_resultA

Read the rows a Live Read (scratch) pipeline produced. Only Live Read pipelines (destination scratch) have a result — anything else is a 404 (an error body of Not Found / status: 404 — rather than the endpoint's own Only Live Read (scratch) pipelines have a result message, or Only scratch pipelines have a result on older servers — for a pipeline you know is Live Read means the server predates Live Read results: report the version mismatch and stop, do not retry). The first rows are already on the get_pipeline_status rollup as resultPreview, so call this ONLY when the rollup's resultTruncated is true and you need the rest. Paging with offset/limit never re-runs the source — it reads the stored result. limit is clamped server-side, so the next offset is always offset + returnedCount, never offset + limit. Results expire after the retention window, so read them promptly; a 410 means the result is gone and the pipeline must be run again. Pass publisher_token (from run_tap) or pipeline_token (a single ingestion job); exactly one of the two must be supplied. Response shape: {records: [...], rowCount, returnedCount, offset, truncated, resultUri, resultExpiresAt} — rowCount is the whole result, returnedCount this page.

delete_tapA

Delete a tap and its stored script. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

get_tapA

Get a tap's static definition: configuration, schedule, target pipeline, and the generated Python script content. This is config-only — it returns the SAME data on every call and tells you NOTHING about run state. Do NOT call this to check whether a run is finished or to poll for completion — repeatedly calling get_tap after run_tap is a bug, the response will never change to reflect ingestion progress. For run status: call get_pipeline_status(publisher_token=...) (token comes from the run_tap response or from a get_tap_logs entry). For run history: call get_tap_logs.

get_tap_logsA

Get the run history for a tap. Returns the last 50 run log entries sorted by most recent first, including status, record count, duration, errors, logs, and publisherToken for each run that submitted records to a pipeline. Works for both manual runs (triggered by run_tap) and scheduled runs (triggered by the platform's cron scheduler) — they share the same log. Use this to verify whether a scheduled run fired, whether any recent run's script succeeded, and to recover the publisherToken for any run if you didn't keep the original run_tap response in context. To verify the actual destination ingestion outcome — not just that the script ran — pick the relevant entry and call get_pipeline_status(publisher_token=entry.publisherToken). The tap log only records what the script did; the publisher token is how you trace a run through to whether the data actually landed in the destination.

get_tap_ledgerA

For a document tap: return the ledger of discovered documents (URI, filename, status, hashes, first/last seen timestamps). The ledger is what tells the platform which documents have already been processed so re-runs skip unchanged files. Pass 'clear_uri' to delete one entry (forces that document to be re-processed on the next run) or 'clear_all=true' to wipe the entire ledger (forces a full re-scan).

get_tap_stateA

Get a tap's incremental-sync state — the bookmark/cursor its script saved after the last successful run (injected into the next run as the DATRIS_TAP_STATE env var). Returns {tap, state, updatedAt, updatedBy}; state is null when the tap has never committed state (non-incremental tap, or no successful run yet). Use this to see where an incremental tap will resume from, or to debug why a scheduled tap is re-fetching or skipping a window.

set_tap_stateA

Overwrite or reset a tap's incremental-sync state. Pass state (a JSON object) to set the bookmark the next run receives via DATRIS_TAP_STATE — e.g. rewind a cursor so a window is re-fetched. Pass reset: true to delete the state entirely: the next run sees no DATRIS_TAP_STATE and does a full first-run fetch. The state shape is defined by the tap's own script (read its code via get_tap to see what keys it expects). Only use this on explicit request or to recover a broken cursor — normal runs manage state themselves, committing it only after a successful run. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

test_tapA

Test-run a tap without pushing data to the pipeline. Executes the tap's script and returns results, record count, and any errors. Use this to validate a script before running it for real. By default a test pulls the first 20 records and returns; recordCount from a test is the preview size, not what run_tap will produce. If the error reports exit code -9 (or 137, or "killed") with no traceback, the script ran out of memory because fetch() built its whole result in memory: rewrite fetch() to yield records one at a time (read the source in chunks / pages) instead of returning a list, then test again. For a large columnar or tabular source, yield each batch (a pyarrow RecordBatch, a pandas DataFrame, or a list of dicts) instead of each row — the platform serialises a batch natively, several times faster — and read only the columns the pipeline needs (columns=[...]). Yielding one row at a time remains correct for small or API-paged sources. A test is bounded by TAP_SCRIPT_TIMEOUT_SECONDS (default 300 s), which is deliberately shorter than the ceiling a real run gets — a test that times out on a large source does not mean run_tap will. A run that timed out returns the script's logs, its [wrapper] streamed N records progress lines and a partial record count. Read them first: a script that reached the source and was still streaming records when the timeout hit is healthy and too long, not wrong — do not rewrite it; tell the user how far it got and offer a smaller window via params or the operator's timeout setting. After two consecutive failed tests, stop and report the exact error text to the user instead of iterating further; never probe the runner environment or read the wrapper to diagnose. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

propose_pipeline_schemaA

Preview a tested tap's rows and recommend a destination column type for each column, BEFORE the pipeline exists. Uses the rows from the tap's last successful test (nothing is pushed) and runs the tap again only when none are held or a higher limit asks for more, then infers a type per column from the rows the tap actually produced. Recommendations are conservative: a column is typed only on strong evidence; otherwise it stays string with a visible reason — stringReason when a value blocked a type, note when too few non-null values were present (all-null or a thin sample). Call it after test_tap succeeds and before create_pipeline. Present the returned fields to the user as a table (column, recommended type, evidence) and ask them to confirm or change the types, or to pull more rows (call again with a higher limit). Then pass the confirmed list as schema_fields on create_pipeline — no sample content needed — and attach the tap with update_tap (target_pipeline). A failed test comes back verbatim (fix the tap first). Vector destinations (pgvector, qdrant, weaviate, milvus, chroma) and mongodb return typeGrid: false with a preview only — they have no column schema — for a vector destination go straight to create_pipeline with name and destination only; no checks, transformations or protection question (MongoDB stores documents as-is; create it with a few preview rows as a JSON content_text sample, filename ending in .json, never schema_fields). An older Datris server answers with a "server too old" error; then fall back to content_text on create_pipeline. Only a result whose status is schema_proposal is a proposal; anything else (a failed test, no rows, an error) means no schema and no table were shown to the user, so tell the user what failed in one or two plain sentences with the tool's stated next step, and do not ask the types question, do not call ask_user about types and do not mention a table. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

update_tapA

Update an existing tap's CONFIG without regenerating the script. Change the enabled state, CRON schedule, target pipeline, or description. USE THIS to set or adjust a tap's schedule (cron_expression) whenever the user describes a recurrence (nightly, daily, every morning, market open, etc.). The platform's scheduler runs the tap on the cadence you set — no external cron, Airflow DAG, or shell loop is needed (or wanted). See the SCHEDULING RULE in the server instructions. VALIDATION RULE: if you're enabling a cron_expression on a tap whose script has NEVER been validated, call test_tap FIRST and confirm it succeeds. The cadence-change path is safe for taps that have already run successfully; it is not safe to set a cron on a never-tested script. The platform enforces this: setting cron_expression on an untested script returns HTTP 409 with the remedy — save the tap without the cron, call test_tap until it succeeds, then call update_tap again with the cron. Cadence-only changes on a tap whose current script has passed test_tap are accepted. To change the SCRIPT itself, call create_tap again with the same name and the new script or instruction — create_tap upserts by name and replaces the existing script. There is no separate script-only update tool. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

list_tap_versionsA

List the change HISTORY of a tap's definition, newest first. Each entry has version, createdAt, createdBy, and changeNote. The platform snapshots a tap's config + script every time it is created or updated. Read-only. IMPORTANT: an EMPTY result does NOT mean the tap has no version — it means the tap has not been edited since versioning was enabled, so no change snapshots exist yet. The tap's CURRENT version number is the version field on the tap itself (from list_taps or get_tap), which is at least 1 for every tap. Use this tool for 'what changed and when'; use list_taps/get_tap for 'what version is it on now'. See also get_tap_version, diff_tap_versions, restore_tap_version.

get_tap_versionA

View one historical snapshot of a tap's definition: the full config and the pinned Python script as they were at that version. Read-only; does not change the live tap. Get version numbers from list_tap_versions.

diff_tap_versionsA

Compare two versions of a tap's definition. Returns a server-computed field-by-field config diff and a line-level diff of the script. Read-only. version is the newer/selected snapshot; against is the baseline to compare it to.

restore_tap_versionA

Roll a tap back (or forward) to a prior definition version. This is APPEND-ONLY and SIDE-EFFECTING: it reads snapshot version and writes it as a NEW latest version (config + that version's script), preserving the full history — nothing is overwritten or lost. 'Rolling forward' is the same call with a higher version number. Only call this when the operator has explicitly asked to restore/roll back this specific tap to a specific version. It does NOT run the tap — after restoring, report the new version and stop; do not chain into run_tap unless separately and explicitly asked. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

list_pipeline_versionsA

List the change HISTORY of a pipeline's definition, newest first. Each entry has version, createdAt, createdBy, and changeNote. The platform snapshots a pipeline's full config every time it is created or updated. Read-only. IMPORTANT: an EMPTY result does NOT mean the pipeline has no version — it means it has not been edited since versioning was enabled. The CURRENT version number is the version field on the pipeline itself (from list_pipelines or get_pipeline), at least 1 for every pipeline. Use this tool for 'what changed and when'; use list_pipelines/get_pipeline for 'what version is it on now'. See also get_pipeline_version, diff_pipeline_versions, restore_pipeline_version.

get_pipeline_versionA

View one historical snapshot of a pipeline's definition: the full config as it was at that version. Read-only; does not change the live pipeline. Get version numbers from list_pipeline_versions.

diff_pipeline_versionsA

Compare two versions of a pipeline's definition. Returns a server-computed field-by-field config diff. Read-only. version is the newer/selected snapshot; against is the baseline.

restore_pipeline_versionA

Roll a pipeline back (or forward) to a prior definition version. APPEND-ONLY and SIDE-EFFECTING: reads snapshot version and writes it as a NEW latest version, preserving full history. 'Rolling forward' is the same call with a higher version number. Only call this when the operator has explicitly asked to restore/roll back this specific pipeline to a specific version. Report the new version and stop. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

list_script_versionsA

List the version HISTORY of the script the pipeline runs for its AI data-quality rule or AI transformation (kind), newest first. Each entry has version, createdAt, createdBy, changeNote, origin (save, regenerate, run, restore-version, restore, repository), model, commitSha (repository-backed scripts), fingerprintMatchesCurrent (written for the pipeline's current instruction and source schema) and isLive (the script runs now use). Every change to the script is kept; the pipeline's definition version does not change when its script does. Read-only. See also get_script_version, diff_script_versions, restore_script_version.

get_script_versionA

View one version of a pipeline's AI data-quality rule or AI transformation script: the list fields plus the full script text, fingerprint, generatedAt and contractVersion. Read-only; does not change what the pipeline runs. Get version numbers from list_script_versions.

diff_script_versionsA

Compare two versions of a pipeline's AI data-quality rule or AI transformation script. Returns a server-computed line diff: script.lines entries typed ctx, add or del. Read-only. version is the newer/selected version; against is the baseline.

restore_script_versionA

Make an earlier version of a pipeline's AI data-quality rule or AI transformation script the one the pipeline runs. APPEND-ONLY and SIDE-EFFECTING: the restore writes the chosen text back as a NEW latest version (no model call); the pipeline's definition version does not change. If that text is already the live script, nothing is written and the response carries noop: true. Refused when the pipeline's instruction or source schema no longer matches the version (HTTP 422 with the reason; nothing is changed), and refused with HTTP 409 when a repository-backed script file was edited since its recorded commit. Only call this when the operator has explicitly asked to restore this specific script version. Report the new version and stop. If this Datris instance's agent policy requires a person to approve this action, the call does NOT perform it: it returns status pending_approval with an approvalId. Tell the user it is waiting for approval in Datris, then poll get_approval with that id (pause with wait_seconds between polls) — do not re-issue the action.

wait_secondsA

Sleep for a fixed number of seconds, then return. Use this to pace polling against long-running platform work (most often get_pipeline_status after run_tap, or get_job_status after upload_data) so you do not burn tool calls hammering an endpoint that is still in progress. ALWAYS poll once BEFORE the first wait — many runs finish in 1–5 seconds. Then use exponential backoff between polls: 5s, 10s, 20s, 30s, 60s, 60s, ... (cap at 60s normally, 120s only if the run is genuinely glacial). Reset to a short wait (5–15s) on the next cycle whenever a poll shows new jobs flipped to a terminal state — that means you're close to done. If 80%+ of jobs are terminal, wait ~15s; if only 1–2 jobs remain, wait ~10s. Hard upper bound is 120 seconds per call — for longer waits, call this tool in a loop interleaved with a status check.

get_agent_policyA

Read this Datris instance's agent policy: for each action (e.g. tap:delete, pipeline:update:dest-types) whether an agent may do it on its own (auto), must wait for a person to approve it (approve), or is refused (deny). Call this before a delete, schema migration, or other consequential change to know whether it will run immediately or queue for approval, and tell the user accordingly. Returns {enabled, policy:{actions, overrides, limits}, actions:[all policy-able action keys], pendingCount}. When enabled is false, every action is auto.

list_pending_approvalsA

List the actions this agent queued for human approval under the agent policy, newest first. Each entry has id, action, resource, state (pending | approved | rejected | expired | executed | failed), createdAt, expiresAt and — once decided — decidedBy and the result. Use state to filter (default: all).

get_approvalA

Poll one queued approval by the approvalId a mutating tool returned with status pending_approval. Returns its current state: pending (still waiting for a person), executed (approved and performed — resultStatus / resultBody carry the outcome of the original call), failed (approved but the replay failed), rejected, or expired. Poll with wait_seconds between calls, backing off to 30-60s; a decision can take minutes or hours, so after a few polls tell the user you will check back and stop polling unless they ask you to wait.

list_incidentsA

List the platform's recovery-agent incidents, newest first. An incident is opened by the platform itself when a scheduled tap finally fails, a pipeline job errors, a tap goes stale, a pipeline's volume swings, or a source changed its columns after a successful run (schema drift); the recovery agent diagnoses it and — within the agent policy's recovery mode — repairs and verifies it (for taps, re-running or fixing the tap; for pipelines, regenerating the stored AI script; the evidence names the script versions before and after). Each entry carries kind, resource, state (open | diagnosing | proposed | awaiting_approval | executing | verifying | resolved | failed | abandoned), classification, a step-by-step narrative, and — when the platform computed evidence for it — a verdict (pending | pass | fail | needs-human). Use state=open for what is being worked right now. Returns {enabled:false, incidents:[]} when the recovery agent is off.

get_incidentA

Read one recovery-agent incident by id — its trigger, classification, proposal, step-by-step narrative, approvals it is waiting on, outcome, and its evidence (before/after profile, diff, blast radius, thresholds, verdict). A pipeline incident's repair is regenerating the stored AI script; the evidence names the script versions before and after (scriptVersions), and revertToScriptVersions is what a failed verification restores. The one-line evidence summary of this evidence (numbers and column names, never values) is also what the incident webhook sends (evidenceSummary). When the operator asks about a failure the platform is already working, explain THIS record instead of re-diagnosing from scratch.

get_incident_evidenceA

Read the deterministic evidence the platform computed for one recovery-agent incident: the baseline profile of the last successful run before it broke, the profile of the real run after the fix, the diff between them (columns added or removed, type changes, record-count delta, null-rate deltas, distribution shift), the blast radius (downstream pipelines, datasets and catalog tables, and which agent identities queried them when reads are audited), the thresholds in force, each threshold check, and the verdict (pending | pass | fail | needs-human). Computed by platform code, never by a model; values from protected or sensitive-looking columns are never included. Returns an error when the incident has no evidence.

find_dataA

Find datasets by meaning: ranks the pipelines your key can read against a natural-language query over their names, descriptions, tags, catalogs, destination field names, and source hosts. Each hit returns where the data lives, how fresh it is, provenance handles (latest run id, config version, script sha), lineage, and a howToQuery hint naming the existing query/search tool with pre-filled arguments. Discovery only — nothing is executed for you: make the query call yourself, then pass its provenance handles to ai_answer as sources so the answer carries them.

get_provenanceA

Resolve a stamped _datris_run_id value back to its origin: the pipeline run, the tap run that fed it, the script commit, the pipeline config version, and the declared source. Use it when rows or search results carry _datris_* provenance fields (pipelines with provenance stamping enabled). Returns one document walking the whole chain.

get_lineageA

Traverse the lineage graph from one node: everything upstream (what feeds it) and/or downstream (what depends on it) of a source, tap, pipeline, dataset, or catalog, with the edges between them, freshness for the pipeline involved, and optionally the most recent recorded runs (what each run read and wrote, per destination). Datasets a pipeline used to land into under an earlier configuration are marked historical. Use it for impact analysis before changing or deleting something — 'what is downstream of this tap?' — or to see which datasets a pipeline actually wrote. Node names: a tap or pipeline name; a dataset's kind:coordinates id as returned by find_data or list_pipelines lineage; a source host; a catalog name.

browse_unity_catalogA

Browse what a Databricks Platform secret can already see in Unity Catalog, one level per call: no catalog lists catalogs; catalog lists its schemas; catalog + schema lists tables; adding table returns its columns (name, type, comment) and tags. Use it before creating a Databricks pipeline to check whether the data already exists. Discover the secret name with list_platform_secrets. Tables carrying the datris_pipeline tag were loaded by that Datris pipeline (query them with query_databricks and that pipeline). If tag lookups are not permitted for the secret, tagsAvailable is false and browsing still works. The SQL warehouse comes from the warehouse argument, else the secret's optional warehouse field, else an existing Databricks pipeline using the secret. A stopped SQL warehouse auto-starts on the first call, which can take 5-20 seconds (longer for classic warehouses). Read-only; catalog and schema listings are cached for 5 minutes.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Pipeline Configuration ReferenceComplete reference for building Datris pipeline configurations. Covers all source types (CSV, JSON, XML, PDF), AI-powered data quality (CodeGen), AI transformations (CodeGen), and all destination types (PostgreSQL, MongoDB, Kafka, vector databases). Read this before using create_pipeline.
Tap Workflow ReferenceCanonical reference for everything tap-related: creation (instruction vs script), reading platform data from a tap script (auto-injected DATRIS_PLATFORM_* env vars + query API callback — no credentials needed), per-run params, incremental sync via persistent state (DATRIS_TAP_STATE bookmarks), scheduling (with CRON cookbook), run flow + polling, error handling (persistedReason table, payload disk budget guidance), document taps, and outcome verification via publisherToken + get_tap_logs. Re-read this any time you need to verify your understanding of how taps work — including the SCHEDULING RULE for recurring data needs.

TDQS

A3.7/5.0

Scored across 90 tools

Disambiguation3/5

Most tools target distinct resources or destinations, and descriptions are explicit. However, several families overlap in purpose: get_pipeline_status vs get_job_status vs get_pipeline_result, tap vs platform secret tools, and parallel version tools for taps, pipelines, and scripts. At 90 tools, an agent must do substantial description-reading to choose correctly.

Naming Consistency4/5

The surface is overwhelmingly snake_case and verb_noun based, e.g. list_pipelines, create_tap, delete_catalog, query_postgres. Minor deviations like catalog_enable_order and get_dest_types are readable but slightly inconsistent with the dominant action-first pattern.

Tool Count2/5

90 tools is far beyond a practical agent-facing surface, even for a broad data platform. Many related operations are split into separate tools where consolidation or grouping would materially reduce selection burden.

Completeness4/5

The set covers a wide lifecycle: pipelines, taps, catalogs, secrets, versioning, restores, destination queries, vector search, approvals, incidents, lineage, and health checks. Minor gaps remain, such as no explicit pipeline update tool and no obvious catalog listing tool, but most workflows can be completed through adjacent operations.

Maintenance

ActivityActive
ResponsivenessNo recent community issues