TheDocumentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
xpert_database resource connects SQL DataSources from xpert-pro to the UOSE system. It syncs metadata such as database catalogs, schemas, tables, columns, constraints, and indexes, and provides controlled read-only query and analysis actions.
Synced Objects
After sync, it usually contains:database_source: data source.database_namespace: catalog or schema.database_table: table or view.database_column: column.database_constraint: primary key, foreign key, unique, check, or not-null constraint.database_index: index.
database_source_has_namespacedatabase_namespace_has_tabledatabase_table_has_columndatabase_table_has_constraintdatabase_table_has_indexdatabase_constraint_references_tabledatabase_constraint_references_columndatabase_index_covers_column
Security Boundaries
Database resources especially emphasize sensitive information isolation:- Do not write password, token, or username into RDF, snapshots, entity attributes, or logs.
- Connection summaries keep only non-sensitive information such as host, port, database, catalog, schema, timezone, and sslmode.
- System schemas are not included by default.
- Use max tables, max columns, and max query rows to control scale.
Capabilities
Common capabilities include:dataSourceId: xpert-pro DataSource ID.catalogAllowlist: limit synced catalogs or schemas.tableAllowlist: limit synced tables.metadataEnrichment: whether metadata enrichment is enabled.includeSystemSchemas: whether system schemas are included.maxTables: maximum number of synced tables.maxColumns: maximum number of synced columns.maxQueryRows: maximum returned rows for queries.defaultPreviewRows: default number of preview rows.
Actions
Current executable read-only or analytical actions include:database.sync_pulldatabase.list_namespacesdatabase.list_tablesdatabase.describe_tabledatabase.describe_querydatabase.query_selectdatabase.preview_rowsdatabase.explain_query
database.query_select only allows a single read-only statement, such as SELECT, WITH, SHOW, or DESCRIBE. INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, TRUNCATE, CALL, EXEC, and similar statements are rejected.
Write Action Boundary
Transactional actions have entered the ontology and manifest, but v1 does not execute them:database.insert_rowsdatabase.update_rowsdatabase.delete_rowsdatabase.upsert_rowsdatabase.execute_mutationdatabase.create_tabledatabase.alter_tabledatabase.drop_table
Recommendations
- Use allowlists to control scope during initial sync.
- Enable metadata enrichment to obtain constraints, indexes, foreign keys, and row count estimates.
- Limit
maxQueryRowsfor production databases. - Let Agents describe table or explain query before executing select.
- Keep all write actions as approval and future-extension capabilities, and do not enable them in v1 production.