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.
DescribeTable returns a comprehensive metadata snapshot of a single table in one round-trip: table identity, every column with its data type and extended-property description, non-primary-key indexes, key constraints (primary key and unique constraints), foreign keys including both the source and referenced column lists, and table-level triggers with their enabled state and event types. When the AI Insights layer is active it also attaches cached insight data that agents can use to avoid redundant schema investigations.
Prefer DescribeTable over writing ad-hoc sys.* queries for a single table — it coalesces six catalog queries into one structured response.
Parameter
The table to describe. Accepts either of:
table_name— unqualified; the first matching table across all schemas is returned.schema.table_name— schema-qualified (recommended when the same table name exists in multiple schemas).
Orders, dbo.Orders, sales.RegionalTotals.Returns
Table identity and ownership.
Ordered list of columns as returned by
sys.columns.Non-primary-key, non-unique-constraint indexes defined on the table.
Primary key and unique constraints from
sys.key_constraints.Foreign key relationships in which this table is the parent (referencing) side.
Table-level DML triggers from
sys.triggers.Cached AI Insights text for this table. Present only when the Insights layer is enabled (
USE_INSIGHTS_LAYER != false). null when no insight has been generated yet.ISO 8601 timestamp of when the cached insight was last written.
null when no insight exists.true when the Insights layer determines the cached data is incomplete and the agent should enrich it. See the enrichment warning below.Structured enrichment instructions conforming to the MCP-Insight-Enrichment-v1 protocol. Contains
required, nextAction.args, and relatedObjectsToIntrospect. Present only when enrichment is needed.AI Insights enrichment protocol
For the full enrichment protocol specification, see the Enrichment Protocol reference page.