Skip to Content
Runbase

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.

NameTypeRequiredDescription
slugstringyes
namestringyes
iconstringno
fieldsarrayyes
databasestringnoDatabase slug (default: the default database)
workspacestringnoWorkspace 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).

NameTypeRequiredDescription
objectstringyesObject slug or id (uuid)
confirmbooleanno
workspacestringnoWorkspace 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.

NameTypeRequiredDescription
objectstringyesObject slug or id (uuid)
formatstringnoOne of: csv, json.
afterstringno
workspacestringnoWorkspace id or name (default: active workspace)

objects.get

Reads an object and its schema.

NameTypeRequiredDescription
objectstringyesObject slug or id (uuid)
workspacestringnoWorkspace 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 }.

NameTypeRequiredDescription
objectstringyesObject slug or id (uuid)
fieldstringyes
workspacestringnoWorkspace id or name (default: active workspace)

objects.list

Lists the workspace objects (record types) and their fields.

NameTypeRequiredDescription
workspacestringnoWorkspace 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 }.

NameTypeRequiredDescription
objectstringyesObject slug or id (uuid)
operationunionyes
dryRunbooleanno
workspacestringnoWorkspace 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.

NameTypeRequiredDescription
objectstringyesObject slug or id (uuid)
fieldsarrayno
namestringno
iconstringno
workspacestringnoWorkspace id or name (default: active workspace)

On this page