rails_get_schema
Retrieve database schema details—tables, columns, types, indexes, and foreign keys—to write migrations and verify constraints or table relationships. Filter by table and detail level.
Instructions
Get database schema: tables, columns, types, indexes, foreign keys. Use when: writing migrations, checking column types/constraints, understanding table relationships. Filter to one table with table:"users", control detail with detail:"summary"|"standard"|"full".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rails_get_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max tables to return when listing. Default: 50 for summary, 25 for standard, 10 for full. | |
| table | No | Specific table name for full detail. Omit for overview. | |
| detail | No | Detail level. summary: table names + column counts. standard: table names + column names/types (default). full: everything including indexes, FKs, comments. | |
| format | No | Output format. Default: markdown. | |
| offset | No | Skip this many tables for pagination. Default: 0. |