Database Query
db-queryExecute SQL queries directly on Magento 2 database to retrieve, analyze, or modify data with output in table, JSON, or CSV format.
Instructions
Execute SQL queries directly on Magento 2 database
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>"
},
"name": "db-query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format | table |
| query | Yes | SQL query to execute |