MySQL Exec
mysql_execExecute a single write-capable SQL statement on a MySQL database environment with policy-based security controls and environment routing.
Instructions
Run one write-capable SQL statement on a configured MySQL environment if policy allows.
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": {
"env": "<env>",
"sql": "<sql>"
},
"name": "mysql_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | Environment alias such as dev or stg. | |
| database | No | Optional database override allowed by server policy. | |
| sql | Yes | One SQL statement allowed by server policy. | |
| timeoutMs | No | Requested execution timeout in milliseconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| env | Yes | ||
| database | No | ||
| insertId | No | ||
| warnings | No | ||
| elapsedMs | Yes | ||
| affectedRows | Yes | ||
| statementType | Yes |