execute_ddl
Execute DDL statements to manage database schema: create, alter, or drop tables, indexes, views, and other objects.
Instructions
执行 DDL(数据定义语言)语句,包括 CREATE、ALTER、DROP 等操作。用于创建、修改或删除数据库对象(表、索引、视图等)。
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": {
"sql": "<sql>"
},
"name": "execute_ddl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | 要执行的 DDL SQL 语句(CREATE、ALTER、DROP 等) |