Get model
get_modelRetrieves a data model's full structure by ID or slug, including fields, product, account and company settings and URL pattern, so you can inspect it before updates.
Instructions
Get the full details of one data model by id or slug: complete field definitions (type, options, relations, validation) the product capability config (enabled, field roles incl. the resolved roles, variantAxes) the accounts config (auth: identityField, companyField - a relation to a Company model, registration - open or closed, closed means siteMember.register refuses new sign-ups, email - whether cmssy sends verification, password reset and login change emails itself (enabled, links URL templates, templates copy overrides per kind and locale; off means the app's webhook sends them); each field's memberCanSet says whether the member may change it on their own account and send it at sign-up, never for password fields or the company field) the Company capability (company: { enabled }, null when never set; a model is at most one of product, account or company) and urlPattern, the storefront route its records' url is built from (null when none). Use before update_model and when the user asks about a model's structure.
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": {
"idOrSlug": "<idOrSlug>"
},
"name": "get_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idOrSlug | Yes | The model's id or slug (from list_models) |