Repository navigation
Tools Database
tvranjes edited this page Jun 17, 2026
·
1 revision
2 tools for inspecting database schema and executing read-only queries.
Returns table structure with columns, indexes, and foreign keys.
| Parameter | Type | Default | Description |
|---|---|---|---|
table |
string | "" |
Exact table name |
pattern |
string | "" |
Table name pattern to search |
Security: Table names are validated against actual database tables before use in queries to prevent SQL injection.
Execute a read-only SELECT query against the Magento database.
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | required | SQL SELECT query |
limit |
int | 100 | Maximum rows returned |
Restrictions:
- Only
SELECTstatements are allowed - Row limit is enforced via
tools.database-query.max_rowsconfig - Sensitive configuration paths are masked in results (
payment/*,carriers/*,oauth/*, etc.)
{
"tools": {
"database-query": {
"enabled": true,
"max_rows": 100
}
}
}Getting Started
Architecture
Tools Reference
- Overview (84 Tools)
- Introspection
- Catalog
- Orders
- Customers
- Database
- Logs & Diagnostics
- GraphQL
- Development
Configuration
Guidelines & Skills
Code Generation
Diagnostics
Security