mysql_preview_table
Retrieve a sample of rows from any table, optionally ordered, to quickly inspect data without writing SQL queries.
Instructions
Preview first N rows from a table with optional ordering. Use this to quickly inspect sample data without writing SQL.
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": {
"database": "<database>",
"table": "<table>"
},
"name": "mysql_preview_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return | |
| table | Yes | Table name | |
| orderBy | No | Optional ORDER BY clause of the form 'column [ASC|DESC]' | |
| database | Yes | Database (schema) name |