Database Tools for Agents
Database Integration#
System Prompt Snippet#
You must add it to the Agent system prompt:The Database engine is **PostgreSQL**, format parameters accordingly.
Use the tool `Get Base Schema` to load the entire database model (tables, columns, types, policies).
**Important: Obtain the schema before any other operation by calling `Get Base Schema`!**
Purpose: Fetch full schema so the agent understands available tables, fields, and rules.
altaner_component_id
(Hard-coded): {{[$vars].room.meta_data.components.base.id}}
Read Operations#
You must add the tools below when the agent capabilties require from reading tables.Purpose: Retrieve rows from a specific table.
path
(Agent): Target table name -- {type: "ai", value: null}
Filter Conditions
(Agent): WHERE clause filters -- {type: "ai", value: null}
Columns Selection
(Agent): List of fields to return -- {type: "ai", value: null}
Write Operations#
You must add the tools below when the agent capabilities require from write rows (records) to the database.Purpose: Insert new rows into a table.
path
(Agent): Target table name
body
(Agent): JSON payload of column-value pairs
The Base ID Parameter#
The base_id
paramater identifies the Database. Use the action get_project
to obtain it if not in context.Modified at 2025-08-08 16:43:18