get_views
Lists views in a SQL Server database, optionally filtered by schema and with their SQL definitions included, to support schema discovery and analysis.
Instructions
List views with optional definition
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>"
},
"name": "get_views"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Filter by schema name | |
| server | No | SQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified. | |
| database | Yes | Database name | |
| includeDefinition | No | Include view definition SQL |