create_view
Save a SELECT query as a named view to reuse it across sessions. Provide a description for future reference; set replace=true to redefine an existing view.
Instructions
Save a SELECT as a named view: a reusable query skill. Give it a description so future sessions know what it is for; it is stored inside the view and shown by get_schema. With replace=true an existing view is redefined and its previous definition is kept in query_log.
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": {
"name": "<name>",
"select_sql": "<select_sql>"
},
"name": "create_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | View name: letters, digits and underscores, not starting with a digit. | |
| replace | No | Redefine the view if it already exists. | |
| select_sql | Yes | The SELECT the view stands for. | |
| description | No | What the view is for; stored inside the definition. |