Prompting Your AI Agent
You do not need to write JSON tool calls to use Loxtep. Once your AI agent is connected via MCP, you can talk to it in plain English and it translates your intent into the right operations. This guide shows you what to say.
If the agent is not connected yet, copy the canonical setup prompt from Quickstart, or run loxtep start with the CLI installed. The local helper node scripts/loxtep-orient.mjs prints the same prompt.
See Ask templates for questions to try after setup.
How It Works
Your AI agent (Cursor, Claude, Kiro, or any MCP client) sees the Loxtep tool surface and knows how to map natural language to the correct operations. You describe what you want; the agent handles the rest.
Tip: Be specific about names, types, and constraints. The more context you give, the fewer follow-up questions the agent needs to ask.
Session and Orientation
Check who you are
Say:
Who am I in Loxtep? What organization am I in and what can I access?
The agent calls get_current_user and summarizes your identity, organization, roles, and RBAC permissions.
Check your organization context
Say:
Show me my Loxtep organization details.
Projects
Create a project
Say:
Create a new Loxtep project called "commerce-mesh".
Or more descriptively:
I need a new project in Loxtep for our e-commerce data. Call it "commerce-mesh"
and add a description: "Unified commerce data across Shopify, Stripe, and warehouse systems."
List projects
Say:
What projects do I have in Loxtep?
Get project details
Say:
Show me the details of the commerce-mesh project.
Connectors and Connections
See available connector types
Say:
What types of connectors does Loxtep support?
Connect a data source
Say:
Connect our Shopify store to Loxtep. The shop URL is mystore.myshopify.com.
For a database:
Create a PostgreSQL connector to our commerce database at db.example.com,
port 5432, database "commerce", user "readonly_user", password "s3cret".
Wire a connector into a project
Say:
Add the Shopify connector to the commerce-mesh project as a connection called "shopify-orders".
Test a connection
Say:
Test the shopify-orders connection in commerce-mesh — is it healthy?
Data Products
Create a source data product
Say:
Create a source data product called "orders" in the commerce-mesh project with fields:
order_id (string), customer_id (string), total_amount (number, in cents),
and created_at (datetime).
Or keep it simple and let the agent ask for details:
I need a new source data product for order data in commerce-mesh.
Create a consumer data product
Say:
Create a consumer data product called "order-summary" that projects
aggregated order counts and revenue by month from the orders source.
List data products
Say:
List all data products in my organization.
Or filter:
Show me only source data products in the commerce domain.
Set up a webhook delivery
Say:
Set up a webhook on the orders data product that POSTs to https://api.myapp.com/hooks/orders
whenever new events arrive. Include an authorization header with "Bearer my-token".
Schemas and Quality
Define a schema
Say:
Create a schema for the orders data product with version 1.0. Include fields:
order_id (string, required), customer_email (string), total (number), created_at (datetime).
Tag PII fields
Say:
Mark customer_email as PII on the orders schema.
Add a quality rule
Say:
Add a quality rule to the orders data product: total_amount must be greater than 0,
severity "error", threshold 99%.
Test a quality rule
Say:
Run the "positive total" quality rule against sample data to see if it passes.
Workflows
Create a workflow
Say:
Create a workflow called "ingest-orders" in commerce-mesh that pulls data
from the shopify-orders connection into the orders data product.
Build a workflow graph
Say:
Wire up the ingest-orders workflow: source node from connection cx_001,
destination node to data product dp_orders, with a direct edge between them.
Preview a transformation
Say:
Preview this transform on some sample order data: convert total_amount from cents to dollars
by dividing by 100.
Deployments
Deploy a project
Say:
Deploy the commerce-mesh project to the sandbox instance.
Deploy a single workflow
Say:
Deploy just the ingest-orders workflow to sandbox.
Check deployment status
Say:
What's the status of my latest deployment for commerce-mesh?
Or list all deployments:
Show me all deployments. Are any failed?
Analytics and Queries
Run a SQL query
Say:
Query the orders data: how many orders do I have since January 2024,
and what's the total revenue?
Or provide SQL directly:
Run this query: SELECT count(*) as orders, sum(total_amount)/100.0 as revenue
FROM orders WHERE created_at > '2024-01-01'
Explore tables
Say:
What tables are available for analytics?
Or for a specific data product:
Show me the schema for the orders table.
Catalog and Discovery
Search the catalog
Say:
Search the catalog for anything related to "customer".
Check lineage
Say:
Show me the lineage and downstream impact of the orders data product.
Run discovery
Say:
Run discovery on the commerce-mesh project to find new assets.
Check governance
Say:
Are there any governance flags on the orders data product?
Semantic Layer and Ontology
Search the semantic layer
Say:
Search the semantic layer for "revenue" — what does that term mean across our org?
Resolve a field name
Say:
What's the canonical name for "customer_email"? Does it have aliases?
Create an ontology concept
Say:
Add "CustomerLifetimeValue" to our ontology under the "commerce" namespace
as a metric concept.
Sync vocabulary
Say:
Sync this vocabulary into Loxtep: order_id, customer_id, sku, total_amount,
created_at — map them to our canonical keys.
Instances
List runtime instances
Say:
What Loxtep instances do I have?
Create a playground instance
Say:
Create a free shared instance called "sandbox" in us-east-1.
Create a paid instance
Say:
Create a managed Starter instance called "production-mesh" in us-east-1.
My payment method ID is 550e8400-e29b-41d4-a716-446655440000.
Workspace and Versions
Take a snapshot
Say:
Take a snapshot of the commerce-mesh project and label it "pre-refactor".
Compare versions
Say:
Compare the current state of commerce-mesh to the pre-refactor snapshot.
What changed?
Reindex the workspace
Say:
Reindex the commerce-mesh workspace.
Check queue events
Say:
Show events in the workflow deployment errors queue from the last hour.
Results come back oldest-first from that start point. Each call returns at most
100 events. A larger count is capped at 100, and a fraction such as 1.5 is
rejected. When the response has has_more: true, the agent calls again with
next_cursor as the new start point until has_more is false. Follow a
returned next_cursor unchanged. An empty incomplete scan never moves the
cursor forward. The call fails with scan_incomplete, which is not an empty
queue, and the agent retries from the same start.
countis per call:events.countin the response is the number of events scanned on that call, whether or not they matched, not the length ofresults.events.scanned_countcarries the same number. Each call starts a new tally, and a resumed call re-reads the boundary event, so do not addcountorscanned_countacross pages to get a total.
Process Intelligence
Get entity context
Say:
What's the context for customer entity "cust_12345"?
Record a decision
Say:
Record a decision trace: decision "approve-refund-policy", procedure "refund-handling",
outcome "approved", actor "ops-team", rationale "Within policy threshold".
Procedures
List procedures
Say:
Show me all process graph procedures.
Create a procedure
Say:
Create a new procedure called "order-fulfillment" with steps for
validation, payment capture, inventory check, and shipping.
Import a process graph
Say:
Import this process graph into Loxtep as a new procedure.
Agent Orchestration
Create an issue
Say:
Create a Loxtep issue: "Onboard the payments data source from Stripe."
Track goals
Say:
What goals are currently active in the agent workspace?
List agents
Say:
Show me what agents are registered in Loxtep.
Tips for Effective Prompting
- Name things explicitly — "Create a project called X" is better than "Create a project" followed by a name prompt.
- Provide IDs when you have them — "Deploy workflow wf_001 to instance inst_sandbox" avoids a lookup step.
- Describe the outcome you want — "I want to query order revenue by month" lets the agent write the SQL for you.
- Chain operations naturally — "Connect Shopify, create an orders data product, build an ingestion workflow, and deploy it" works as one prompt.
- Ask for status when unsure — "What's the state of my project?" or "Did the deployment succeed?" keeps you oriented.
Prompt Cheat Sheet
| What you want to do | Example prompt |
|---|---|
| Orient yourself | "Who am I in Loxtep?" |
| Create a project | "Create a project called X" |
| Connect a source | "Connect our Postgres database at host:port" |
| Model a data product | "Create a source data product called orders with these fields..." |
| Build a pipeline | "Create a workflow that ingests from connection X into data product Y" |
| Deploy | "Deploy the project to sandbox" |
| Query data | "How many orders came in this month?" |
| Search catalog | "Search for anything related to customer" |
| Check lineage | "Show lineage for the orders data product" |
| Add quality rules | "Add a rule: field X must not be null, severity error" |
| Manage versions | "Take a snapshot labeled 'before-migration'" |
| Debug data flow | "Show events in the deployment errors queue from the last hour" |