objects
The objects.* tools of the Runbase MCP server, generated from their definitions.
objects.create
Creates an object. Field types: text, number, bool, date, select, multi_select, email, url, json, ref, refs, currency { currency?: 'EUR' }, percent (12.5 = 12.5%), phone, rating { scale?: 5 }, user, file (list of { key, name, size, type } returned by files.upload). Computed (input value ignored): formula { formula: 'amount _ qty', result?: text|number|bool|date } recomputed on every write (operators + - _ / % = != < > and or not, functions if, concat, round, abs, min, max, upper, lower, len, coalesce, empty, today, days_between); lookup { through, field } and rollup { through, op: count|sum|avg|min|max, field? } computed on read (through = ref/refs field, or slug of an object that points to this one); created_at, updated_at, created_by, autonumber. Per-field validation: required, pattern (regex), minLength, maxLength, min, max; default = value set on creation. unique: true (text, email, url, number, phone): unique value in the database, even under concurrent writes (two simultaneous webhooks for the same email -> a single record, or a conflict error without match); serves as the match key for records.upsert. Email compared in lowercase.
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | yes | |
name | string | yes | |
icon | string | no | |
fields | array | yes | |
database | string | no | Database slug (default: the default database) |
workspace | string | no | Workspace id or name (default: active workspace) |
objects.delete
Permanently deletes an object and all its records (trash included). Without confirm=true: refused, with the number of records at stake. Export first (objects.export).
| Name | Type | Required | Description |
|---|---|---|---|
object | string | yes | Object slug or id (uuid) |
confirm | boolean | no | |
workspace | string | no | Workspace id or name (default: active workspace) |
objects.export
Exports all records of an object, 1000 per page, with no total limit. format csv (default, header on the 1st page) or json. Returns { csv | rows, next }; next page with after = next, until next = null.
| Name | Type | Required | Description |
|---|---|---|---|
object | string | yes | Object slug or id (uuid) |
format | string | no | One of: csv, json. |
after | string | no | |
workspace | string | no | Workspace id or name (default: active workspace) |
objects.get
Reads an object and its schema.
| Name | Type | Required | Description |
|---|---|---|---|
object | string | yes | Object slug or id (uuid) |
workspace | string | no | Workspace id or name (default: active workspace) |
objects.index
Creates (if missing) an index on an object field to speed up frequent filters and sorts on large volumes. Does not block writes, idempotent. Returns { index, field }.
| Name | Type | Required | Description |
|---|---|---|---|
object | string | yes | Object slug or id (uuid) |
field | string | yes | |
workspace | string | no | Workspace id or name (default: active workspace) |
objects.list
Lists the workspace objects (record types) and their fields.
| Name | Type | Required | Description |
|---|---|---|---|
workspace | string | no | Workspace id or name (default: active workspace) |
objects.migrate
Evolves an object's schema while carrying the data over. op: rename { field, to, label? } (values copied); change_type { field, type, options?, object?, dropInvalid? } (values converted; refused if invalid values remain, unless dropInvalid empties them); add { field: definition, default? } (default written to existing records, mandatory if required); require { field, default? } (default for empty records); delete { field } (purged from records). Always call with dryRun: true first: returns { records, touched, invalid, samples }.
| Name | Type | Required | Description |
|---|---|---|---|
object | string | yes | Object slug or id (uuid) |
operation | union | yes | |
dryRun | boolean | no | |
workspace | string | no | Workspace id or name (default: active workspace) |
objects.update_schema
Replaces an object's schema (fields), and optionally its name or icon. Same types as objects.create; an added or changed formula is recomputed on existing records.
| Name | Type | Required | Description |
|---|---|---|---|
object | string | yes | Object slug or id (uuid) |
fields | array | no | |
name | string | no | |
icon | string | no | |
workspace | string | no | Workspace id or name (default: active workspace) |