Create a resource record
create_resourceCreates new Portal resources like blocks, queries, users, or data sources, applying risk-domain gates and optional dry-run validation before writing.
Instructions
Create a record. body carries the resource's fields (see describe_resource). Writes are gated by risk domain: content is on by default; data (datasources/db_modifications) needs PORTAL_ALLOW_DATA_WRITES; admin (users/groups/etc.) needs PORTAL_ALLOW_ADMIN_WRITES.
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": {
"resource": "<resource>",
"body": "<body>"
},
"name": "create_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Field values for the new record. Unknown fields are dropped. | |
| dry_run | No | Run every gate (domain, structure, per-kind rules, references) and report the would-be write without creating. | |
| resource | Yes | Resource type. Call describe_resource for fields and supported verbs. |