What is the Data Model page?
Every workspace has a Data Model page: a curated view of the workspace’s connection that:- Selects which tables and columns are available
- Describes fields with human-readable annotations
- Secures data with row-level security rules

Workspaces replaced separate data models and agents. A workspace is its data model: there is one schema and one agent in each workspace, and they are versioned and published together.
Why Curate the Data Model?
- Simplify for AI - Only expose relevant tables so the agent isn’t overwhelmed
- Add context - Descriptions help AI understand what columns mean
- Control access - Data Security rules ensure users see only their data
Selecting Tables and Columns
By default, all tables are selected. To customize:- Open your workspace’s Data Model page
- Uncheck tables you want to hide
- Expand a table to uncheck specific columns
Less is more here. An agent scoped to 5 relevant tables with clear descriptions will significantly outperform one with access to 50 tables it has to guess about.
Adding Descriptions
Help AI and users understand your data:- Click into a table and add a Table Description
- Add a description to any column from its row in the column list
- For columns with categorical values users might filter by (region, status, owner), turn on Selectable — the agent can then enumerate valid filter values at query time
Data Security
Data Security controls which rows of data each user can access. You can define Global Security Rules that apply across all tables, or configure per-table rules for specific needs.Understanding Data Security
The Data Security system uses SQL-based filtering with dynamic variables:{{user.*}}- Access properties of the currently authenticated user{{organization.*}}- Access properties of the user’s organization
orders table so users only see their own orders:
Global Security Rules
Global Security Rules let you define filtering logic once and apply it to all applicable tables automatically. This is ideal when you have consistent patterns like:- Multi-tenant data separated by
tenant_id - User-owned data filtered by
user_id - Schema-based isolation (each tenant has their own database schema)
Accessing Global Rules
- Open your workspace’s Data Model page
- Click the Global Data Security tab, alongside Tables
- You’ll see the Global Rules editor, with + Add Rule above any rules that already exist
Rule Types
Schema Rules - Dynamic schema prefixing for multi-tenant databases where each tenant has their own schema:

Creating a Global Rule
- Click the Global Data Security tab
- Click Add Rule
- Choose Schema Rule or Column Rule
- Configure the rule settings
- The rule is automatically enabled

How Rules Are Applied
- Schema rules affect all tables - they change where data is fetched from
- Column rules only affect tables that have the specified column - tables without the column are unaffected
- Multiple rules are combined with AND logic
- Rules are applied in priority order (lower priority number = applied first)

Per-Table Data Security
Selecting a table gives it its own Data Security tab — distinct from the workspace-wide Global Data Security tab — showing how the global rules apply to that one table.
Manual Overrides (Break Glass)
Sometimes you need custom logic for a specific table. You can override global rules:- Select the table
- Go to its Data Security tab
- Click Edit manually
- Confirm the warning dialog
- Edit the SQL directly


Resetting to Global Rules
To return a table to global rule management:- Click Reset to global
- Confirm the dialog
- Your manual edits will be replaced with the auto-generated SQL

Testing Data Security
You can test your security rules to see exactly what data a specific user would see:- Open your workspace’s Data Model page
- Select a project user from the Test RLS as picker at the top of the page
- Click Test Query
- View the filtered results

Testing uses your actual database connection and shows real data filtered by the security rules. This helps verify your configuration before deploying.
Versioning and Production
You don’t manage versions on the Data Model page — they belong to the whole workspace:- Changes to the schema, its descriptions and its security rules autosave to the draft
- Publish stages a new workspace version, capturing the schema and the agent’s context together
- Promoting a version to production is what makes it live — see Workspaces
Syncing with Connection Changes
If your database schema changes:- Open your workspace’s Settings and go to the Connection tab
- Refresh the connection’s schema
- New tables/columns will appear in the Data Model (you can select them)
- Missing tables/columns will show warnings
Data Model Errors
If the production version has errors (e.g., missing tables), you’ll see a warning banner. This typically happens when:- A table was dropped from the database
- A column was renamed or removed
- The connection credentials changed
Next Steps
- Encode Your Context — layer prompts, golden assets, skills and knowledge base on top of the schema
- Learn about Row-Level Security for rule syntax, testing and global rules
- Manage Project Users to define the user properties Data Security references