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.
DescribeView returns a complete metadata snapshot of a single SQL Server view: identity fields (schema, name, object ID, creation and modification dates, description), an ordered column list with type information, and the full T-SQL definition sourced from OBJECT_DEFINITION() — the same text stored in sys.sql_modules. When the AI Insights layer is active it also attaches cached insight data.
Prefer DescribeView over ad-hoc sys.sql_modules or INFORMATION_SCHEMA.VIEWS queries when you need the full definition and column details for a single view in one call.
Parameter
The view to describe. Accepts either of:
view_name— unqualified; the first matching view across all schemas is returned.schema.view_name— schema-qualified (recommended when the same view name exists in multiple schemas).
ActiveCustomers, dbo.ActiveCustomers, reporting.MonthlySales.Returns
View identity and timestamps.
Ordered list of view columns as returned by
sys.columns, ordered by column_id.Full T-SQL source of the view as returned by
OBJECT_DEFINITION(). null when the definition is encrypted (WITH ENCRYPTION) or otherwise unavailable.Cached AI Insights text for this view. Present only when the Insights layer is enabled.
null when no insight has been generated.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 agent enrichment is required.Structured enrichment instructions (MCP-Insight-Enrichment-v1). Contains
required, nextAction.args, and relatedObjectsToIntrospect.AI Insights enrichment protocol
For the full enrichment protocol specification, see the Enrichment Protocol reference page.
Usage notes
DescribeView does not return index or foreign-key information. Views cannot have foreign keys and rarely have indexed views outside of data-warehouse contexts. Use ReadData with a sys.indexes query if you need to inspect an indexed view’s clustered index.