db_schema
Retrieve database table structure including columns, data types, keys, and constraints for SQLite, PostgreSQL, or MySQL databases.
Instructions
Get table schema: columns, types, keys, and constraints.
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": {
"type": "<type>",
"table": "<table>"
},
"name": "db_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Database type | |
| table | Yes | Table name | |
| connection | No | Connection string | |
| host | No | Database host | |
| port | No | Port number | |
| database | No | Database name | |
| user | No | Username | |
| password | No | Password |