Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/A-Point-Systems-ltd/ms-sql-mcp/llms.txt

Use this file to discover all available pages before exploring further.

InsightsCheck queries the database for the current state of the AI Insights installation. Use it to verify the layer is installed and healthy before calling any other insights tools. When USE_INSIGHTS_LAYER is disabled via environment variable, the tool returns immediately without making a database query.

Parameters

InsightsCheck takes no parameters.

Returns

success
boolean
required
true when the status check completed without error; false if an unexpected exception occurred.
data
object
Present when success is true. Contains all layer status fields.
error
string
Present only when success is false. Contains the exception message.
If USE_INSIGHTS_LAYER=false, all boolean fields are false, integer fields are 0, and lastProcessedAt is null — without issuing any database query.
Call InsightsCheck after InstallInsightsLayer to confirm all objects were created successfully. A fully-installed layer should have aiInsightsSchemaExists, ddlAuditTableExists, and ddlAuditTriggerEnabled all returning true.

Build docs developers (and LLMs) love