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.
GetInsight reads a single row from AIInsights.SchemaInsights for the specified object and also returns a freshness value computed against the live schema. If the live schema fingerprint has changed since the insight was last authored — for example because the object was altered or dropped — the stored row is automatically archived to AIInsights.InsightHistory and the freshness becomes StaleArchived.
Parameters
Object name without schema prefix (e.g.
TableProblems). Case follows the SQL Server collation of the connected database.Schema name. Pass
dbo explicitly when the object lives in the default schema. Pass null only when the schema is genuinely unknown.Object type label as stored in
AIInsights.SchemaInsights. Must be one of: Table, View, Procedure, Function, Trigger. Defaults to Table when omitted.Returns
true when the lookup completed without an unhandled exception.Present when
success is true.Present only when
success is false. Contains the exception message.GetInsight requires the AI Insights layer to be installed via InstallInsightsLayer and USE_INSIGHTS_LAYER to be enabled (the default). When the layer is disabled, insightFreshness is always LayerDisabled.Prefer
DescribeTable, DescribeView, or GetObject for schema introspection — those tools embed the insight data automatically in their response. Use GetInsight only when you need a direct cache read without pulling full schema metadata.StaleArchived or Absent, investigate the object and call UpsertInsight to write a fresh authored insight.