list_models
List all Pydantic BaseModel classes defined in a specified Python file to inspect data models in FastAPI projects.
Instructions
List all Pydantic BaseModel classes defined in a file.
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": {
"file": "<file>"
},
"name": "list_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |