describe_view
Retrieve the SQL definition and column structure of PostgreSQL views to understand database schema and query logic.
Instructions
Get the definition and columns of a view.
Args:
view_name: Name of the view
schema: Schema name (default: public)
Returns:
View definition SQL and column list
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": {
"view_name": "<view_name>"
},
"name": "describe_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_name | Yes | ||
| schema | No | public |