execute_sql
Execute read-only SQL queries on Magento Cloud environments via SSH to inspect database data.
Instructions
Execute a read-only SQL query on a Magento Cloud environment via SSH
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": {
"query": "<query>",
"project": "<project>",
"environment": "<environment>"
},
"name": "execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL query to execute | |
| project | Yes | The Magento Cloud project ID | |
| environment | Yes | The environment name, e.g. 'staging', 'production' |