Get Table Sample
get_table_sampleRetrieve sample rows from a specified table in a MySQL database to quickly understand its data content. Optionally set the row limit up to 100.
Instructions
获取表的样本数据(默认前5行),快速了解数据内容
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": "get_table_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 返回行数,默认5,最大100 | |
| table | Yes | 表名称 | |
| database | Yes | 数据库名称 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |