rails_get_model_details
Retrieve ActiveRecord model details—associations, validations, scopes, enums, callbacks, concerns—to understand relationships and check existing behavior before edits.
Instructions
Get ActiveRecord model details: associations, validations, scopes, enums, callbacks, concerns. Use when: understanding model relationships, adding validations, checking existing scopes/callbacks. Specify model:"User" for full detail, or omit for a list. detail:"full" shows association lists.
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_model_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max models to return when listing. Default: 50. | |
| model | No | Model class name (e.g. 'User', 'Post'). Omit to list all models. | |
| detail | No | Detail level for model listing. summary: names only. standard: names + association/validation counts (default). full: names + full association list. Ignored when specific model is given (always returns full). | |
| offset | No | Skip this many models for pagination. Default: 0. |