Skip to main content

Inspect Governance Rules

Type: Function

Inspect the deployed rule layer for one governed table. Use this when an agent needs to understand which usage, validation, and transfer rules exist before asking for an authorization decision or explaining a result.

Input ParametersDirect link to Input Parameters

ParameterTypeRequiredDescription
table_namestringYesFully qualified table name (DB.SCHEMA.TABLE).
columnsarrayNoOptional list of columns used to scope column-governance facts.

Output SchemaDirect link to Output Schema

FieldTypeDescription
table_namestringEvaluated table name.
effective_columnsarrayColumn-level sensitivity, PII, masking, and provenance facts.
data_meaningobjectBusiness context and source instruction metadata.
usage_rulesarrayDeployed permitted-use, prohibited-use, and AI-governance rules.
validation_rulesarrayDeployed pre-query validation rules.
transfer_rulesarrayDeployed destination and consumer-context transfer rules.

SQL ExampleDirect link to SQL Example

SELECT METATATE_APP.CORE.INSPECT_GOVERNANCE_RULES(
OBJECT_CONSTRUCT(
'table_name', 'ANALYTICS_DB.CORE.CUSTOMERS',
'columns', ARRAY_CONSTRUCT('EMAIL')
)
);

Agent WorkflowDirect link to Agent Workflow

Call this tool when authorize-use returns UNKNOWN, when validate-query-context reports ambiguous findings, or when an agent needs to explain available controls before proposing a compliant query.