get_model_fields
Discover the structure of Odoo models by retrieving field metadata, including names, types, and relevance, to enable efficient schema analysis and data integration.
Instructions
Get field metadata for a specific Odoo model
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": {
"model": "<model>"
},
"name": "get_model_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| instance | No | ||
| relevance | No | ||
| max_fields | No | ||
| field_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Reporting tool name. | |
| count | No | ||
| error | No | Sanitized error message when success is false. | |
| result | No | Mapping of field name to fields_get metadata. | |
| ranking | No | Relevance scores when relevance="top". | |
| success | Yes | False when the call failed; see error. | |
| relevance_applied | No | ||
| restricted_fields | No | Fields marked restricted by the field ACL. |