Create resource
create_resourceDeclare a single new stateful CRUD collection with typed fields and initial seed records. Materializes live CRUD endpoints (list, get, create, patch, put, delete) immediately.
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": {
"workspace": "<workspace>",
"slug": "<slug>",
"fields": "<fields>"
},
"name": "create_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Resource slug (e.g. 'reviews'). | |
| fields | Yes | Ordered typed fields. | |
| folder_id | No | Optional folder ID to nest under. | |
| workspace | Yes | Target workspace slug. | |
| seed_records | No | Seed data rows. | |
| access_policy | No | Intended access level. Stored with the resource and used for export; the mock runtime does not enforce it yet. | public |