modx_describe_object
Inspect an xPDO class’s fields, PHP/DB types, null/default values, and primary key to get real field names before creating or updating unfamiliar MODX objects.
Instructions
Schema introspection: list an xPDO class's fields (name + php/db type, null, default) and its primary key, so you use REAL field names instead of guessing. Accepts a class name (e.g. modResource) or an alias (resource/chunk/snippet/template/plugin/tv/category/user/context/setting). Use before create/update on an unfamiliar object.
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": {
"class": "<class>"
},
"name": "modx_describe_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class | Yes | xPDO class or alias, e.g. 'modResource' or 'resource'. |