StoryOS
v0.1.2Your StoryOS workspace (records, approvals and agents) for Claude, ChatGPT and any MCP client.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_started Get started
Orientation for these tools plus a workspace map (spaces → databases → fields). Without `section` it returns the overview and an index of section names; with `section` it returns one reference section (FILTERS, ICONS, WORKING NOTES, TOOL NOTES <tool>).
| Parameter | Type | Description |
|---|---|---|
section | string | Optional. One section name from the index this tool returns when called without it, e.g. 'TOOL NOTES create_automation', 'FILTERS', 'ICONS'. Exact name first, then case-insensitive. Omit for the overv… |
workspace | string | Workspace name or id to map (optional). |
list_workspaces List workspaces
Every workspace the token can access (id, name, role, description).
get_workspace Get workspace
One workspace, addressed directly by name/slug/id — its full metadata, including settings.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name, slug, or id (from list_workspaces). |
list_databases List databases
Databases in a workspace. `ref` is the canonical space/database slug, which identifies one database unambiguously; a bare name can be ambiguous because the same name can exist in two spaces.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name or id. |
describe_database Describe database
The schema of one database: every field with its exact api_name, type, select options and relation targets. These are the exact api_names that record writes and queries are keyed by.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
search Search records
Full-text search records across a workspace by title. Turns a name ("the Acme project") into a real record id.
| Parameter | Type | Description |
|---|---|---|
query * | string | Text to search for. |
workspace * | string | Workspace name or id. |
limit | integer |
count_records Count records
Count records in a database, or total/average a numeric field — computed in the database, returning one number. Answers "how many" questions exactly: the count is made in the database, whereas counting the results of query_records, which is paginated, gives the size of one page, not the total. [Full notes: get_started section "TOOL NOTES count_records"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
workspace * | string | |
field | string | Field api_name to aggregate. Required for everything except count. |
filter | Same filter AST as query_records. See also: get_started section "FILTERS". | |
op | string | Default "count". The others need `field` and aggregate its numeric values. |
q | string | Free-text match on the title, same as query_records. |
count_records_grouped Count records, grouped
Count records (or total/average/min/max a numeric field) PER GROUP of another field, in one call — computed in the database. [Full notes: get_started section "TOOL NOTES count_records_grouped"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
group_by * | string | Field api_name to group by — see the type list above. |
workspace * | string | |
field | string | Field api_name to aggregate. Required for everything except count. |
filter | Same filter AST as query_records. See also: get_started section "FILTERS". | |
group_by_granularity | string | Required when group_by is a date field; ignored otherwise. Each group's key is that bucket's start date. |
op | string | Default "count". The others need `field` and aggregate its numeric values within each group. |
q | string | Free-text match on the title, same as query_records. |
query_records Query records
List/filter/sort records in a database. filter is the structured AST (See also: get_started section "FILTERS" for the full op cheat-sheet). [Full notes: get_started section "TOOL NOTES query_records"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
cursor | string | next_cursor from a prior call. |
filter | Filter AST — grouped { and: [{ field, op, value }] }/{ or: [...] }, or a bare { field, op, value } condition. Example: { "field": "priority", "op": "eq", "value": "Urgent" }. See also: get_started s… | |
limit | integer | |
sorts | array | Sort keys by field api_name. A select or workflow field sorts by its OPTION ORDER (the order the field's options are arranged in: Low → Urgent, Triage → Done), not alphabetically by label; desc re… |
view | string | View id or name — applies that view's saved filter and sorts, so "the records in this view" matches what the UI shows. A `view` URL's ?view=<uuid> works directly. Your own `filter`/`sorts` override… |
get_record Get record
One record in full — values keyed by api_name, resolved relation chips. Accepts the record uuid or its public number. [Full notes: get_started section "TOOL NOTES get_record"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
record * | string | Record uuid or public number (e.g. "17"). |
workspace * | string | Workspace name or id. |
create_record Create record
Create a record. values are keyed by api_name (field names as listed by describe_database); select/person values accept the human label, rich_text accepts Markdown, and relation fields accept an array of target record numbers or ids — linked in the same write, so no follow-up link_records. [Full notes: get_started section "TOOL NOTES create_record"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
values * | object | Field values by api_name; "name" sets the title. A relation field takes an array of target record numbers or ids, e.g. { project: [12] } — created atomically with the record. |
workspace * | string |
upsert_record Upsert record
#230: match-or-create on a unique key. key_field must be a field marked unique via update_field/add_field's unique config (#229). values must include key_field — that value is the match. A matching record is updated (merge, same as update_record); no match creates a new record. Returns { record, created }, so a caller can tell which branch it took.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
key_field * | string | api_name of the unique field to match on. |
values * | object | Field values by api_name; must include key_field. Relation fields work the same as create_record. |
workspace * | string |
update_record Update record
Merge-update a record (null clears a field). values by api_name; record is a uuid or public number. Fields marked read_only in describe_database (system columns, and on an agent run its pending_action, run_class and cost, which the agent runtime owns) cannot be written and are refused. Returns the updated record.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | |
values * | object | |
workspace * | string |
get_record_description Get record's description (document body)
The record's own rich-text description/document — the block editor content shown under its title, NOT a custom field literally named "description" (such a field appears in get_record's values, if the database has one). Returns Markdown. version 0 means it has never been written.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string |
update_record_description Set record's description (document body)
Overwrite the record's rich-text description/document — the block editor content shown under its title, NOT a custom field literally named "description" (that field is set through update_record's values). content is Markdown (headings/lists/links parsed into real blocks, same as a rich_text field). [Full notes: get_started section "TOOL NOTES update_record_description"]
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown. An empty string clears the description. |
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string | |
expected_version | integer | Optimistic-concurrency guard. Omit to overwrite regardless of the current version. |
delete_record Delete record
Move a record to trash (restorable 30 days). record is a uuid or public number.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | |
workspace * | string |
link_records Link records
Link a record through a relation field to target records (by uuid or public number). Default ADDS links; `replace: true` sets the link set to exactly `targets`, which is how a one-to-many link is re-pointed or cleared (adding a second target without replace returns a 409). Target ids come from search / query_records.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | |
relation_field * | string | The relation field on this database (api_name, name, or id). |
targets * | array | Target record uuids or public numbers. With replace:true, an empty array clears all links. |
workspace * | string | |
replace | boolean | Replace the whole link set with `targets` instead of adding to it — required to change a one-to-many link (#81). |
unlink_records Unlink records
Remove specific links from a record's relation field, leaving the relation and every other link intact. Fixes a mis-link (link_records with replace does too); unlike delete_relation, which drops the relation everywhere, it touches only the named links (#81).
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | |
relation_field * | string | The relation field on this database (api_name, name, or id). |
targets * | array | Target record uuids or public numbers to unlink. |
workspace * | string |
add_comment Add comment
Post a plain-text comment on a record (uuid or public number).
| Parameter | Type | Description |
|---|---|---|
body * | string | |
database * | string | |
record * | string | |
workspace * | string |
list_trash List trash
The deleted records of a database, newest first — restorable for 30 days, then gone for good. A deleted record no longer resolves by public number anywhere else, so this is where the ids restore_records takes come from; it also shows whether a delete took effect.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string |
delete_records Delete records
Move up to 200 records to trash in one call (restorable 30 days via list_trash / restore_records). Records are uuids or public numbers. Exists so cleaning up a query result is one call instead of two hundred; delete_record handles a single one.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
records * | array | Record uuids or public numbers. |
workspace * | string |
restore_records Restore records
Bring records back from the trash. Pass uuids or public numbers — a number is resolved against the trash listing, since a deleted record no longer resolves by number anywhere else. Restoring one record returns the record; restoring several returns a count.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
records * | array | Record uuids or public numbers (see list_trash). |
workspace * | string |
duplicate_record Duplicate record
Copy a record: its values, its description document, and its single/many-to-many links. Owned collections (the "many" side a record owns) are NOT copied — a duplicated project does not clone its tasks. Returns the new record, which makes it a template-instantiation step (a filled-in record need not be re-typed).
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string |
copy_records Copy records to another database
#521 — copy one or more records into a DIFFERENT database (unlike duplicate_record, which copies within the same one). [Full notes: get_started section "TOOL NOTES copy_records"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Source database. |
records * | array | Record uuids or public numbers to copy. |
target_database * | string | Destination database. |
workspace * | string | |
dry_run | boolean | Default true: preview the mapping and any blocking fields without writing anything. |
override | object | Source field api_name -> destination field id (from a dry_run plan's own field ids, or an ambiguousWith candidate's field_id). Wins over auto-match and resolves an ambiguous relation by naming the exa… |
skip | array | Source field api_names to skip explicitly — resolves a blocking field. |
move_record Move record
Reposition a record in the hand-arranged (manual) order — the order list_records returns and a board/list shows. [Full notes: get_started section "TOOL NOTES move_record"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string | |
after | string | Land immediately AFTER this record (uuid or public number). |
before | string | Land immediately BEFORE this record (uuid or public number). |
values | object | Optional field patch applied atomically with the move — the column a kanban card is dropped into. |
list_records List records (manual order)
Records in the hand-arranged (drag) order a human sees — the one thing query_records cannot express, since it sorts by field values and falls back to manual order only when given no sorts at all. [Full notes: get_started section "TOOL NOTES list_records"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string | |
cursor | string | next_cursor from a previous call. |
limit | integer | Default 50, max 200. |
q | string | Case-insensitive substring match on the record title. |
list_comments List comments
Read a record's comment thread, newest first, as plain text — including the ones you posted with add_comment. [Full notes: get_started section "TOOL NOTES list_comments"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string |
list_database_comments List database comments
Every comment AND #record reference across every record in a database, newest first — a quick "what happened recently" overview, without visiting each record. Different from list_comments, which reads ONE record's thread; this is the cross-record feed. [Full notes: get_started section "TOOL NOTES list_database_comments"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
cursor | string | next_cursor from a prior call. |
limit | integer | Max entries (default 50). |
list_hierarchy_activity List hierarchy activity
Comments AND #record references across a whole relation TREE rooted at one record — e.g. every comment/reference on an Epic AND its Stories AND their Tasks, not just the Epic itself. [Full notes: get_started section "TOOL NOTES list_hierarchy_activity"]
| Parameter | Type | Description |
|---|---|---|
database * | string | The ROOT record's database — name, api slug, or id. |
record * | string | The ROOT record — number or id. |
relation_fields * | array | One entry per level, e.g. [{database: "Epics", field: "Stories"}, {database: "Stories", field: "Tasks"}] to walk Epic → Story → Task. |
workspace * | string | Workspace name or id. |
cursor | string | next_cursor from a prior call. |
limit | integer | Max entries (default 50). |
update_comment Update comment
Replace the text of a comment you authored (id from list_comments). Editing someone else's is refused by the API; an edit replaces the text in place, so the thread holds one comment, not a correction after the original.
| Parameter | Type | Description |
|---|---|---|
body * | string | The replacement text — replaces the whole comment, not appended. |
comment * | string | Comment id from list_comments. |
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string |
delete_comment Delete comment
Delete a comment you authored (workspace admins may delete any). The id comes from list_comments. Unlike a record, a comment does not go to a trash you can browse — deleting is the end of it.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment id from list_comments. |
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string |
get_history Get record history
What happened to a record, newest first, through one of four lenses (`kind`): "fields" (default; per-field changes with before/after, for "who changed the status and when"), "versions" (whole-record snapshots; a version id goes to restore_version), "activity" (the full trail including comments, links and attachments) and "document_versions" (snapshots of the description document; an id goes to restore_document_version). Each lens answers a different question. Every row carries `source` (human/agent/automation/mcp). [Full notes: get_started section "TOOL NOTES get_history"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string | |
cursor | string | next_cursor from a previous call. |
kind | string | Default "fields". |
limit | integer | Default 20. |
restore_version Restore version
Roll a record back to a previously captured snapshot. The version id comes from get_history with kind:"versions". This OVERWRITES the current values with the old ones and is itself recorded as a new version, so it is undoable. A snapshot list carries titles and timestamps, not values.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
version * | string | Version id from get_history kind:"versions". |
workspace * | string |
restore_document_version Restore document version
#677 — roll a record's DESCRIPTION document back to a previously captured version. The version id comes from get_history with kind:"document_versions". Separate from restore_version, which only ever touches field values, never the description. [Full notes: get_started section "TOOL NOTES restore_document_version"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
version * | string | Version id from get_history kind:"document_versions". |
workspace * | string |
list_backlinks List backlinks
Records whose description document MENTIONS this record — the "Mentioned in" list. This is prose cross-referencing, NOT relation links (structural links appear in get_record, and describe_database lists the relation fields). [Full notes: get_started section "TOOL NOTES list_backlinks"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string | |
cursor | string | next_cursor from a previous call. |
limit | integer | Default 100. |
list_linked_records List linked records
The full link set of ONE relation field on a record, as records you can act on (id, public number, title, url). [Full notes: get_started section "TOOL NOTES list_linked_records"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
relation_field * | string | The relation field on this database (api_name, name, or id). |
workspace * | string |
list_watchers List watchers
Who gets notified when this record changes, and whether the caller is among them. A record with no watchers notifies nobody except through an explicit mention.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string |
watch_record Watch record
Subscribe (or unsubscribe) the CALLING identity to a record's changes. Note what this is not: it cannot subscribe someone else — a token watches on behalf of whoever it belongs to. Mentioning a person in add_comment is how a record is brought to someone else's attention.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string | |
watch | boolean | true (default) to watch, false to stop watching. |
attach_file Attach file
Attach a file to a record — either from a public `url` (fetched by the StoryOS server, which refuses private/internal addresses and caps the size) or from inline `content_base64` bytes. Images get a thumbnail automatically. record is a uuid or public number. Returns the created attachment.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | Record uuid or public number. |
workspace * | string | |
content_base64 | string | Base64-encoded file bytes (use instead of url). |
field | string | An attachment FIELD to put the file in (name or id), instead of the record-level bag. For a record with a "Cover"/"Video" style column: a gallery card renders the FIRST file of its cover field, so upl… |
filename | string | File name — required with content_base64; inferred from the URL otherwise. |
mime | string | MIME type, e.g. "image/png". Inferred from the extension / URL response when omitted. |
url | string | A publicly reachable URL to fetch and attach. |
list_attachments List attachments
List the files attached to a record (id, filename, mime, size). record is a uuid or public number.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | |
workspace * | string |
delete_attachment Delete attachment
Remove a file from a record by attachment id (from list_attachments). record is a uuid or public number.
| Parameter | Type | Description |
|---|---|---|
attachment_id * | string | |
database * | string | |
record * | string | |
workspace * | string |
run_button Run button
Press a button field on a record, running its configured actions (set values / create linked / comment / notify / update linked).
| Parameter | Type | Description |
|---|---|---|
button * | string | The button field (api_name, name, or id). |
database * | string | |
record * | string | |
workspace * | string |
propose_schema Propose a schema
Turn a plain-language goal ("track clients, their projects and invoices") into a PLAN — databases, fields, relations and states, each marked create-new or reuse-existing. Creates NOTHING; the plan is the input build_schema takes. This is the fast path for building a workspace (one call replaces one add_field per field).
| Parameter | Type | Description |
|---|---|---|
goal * | string | What the workspace is for, in plain language. |
workspace * | string | |
mode | string | Omit for the free deterministic planner. "storyos_ai" is metered against this workspace's AI credits. |
build_schema Build a proposed schema
Build an approved plan from propose_schema in ONE call — every database, field, relation and state together, reusing existing databases where the plan says reuse. Returns a summary of what was created vs reused, with ids. Replaces a sequence of create_database/add_field calls.
| Parameter | Type | Description |
|---|---|---|
plan * | The plan object returned by propose_schema, passed back verbatim. | |
workspace * | string |
list_packs List packs
The built-in Business Pack gallery — ready-made workspaces (databases, fields, relations, views, sample data). [Full notes: get_started section "TOOL NOTES list_packs"]
install_pack Install a pack
Install a Business Pack by slug (from list_packs): creates its databases, fields, relations and views in one call. Idempotent. `preview: true` reports, changing nothing, per database create / reuse / collision and what it would add. Automations that send anything outside the workspace or run an agent, and state-bound agent triggers, install SWITCHED OFF: name them in enable_automations / enable_agent_triggers to switch one on. A failed install rolls back everything that request installed. Covers reuse_databases, required_packs, update_agents, existing_elsewhere, scheduled pack agents. [Full no…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Pack slug from list_packs. |
workspace * | string | |
enable_agent_triggers | array | Labels ("Agent ← Database.Field = State", exactly as preview lists them under `triggers`) of state-bound agent triggers, which a pack installs SWITCHED OFF, that you want switched ON (the agent then… |
enable_automations | array | Labels ("Database.Rule name", as preview lists them) of automations that send something outside the workspace (email, Slack, webhook, HTTP, social post) or run an agent, which a pack installs SWITCHED… |
preview | boolean | Show what would be created and create nothing; on a workspace that already has data the report says per database whether it is reused or collides. |
required_packs | object | For a pack that builds on another pack (preview `required_packs`): {"<pack slug>": "also_install" | "create_here"}. also_install installs that built-in pack first and links to its databases; create_he… |
reuse_databases | object | Reuse an EXISTING database instead of creating the pack's own, with the id naming WHICH one when several share that name: {"Issues": "<database id>"}. The id must be one of the `existing_elsewhere.can… |
space | string | Install INTO this existing space (name, slug or id from list_spaces), not into a space of the pack's own: every database, view and automation lands in it and no space is created. Only for a pack whose… |
update_agents | array | Names of installed agents a person EDITED whose content should be replaced with this pack version (preview marks them agent_update.status = edited_needs_choice). Agents not named stay as they are. |
create_records Create records (batch)
Create up to 100 records in ONE atomic call — all succeed or none do. Values are keyed by api_name exactly as create_record takes them. Replaces calling create_record in a loop. If a gate on this agent holds creates, the whole batch is held as one approval and the response is { pending_approval, approval_id } with nothing created.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
records * | array | Up to 100 { values } objects. |
workspace * | string |
update_records Update records (batch)
Apply ONE set of values to up to 200 records at once — the "set status to Done for everything in this view" shape. Partial failures are reported per record rather than failing the whole call; records whose update a gate on this agent held for approval are listed in `held` ({record_id, approval_id}) and were NOT changed. [Full notes: get_started section "TOOL NOTES update_records"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record_ids * | array | |
values * | object | The patch applied to every listed record. |
workspace * | string |
undo_batch_update Undo a batch update (#653)
Revert a prior update_records call using the `restorable` list from ITS response — pass that array back verbatim. [Full notes: get_started section "TOOL NOTES undo_batch_update"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
restorable * | array | The `restorable` array from a prior update_records response. |
workspace * | string |
enqueue_bulk_record_job Enqueue a durable bulk record job (#694)
For a selection bigger than update_records/delete_records can take in one call (over 5000 ids): runs as a durable, chunked, resumable background job instead of one request. Returns immediately with a job id — poll get_bulk_record_job with it to see progress. [Full notes: get_started section "TOOL NOTES enqueue_bulk_record_job"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
op * | string | |
record_ids * | array | |
workspace * | string | |
values | object | Required when op is "update"; omit for "delete". |
get_bulk_record_job Poll a bulk record job (#694)
Status and progress for a job from enqueue_bulk_record_job — total/processed/succeeded, any per-record failures, and (for an update job) the restorable list for undo_batch_update once it settles.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
job_id * | string | |
workspace * | string |
create_database Create database
Create a new database (table) in a space. Returns it with its auto-created system fields (id, name). Shaped further with add_field and create_view.
| Parameter | Type | Description |
|---|---|---|
name * | string | Database name, e.g. "Clients". |
space * | string | Space name or id the database belongs to. Never a personal space: those hold documents and views only (422). |
workspace * | string | |
color | string | Palette colour: gray, brown, gold, orange, red, pink, purple, blue, teal, green, lime, cyan, indigo, magenta, rose. Omit on create and one is auto-assigned AT RANDOM, so databases created in a row can… |
description | string | One line (max 200 chars) saying what this is FOR — read by list_* and describe_database, so it becomes context for whoever works here next. Set it when you create something: you already know the pur… |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
preview_formula Preview formula
Dry-run a formula without saving it (add_field and update_field are what save one): checks `expression` against the database's fields and evaluates it on up to 5 recent records. Saves NOTHING. Returns valid, return_type, samples and positioned errors with a suggestion. [Full notes: get_started section "TOOL NOTES preview_formula"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
expression * | string | The formula, e.g. {Qty} * {Unit Price} or if({Status} = "Done", 1, 0). |
workspace * | string | |
field | string | An existing formula field (name, api_name or id) whose expression you are replacing. |
samples | integer | How many records to evaluate (default and maximum 5). |
add_field Add field
Add a field to a database. select/multi_select/workflow take options as labels; `workflow` is the type of the one lifecycle status field a database is tracked by (at most ONE; board grouping and My Work key off it), whereas `select` is an ordinary choice field. lookup/rollup/formula/ai need `config`; a formula can be checked with preview_formula, which saves nothing. Relations are not added here (create_relation adds them). Covers formula format and currency, rollup ops and filters, AI field prompt/output. [Full notes: get_started section "TOOL NOTES add_field"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
name * | string | Field name, e.g. "Status". |
type * | string | |
workspace * | string | |
config | object | Advanced per-type config (lookup/rollup/formula). |
options | array | select/multi_select/workflow choices, as labels or {label,color,icon,category}. On a workflow field each option gets a state category (inferred from its label and position unless you give one). Omit t… |
update_field Update field
Rename a field, add select options, or edit and remove existing ones. Returns the updated field. Editing is non-destructive: recolouring or renaming an option leaves every record that holds it untouched, because options have stable ids and records point at the id, not the text. Removing one is the exception — it refuses with a usage count unless you confirm, and can reassign holders to another option.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | Field to update (name, api_name, or id). |
workspace * | string | |
add_options | array | New choices to add to a select/multi_select/workflow field. A workflow option's state category is inferred from its label unless you give one. |
remove_options | array | Delete options. Refuses with a usage count unless confirmed; the count is what confirming accepts. |
rename_to | string | |
unique | boolean | #229 — mark a text/number field Unique (rejects a duplicate value on create/edit) or turn it off. Turning it on scans existing records first and refuses (naming the conflicting ones) instead of sile… |
unique_normalize | boolean | With `unique: true` — fold case and trim whitespace before comparing (default true). |
update_options | array | Recolour, rename or re-categorise EXISTING options. Records keep their values — ids are stable. |
get_field_usage Get field usage
What depends on this field, before you delete it: records carrying data in it, plus the views (filter/sort/group), automations (trigger/condition) and formulas that reference it. [Full notes: get_started section "TOOL NOTES get_field_usage"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | |
workspace * | string |
delete_field Delete field
Soft-delete a field (records keep their other values). Returns records_with_value (records holding a non-empty value: blank, whitespace-only and never-set records are not counted). [Full notes: get_started section "TOOL NOTES delete_field"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | |
workspace * | string |
create_view Create view
Create a saved view. board needs group_by (a select, a single user, or a one-to-many relation field); calendar needs date_field; timeline needs start_date_field/end_date_field; board/gallery/list show card_fields (chips on calendar); form takes form_* to build the actual public-facing form (title/fields/access) — a bare "form" type with no form_* params creates an unconfigured, members-only form.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
name * | string | |
type * | string | |
workspace * | string | |
card_fields | array | Fields shown on cards / chips. |
date_field | string | calendar: the date field. |
end_date_field | string | timeline: end date field. |
filters | Filter AST by field api_name — same shape as query_records (See also: get_started section "FILTERS"). | |
folder | string | #347 — put the view in this sidebar FOLDER (name or id) instead of nesting it under its database. Placement only: the view still belongs to its database. Omit to nest it under the database, which is… |
form_access | string | form: who can open/submit it — members (signed-in only, default), link (anyone with the generated link), or public. link/public auto-generate a shareable token, returned in the result as config.form… |
form_description | string | form: helper text shown under the title. |
form_fields | array | form: which fields to show, in order — a field ref, or {field, required, label, help, visible_when, required_when, hidden, value} for per-field overrides. `hidden`+`value` stamps a fixed value onto… |
form_redirect_url | string | form: redirect here (an http:// or https:// address only) instead of showing success_message. |
form_submit_text | string | form: submit button label (default "Submit"). |
form_success_message | string | form: message shown after a successful submit. |
form_title | string | form: heading shown to the visitor (defaults to the database name). |
group_by | string | board: field to group columns by — a select, a single user, or the single side of a one-to-many relation (one column per related record). |
hidden_columns | array | board (select/workflow group-by only): option LABELS (or ids) of columns NOT to draw, empty or not — e.g. ["Triage","Backlog","Done"]. Different from hiding empty columns. Pass [] to show every colu… |
sorts | array | Sort keys by field api_name. |
start_date_field | string | timeline: start date field. |
create_personal_view Create personal view
#520 — a view owned by ME, invisible to everyone else including admins: a private lens over a shared database's data, not a private copy (deleting a record through it deletes it for everyone). Needs only read access to the database, unlike create_view. No folder placement — a personal view is never in the shared sidebar folder tree.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
name * | string | |
type * | string | |
workspace * | string | |
card_fields | array | Fields shown on cards / chips. |
date_field | string | calendar: the date field. |
end_date_field | string | timeline: end date field. |
filters | Filter AST by field api_name — same shape as query_records (See also: get_started section "FILTERS"). | |
group_by | string | board: field to group columns by — a select, a single user, or the single side of a one-to-many relation (one column per related record). |
hidden_columns | array | board (select/workflow group-by only): option LABELS (or ids) of columns NOT to draw, empty or not — e.g. ["Triage","Backlog","Done"]. Different from hiding empty columns. Pass [] to show every colu… |
sorts | array | Sort keys by field api_name. |
start_date_field | string | timeline: start date field. |
update_view Update view
Rename a view or change its grouping / card fields / date fields / form config. [Full notes: get_started section "TOOL NOTES update_view"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | View name or id. |
workspace * | string | |
card_fields | array | |
date_field | string | |
end_date_field | string | |
filters | ||
folder | string | #347 — move the view into this sidebar FOLDER (name or id). Pass null to move it back under its database. Placement only; the view still belongs to its database. |
form_access | string | |
form_description | string | |
form_fields | array | |
form_redirect_url | string | |
form_submit_text | string | |
form_success_message | string | |
form_title | string | |
group_by | string | |
hidden_columns | array | board (select/workflow group-by only): option LABELS (or ids) of columns NOT to draw, empty or not — e.g. ["Triage","Backlog","Done"]. Different from hiding empty columns. Pass [] to show every colu… |
rename_to | string | |
sorts | array | |
start_date_field | string | |
unfile | boolean | #347 — move the view back out of its folder, to nest under its database again. Takes the place of folder:null, which MCP cannot express. |
delete_view Delete view
#37 — soft delete: recoverable via restore_view (see list_views_trash). 409 if it is the last shared view on the database.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | |
workspace * | string |
list_views_trash List deleted views
#37 — deleted views on this database. A deleted view no longer resolves by name via list_views/get_database, so the ids restore_view takes are found here.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string |
restore_view Restore view
#37 — bring a deleted view back (see list_views_trash for the id). Only for a view deleted on its own; a view that went with its whole database or space comes back with restore_database/restore_space.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | View id (from list_views_trash) — a deleted view has no live name to resolve by. |
workspace * | string |
get_links Get links
Resolve web-app URLs — for records, a database, and/or its saved views — without a round-trip per record. get_record / query_records / create_record / update_record already include a `url` on each record; this tool returns a database link, a view link, or a batch of record links in one call.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
database | string | Database name, api slug, or id. Required to resolve `records` or `views`; on its own, returns just the database link. |
records | array | Record uuids or public numbers to link. |
views | array | View names or ids to link. |
list_documents List documents
The standalone documents in a space — the pages that live in the sidebar next to databases, belonging to no record. Titles and ids only; the text of one is returned by get_document.
| Parameter | Type | Description |
|---|---|---|
space * | string | Space name, slug, or id (from list_spaces). |
workspace * | string |
get_document Get document
Read a standalone document as Markdown. `version` comes back with it; update_document accepts it to report a conflicting edit instead of silently overwriting someone.
| Parameter | Type | Description |
|---|---|---|
document * | string | Document title or id (from list_documents). |
space * | string | Space the document lives in. |
workspace * | string |
create_document Create document
Write a standalone page in a space — a summary, a plan, a write-up, meeting notes. A document is a page of prose; it is not a database and not the body of an unrelated record. `content` is Markdown (headings, lists, links, code). Optionally file it in a folder.
| Parameter | Type | Description |
|---|---|---|
space * | string | Space name, slug, or id (from list_spaces). |
title * | string | The page title, as it appears in the sidebar. Max 200 chars. |
workspace * | string | |
content | string | Markdown body. Omit for an empty page you will fill in later. |
folder | string | Folder name or id to file it under (from list_folders). |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
update_document Update document
Change a document's title, icon, folder, or body. `content` REPLACES the whole body, so it carries the full new text (as get_document returns it), not just the paragraph being added. Pass the `version` you read to be told about a conflicting edit (409) instead of overwriting it; omit it and the last write wins.
| Parameter | Type | Description |
|---|---|---|
document * | string | Document title or id (from list_documents). |
space * | string | Space the document lives in. |
workspace * | string | |
content | string | Markdown — replaces the whole body. |
folder | string | null | Folder name or id, or null to move it to the space root. |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
title | string | |
version | integer | The version from get_document. Omit to overwrite unconditionally. |
delete_document Delete document
Delete a standalone document. Unlike a record this does not appear in any trash you can browse, so it is permanent.
| Parameter | Type | Description |
|---|---|---|
document * | string | Document title or id (from list_documents). |
space * | string | |
workspace * | string | |
confirm | boolean | Must be true — a title can resolve by exact match to the wrong page. |
move_document_to_space Move document to a shared space
Move a document out of Personal into a shared space — a one-way publish (personal-space.md): the item becomes visible and exportable to everyone with access to the target space, and any @mentions in its body that were suppressed while it was personal now notify for the first time. [Full notes: get_started section "TOOL NOTES move_document_to_space"]
| Parameter | Type | Description |
|---|---|---|
document * | string | Document title or id (from list_documents). |
space * | string | The space the document is in now. |
target_space * | string | The shared space to move it into (from list_spaces). Must not be a personal space. |
workspace * | string |
copy_document_to_personal_space Copy document to my personal space
Fork a document you can see into your own Personal space — an independent copy, never synced back (personal-space.md's answer to "publishing is one-way"). Editing either copy afterward never touches the other.
| Parameter | Type | Description |
|---|---|---|
document * | string | Document title or id (from list_documents). |
space * | string | The space the document is in now. |
workspace * | string |
list_folders List folders
The folders in a space — the sidebar groups that documents, databases and views can be filed under. These are the existing groups create_document's `folder` accepts, so a page can be filed in one instead of a near-duplicate being invented.
| Parameter | Type | Description |
|---|---|---|
space * | string | |
workspace * | string |
create_folder Create folder
Add a sidebar folder to a space. A folder is how a person finds several related things later. list_folders shows the existing ones; a second "Reports" next to an existing one is worse than no folder.
| Parameter | Type | Description |
|---|---|---|
name * | string | Folder name, max 100 chars. |
space * | string | |
workspace * | string | |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
update_folder Update folder
Rename a folder, change its icon, or move it up/down the sidebar with `position`.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Folder name or id (from list_folders). |
space * | string | |
workspace * | string | |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
name | string | |
position | integer | Sidebar order — lower sorts first. |
delete_folder Delete folder
Remove a sidebar folder. Its contents are NOT deleted — documents, databases and views inside it fall back to the space root. That makes this the safe way to undo a grouping you got wrong.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Folder name or id (from list_folders). |
space * | string | |
workspace * | string |
list_space_groups List space groups
The workspace's sidebar groups — a presentational tier above spaces, distinct from list_folders (which groups things INSIDE one space). These are the existing groups a space can be filed under, instead of a near-duplicate being invented.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
create_space_group Create space group
Add a presentational sidebar group. A space joins it through update_space's `group` param.
| Parameter | Type | Description |
|---|---|---|
name * | string | Group name, max 100 chars. |
workspace * | string | |
color | string | CSS colour for the group's letter-mark avatar. |
update_space_group Update space group
Rename a group, change its colour, or move it up/down the sidebar with `position`.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name or id (from list_space_groups). |
workspace * | string | |
color | string | null | Pass null to clear. |
name | string | |
position | integer | Sidebar order — lower sorts first. |
delete_space_group Delete space group
Remove a sidebar group. Its spaces are NOT deleted — they fall back to the ungrouped list. That makes this the safe way to undo a grouping you got wrong.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name or id (from list_space_groups). |
workspace * | string |
create_relation Create relation
Link two databases with a relation field on each side. one_to_many: each record in `database` links to ONE record in `related_database`, and each related record gets MANY back — e.g. database=Tasks, related_database=Projects means each task has one project and each project has many tasks. many_to_many: both sides link to many. [Full notes: get_started section "TOOL NOTES create_relation"]
| Parameter | Type | Description |
|---|---|---|
database * | string | The "many" side for one_to_many (e.g. tasks). Same as related_database for a self-relation. |
related_database * | string | The "one" / parent side (e.g. projects). Same as database for a self-relation. |
workspace * | string | |
field_name | string | Relation field name on `database` — e.g. "Blocked by". Default: the related database name, or Parent/Related for a self-relation. |
reverse_field_name | string | Inverse field name on `related_database` — e.g. "Blocks". Default: this database name, or Sub-items/Related to for a self-relation. Must differ from field_name on a self-relation. |
type | string |
list_relations List relations
The whole relation graph of a workspace in one call — what is connected to what, one entry per relation with both sides resolved (database and field name on each). Useful for structural work: adding a field, moving a database, planning a migration, or answering "what would break if I deleted this". [Full notes: get_started section "TOOL NOTES list_relations"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
database | string | Only relations touching this database (name, qualified slug, or id). |
space | string | Only relations touching this space (name, slug, or id). |
get_relation Get relation
A relation's configuration: both sides, its cardinality, its auto-link rules if any, and the COMPARABLE FIELDS on each side. Those are the fields set_auto_link accepts; a pairing outside them is rejected by the server.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
relation * | string | The relation FIELD on this database (name or api_name), or a relation id. |
workspace * | string |
set_auto_link Set auto-link rules
Teach a relation to link itself: give it field pairs, and a record on one side links to a record on the other whenever ALL the pairs match — e.g. this database's `customer_email` equals the target's `email`. Setting a rule does NOT link anything that already exists (run_auto_link links existing records). [Full notes: get_started section "TOOL NOTES set_auto_link"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
relation * | string | The relation FIELD on this database (name or api_name), or a relation id. |
workspace * | string | |
case_sensitive | boolean | Default false. |
clear | boolean | Remove the auto-link rules entirely. |
conditions | array | 1–5 field pairs. field_a is on THIS database, field_b on the target. Names or ids. |
run_auto_link Run auto-link
Apply a relation's auto-link rules to the records that already exist, and return a summary of what got linked. It pays for itself after an import: create_records writes 100 rows in one call and this links them in one more, replacing a hundred link_records calls. Needs a rule to be set (set_auto_link).
| Parameter | Type | Description |
|---|---|---|
database * | string | |
relation * | string | The relation FIELD on this database (name or api_name), or a relation id. |
workspace * | string |
find_workflow_candidates Find workflow (status) candidates
Scan every database you can read for a single-select that looks like its lifecycle (a status column), and report which databases already have a workflow field. Read-only. [Full notes: get_started section "TOOL NOTES find_workflow_candidates"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
nominate_workflows Convert selects to workflow fields
Convert chosen single-selects to the workflow field type, one per database, through the same per-field conversion the field editor uses (option ids and every record value are preserved). [Full notes: get_started section "TOOL NOTES nominate_workflows"]
| Parameter | Type | Description |
|---|---|---|
nominations * | array | |
workspace * | string | |
dry_run | boolean | Default true. Pass false to actually convert. |
convert_user_field_to_members_relation Convert a user field to a Members relation
Convert a person field (assignee, owner, reviewer...) into a real relation to the Members database, so the person is a linkable record rather than a bare id. THIS IS A DRY RUN BY DEFAULT and changes nothing until dry_run: false is passed (the dry-run result previews what applying would do). [Full notes: get_started section "TOOL NOTES convert_user_field_to_members_relation"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | The user field: display name, api_name or id. |
workspace * | string | |
dry_run | boolean | Default true. Pass false to actually convert. |
convert_members_relation_to_user_field Convert a Members relation back to a user field
The reverse of convert_user_field_to_members_relation: turn a relation to the Members database back into a person field. DRY RUN BY DEFAULT. [Full notes: get_started section "TOOL NOTES convert_members_relation_to_user_field"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | The relation field pointing at Members: display name, api_name or id. |
workspace * | string | |
confirm_dependents | boolean | Pass true to accept removing lookup/rollup fields built on the relation. |
dry_run | boolean | Default true. Pass false to actually convert. |
find_select_drift Find select↔relation drift
Find records that LOOK linked and are not: children whose select-field label matches a parent record's title, but which carry no actual link. This is the residue of a workspace that used a select column before it had a relation — the labels still read correctly to a human while every rollup, filter and linked view silently misses them. Reports only; fix_select_drift does the linking.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | The PARENT record (uuid or public number) to check for drifted children. |
relation * | string | The relation FIELD on this database (name or api_name), or a relation id. |
workspace * | string |
fix_select_drift Fix select↔relation drift
Link every currently-drifted child to the parent, in one call. find_select_drift lists them. This writes links to records the caller has not named individually, and the match is made on a label.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
record * | string | The PARENT record (uuid or public number). |
relation * | string | |
workspace * | string |
delete_relation Delete relation
Delete a relation by its id (from a describe_database relation field or a prior create_relation), removing both fields and all links.
| Parameter | Type | Description |
|---|---|---|
relation_id * | string | |
workspace * | string |
list_installed_packs List installed packs
What is already installed in this workspace, with the install id uninstall_pack needs. Installing a pack a workspace already has (install_pack) creates a second copy of its databases, which reads to the user as the agent duplicating their schema; this list shows what is already installed.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
uninstall_pack Uninstall pack
Remove a tracked pack install. The install id comes from list_installed_packs (it is the INSTALL, not the pack slug). Uninstalling reaches the databases the pack created, and any records a person has since put in them are the part they will miss.
| Parameter | Type | Description |
|---|---|---|
install_id * | string | Install id from list_installed_packs. |
workspace * | string | |
confirm | boolean | Must be true — this removes schema the workspace may now be using. |
export_pack Export pack
Turn part of this workspace into a pack manifest — the installable form of a schema you just built. Creates nothing; it hands back the manifest. An agent that a rule runs (`run_agent`) is exported with the pack and the rule names it by `$agent:<name>` ref, never by id, so the schedule survives a re-install. [Full notes: get_started section "TOOL NOTES export_pack"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
databases | array | Databases to include (name, qualified slug, or id). Omit for the workspace default slice. |
name | string | Name for the exported pack. |
space | string | Limit the export to one space. |
browse_pack_marketplace Browse the pack marketplace
Community-published packs, as opposed to list_packs' built-in gallery. Pass `pack` for one pack's manifest, changelog and versions. Someone may already have modelled the thing being asked for.
| Parameter | Type | Description |
|---|---|---|
pack | string | Marketplace pack slug. Omit to list them all. |
list_pack_submissions List pack submissions
This workspace's marketplace submissions and where each stands in review. Read-only: submitting a pack is a publishing act and is not available here — see the note in coverage.ts.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
list_templates List starter templates
Starter templates — smaller than a pack: a single database shape, or a space with a few. Each is a modelled answer for an ordinary shape (a CRM, a content calendar); apply_template creates one in a single call.
list_record_templates List record templates
A database's record templates (ticket #1218): name, preset field values keyed by api_name, and a Markdown body with its sections. Packs ship some (Dev Tracker: Bug, Feature, Improvement for Issues). NOT list_templates, which lists starter database shapes. create_record_from_template makes a record from one.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string |
create_record_template Create a record template
Make a record template in a database. [Full notes: get_started section "TOOL NOTES create_record_template"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
name * | string | The template's name, e.g. "Bug". |
workspace * | string | |
body | string | The description the record starts with, as Markdown (use ## headings for sections). Ignored with from_record. |
description | string | One line saying when to pick this template. |
from_record | string | Record uuid or public number to save as a template. |
values | object | Preset field values keyed by api_name. Ignored with from_record. |
update_record_template Edit a record template
Change a record template's name, description, preset values or body (send only what changes; `values` replaces the whole preset set; null clears description or body). Works on a pack-installed template too; pack uninstall then keeps it as changed.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
template * | string | Template id from list_record_templates. |
workspace * | string | |
body | string | null | |
description | string | null | |
name | string | |
values | object |
delete_record_template Delete a record template
Delete a record template. Records already made from it are untouched.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
template * | string | |
workspace * | string |
create_record_from_template Create a record from a template
Create a record pre-filled from a record template: its preset values and its body (sections included). `values` overrides a preset, usually the title. A preset that no longer fits the schema (a deleted field or option) is dropped and listed in `skipped`, the record is still made. Returns the new record.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
template * | string | Template id from list_record_templates. |
workspace * | string | |
values | object | Field values keyed by api_name that win over the template's, e.g. { name: "Login fails on Safari" }. |
apply_template Apply template
Install a starter template. A pack-shaped template creates its own SPACE; a database-shaped one needs `space` and can be renamed on the way in. Templates seed sample records so the result is not an empty grid — remove_sample_data clears exactly those later, so applying one is not a decision anybody is stuck with.
| Parameter | Type | Description |
|---|---|---|
template * | string | Template slug from list_templates. |
workspace * | string | |
name | string | Rename the created database. |
space | string | Target space, required for a database-shaped template. Never a personal space (documents and views only, 422). |
remove_sample_data Remove sample data
Delete exactly the sample records a template created, and nothing a person has added since. Sample rows left in a live database make a workspace look unfinished; this removes them once the real data is in.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
list_spaces List spaces
List the spaces in a workspace (id, name, slug, description). Databases live in spaces; create_database takes a space name/slug.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
create_space Create space
Create a space (a named group of databases). Returns it with its slug, which create_database accepts to build inside it.
| Parameter | Type | Description |
|---|---|---|
name * | string | Space name, e.g. "Client Work". |
workspace * | string | |
color | string | Palette colour: gray, brown, gold, orange, red, pink, purple, blue, teal, green, lime, cyan, indigo, magenta, rose. Omit on create and one is auto-assigned AT RANDOM, so databases created in a row can… |
description | string | One line (max 200 chars) saying what this is FOR — read by list_* and describe_database, so it becomes context for whoever works here next. Set it when you create something: you already know the pur… |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
get_or_create_personal_space Get or create my personal space
#520 — MY OWN personal space: private, including from admins, holds only documents and views (never databases). Idempotent — lazily provisioned on first call, returns the same space on every later call for this identity.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
update_space Update space
Rename a space, set its icon/colour/description, or move it into a sidebar group (#742 finding 04). Only the fields you pass change; pass null to clear colour, description, or group.
| Parameter | Type | Description |
|---|---|---|
space * | string | Space name, slug or id. |
workspace * | string | |
color | Palette colour: gray, brown, gold, orange, red, pink, purple, blue, teal, green, lime, cyan, indigo, magenta, rose. Omit on create and one is auto-assigned AT RANDOM, so databases created in a row can… | |
description | One line (max 200 chars) saying what this is FOR — read by list_* and describe_database, so it becomes context for whoever works here next. Set it when you create something: you already know the pur… | |
group | string | null | Group name or id (from list_space_groups) to file this space under. Pass null to ungroup it. |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
rename_to | string | |
restricted | boolean | Admin only. true = the space is visible only to people holding a grant on it (admins always see it); false = open again. A restricted database inside an open space is not opened by a space grant — i… |
delete_space Delete space
#453/#37 — soft delete: the space, every database and record inside it. Recoverable via restore_space (see list_spaces_trash) as long as it stays undone — this tool does not warn "irreversible" the way it used to, because it no longer is one. Guardrail: `confirm` must equal the space name exactly, the same rule delete_database enforces for a smaller action. An empty space needs no confirm.
| Parameter | Type | Description |
|---|---|---|
space * | string | Space name, slug or id. |
workspace * | string | |
confirm | string | Must equal the space name exactly. Required when the space still holds databases. |
list_spaces_trash List deleted spaces
#37 — deleted spaces in this workspace. A deleted space no longer resolves by name anywhere else, so the ids restore_space takes are found here.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
restore_space Restore space
#37 — bring a deleted space back, along with every database (and its fields/records/views) that was deleted WITH it (see list_spaces_trash for the id). A database independently deleted BEFORE the space was deleted stays in trash — restore that separately via restore_database.
| Parameter | Type | Description |
|---|---|---|
space * | string | Space id (from list_spaces_trash) — a deleted space has no live name/slug to resolve by. |
workspace * | string |
update_workspace Update workspace
Rename the workspace, set its description, or set the logo/accent colour shown on the public portal page (#539) — the top-level "what this company is doing here" line that list_workspaces returns, or an agency's own brand on the pages it shares with clients. Only the fields you pass change.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
description | One line (max 200 chars) saying what this is FOR — read by list_* and describe_database, so it becomes context for whoever works here next. Set it when you create something: you already know the pur… | |
portal_accent_color | string | null | Accent colour for the public portal page, as a 6-digit hex like "#3366ff". Pass null to clear. |
portal_logo_url | string | null | Logo shown on the public portal page. Must be an https:// URL. Pass null to clear. |
rename_to | string |
delete_database Delete database
#453/#37 — soft delete: the database and all its records. Recoverable via restore_database (see list_databases_trash), unless sever_relations is set — that part IS irreversible (it hard-deletes the relation and its paired field on the other database, along with every link). Guardrail: `confirm` must equal the database name exactly.
| Parameter | Type | Description |
|---|---|---|
confirm * | string | Must equal the database name exactly. |
database * | string | |
workspace * | string | |
sever_relations | boolean |
list_databases_trash List deleted databases
#37 — deleted databases in this workspace. A deleted database no longer resolves by name anywhere else, so the ids restore_database takes are found here.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
restore_database Restore database
#37 — bring a deleted database back, along with whatever fields/records/views were deleted with it (see list_databases_trash for the id). A record independently trashed BEFORE the database was deleted stays in trash — restore that separately via restore_records.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database id (from list_databases_trash) — a deleted database has no live name/slug to resolve by. |
workspace * | string |
update_database Update database
Rename a database, set its icon, colour or description, or move it to another space. The api_slug is stable (rename does not change the ref). Only the fields you pass change; pass null to clear colour or description.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string | |
color | Palette colour: gray, brown, gold, orange, red, pink, purple, blue, teal, green, lime, cyan, indigo, magenta, rose. Omit on create and one is auto-assigned AT RANDOM, so databases created in a row can… | |
description | One line (max 200 chars) saying what this is FOR — read by list_* and describe_database, so it becomes context for whoever works here next. Set it when you create something: you already know the pur… | |
icon | string | A curated icon ref, e.g. "set:rocket" or a brand/logo ref like "brand:github" (#298). See also: get_started section "ICONS" for the full catalog. A raw emoji (e.g. "📁") still works for backward com… |
move_to_space | string | Space name or slug to move the database into. Never a personal space: those hold documents and views only (422). |
rename_to | string | |
restricted | boolean | Admin only. true = the database is visible only to people holding a grant on it (admins always see it); false = open again. A restricted database inside an open space is not opened by a space grant   |
duplicate_database Duplicate database
Copy a database's schema — fields (including select/multi-select/workflow options with their colours), views and self-relations — into a new, fully independent database in the same space. Formulas and filtered views keep working in the copy (api_names are preserved; only internal ids are fresh). [Full notes: get_started section "TOOL NOTES duplicate_database"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string | |
include_records | boolean | Copy up to 50 records along with the schema. Default false (schema only). |
name | string | Name for the copy. Defaults to "<source> copy", disambiguated if that name is taken. |
change_field_type Change field type
Convert a field to a different type (e.g. text → select). [Full notes: get_started section "TOOL NOTES change_field_type"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | |
new_type * | string | |
workspace * | string | |
dry_run | boolean |
reorder_fields Reorder fields
Set the order of fields in a database. Pass the field names (or api_names) in the desired order; any omitted stay after the ordered ones.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
order * | array | Field names in desired order. |
workspace * | string |
reorder_options Reorder a choice field's options
Set the order of a select / multi_select / workflow field's options. Pass option LABELS (or ids) in the desired order; any you leave out keep their relative order after the ones you name. [Full notes: get_started section "TOOL NOTES reorder_options"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | |
order * | array | Option labels (or ids) in the desired order. |
workspace * | string |
reorder_views Reorder views
Set the order of views in a database. Pass the view names in the desired order.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
order * | array | View names in desired order. |
workspace * | string |
list_skills List skills
List the skills visible to the caller in a workspace: the caller's own, every skill shared with the workspace, every public one, and any `members` skill that names the caller. `visibility` says which tier each is: personal ("Only me"), members (named people), shared (the workspace), public (anyone with the link). [Full notes: get_started section "TOOL NOTES list_skills"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name or id. |
get_skill Get skill
Read one skill in full, including its `instructions` — which list_skills omits to keep the catalog small. update_skill replaces a field WHOLE, so editing instructions means sending the full new text; the current text is returned here, as is the full text of a skill someone else wrote.
| Parameter | Type | Description |
|---|---|---|
skill * | string | Skill name or id (from list_skills). |
workspace * | string |
list_skill_templates List skill templates
The starter scaffolds a skill can be authored from — each a complete, worked example of the five fields (name, description, when_to_use, instructions, examples). [Full notes: get_started section "TOOL NOTES list_skill_templates"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
create_skill Create skill
Save a reusable skill: a named instruction bundle that you or another agent can run later with run_skill (list_skill_templates shows a worked example). The skill is recorded as authored by an agent, and unless `visibility: "personal"` is passed it is created SHARED with the whole workspace (every member's AI can find and run it), so teammates' AI will follow its text as instructions. `visibility: "members"` (with `members`) shares with only the named people; `public` can be requested, but that only raises an approval a person must give in the app Inbox and it is never public until they do. [Fu…
| Parameter | Type | Description |
|---|---|---|
description * | string | One or two sentences on what it does. Max 500 chars. |
instructions * | string | The actual procedure, as numbered steps, read later by someone with NO memory of this session: it names the databases and fields explicitly and says what NOT to do (invent a price, send anything). Max… |
name * | string | Short, specific name — how a person will pick it out of a list. Max 100 chars. |
when_to_use * | string | The trigger, in the words someone would use when they need it — this is what a future agent matches against, so "when a lead lands and needs a first reply drafted" beats "for leads". Max 1000 chars. |
workspace * | string | |
examples | array | Worked input→output pairs. One good example does more than a paragraph of clarification. Max 20. |
from_template | string | Template id from list_skill_templates, recorded as provenance. |
members | array | With visibility `members`: who can see it, as user ids from list_members or exact names. On update this REPLACES the whole set, so adding or removing someone means sending the full new list (get_skill… |
version | string | Semver, e.g. "1.0.0". Default 1.0.0. |
visibility | string | Who can see it: `shared` (the whole workspace; the default), `personal` (only the token owner), `members` (only the people in `members`, plus you), or `public` (anyone with a link). `public` is NOT ap… |
update_skill Update skill
Edit a skill you own (each field passed REPLACES that field whole, and get_skill returns the current text; editing someone else's skill is refused). Pass `visibility` to move it between `personal`, `members` (only the people in `members`; that list REPLACES the whole set), `shared` (the whole workspace) and `public` (only raises an approval a person must give in the app Inbox). [Full notes: get_started section "TOOL NOTES update_skill"]
| Parameter | Type | Description |
|---|---|---|
skill * | string | Skill name or id (from list_skills). |
workspace * | string | |
description | string | |
examples | array | |
instructions | string | Replaces the whole procedure (get_skill returns the current one). |
members | array | With visibility `members`: who can see it, as user ids from list_members or exact names. On update this REPLACES the whole set, so adding or removing someone means sending the full new list (get_skill… |
name | string | |
version | string | Semver, e.g. "1.1.0". Bump it when you change the procedure. |
visibility | string | Who can see it: `shared` (the whole workspace; the default), `personal` (only the token owner), `members` (only the people in `members`, plus you), or `public` (anyone with a link). `public` is NOT ap… |
when_to_use | string |
delete_skill Delete skill
Delete a skill you own. Unlike a record there is no trash and no 30-day window — a skill is gone. Editing its when_to_use stops it being suggested without destroying it. Deleting someone else's is refused even if you can see it.
| Parameter | Type | Description |
|---|---|---|
skill * | string | Skill name or id (from list_skills). |
workspace * | string | |
confirm | boolean | Must be true. The guard exists because this is unrecoverable and a name can resolve by partial match. |
export_skill Export skill
Render a skill as portable instructions that mean the same thing pasted into a different tool: `markdown` (plain prose), `claude_skill` (a SKILL.md with name/description frontmatter, the on-disk Agent Skills convention), or `chatgpt` (custom-instructions shaped). [Full notes: get_started section "TOOL NOTES export_skill"]
| Parameter | Type | Description |
|---|---|---|
skill * | string | Skill name or id (from list_skills). |
workspace * | string | |
format | string | Default "markdown". |
import_skill Import skill
Bring a SKILL.md (or a Markdown export from StoryOS) in as a skill. It ALWAYS returns a KEPT/DROPPED report first, and by default creates nothing: `kept` lists what landed in which StoryOS field, `dropped` lists every part of the file StoryOS has no field for (with the reason — e.g. [Full notes: get_started section "TOOL NOTES import_skill"]
| Parameter | Type | Description |
|---|---|---|
content * | string | The full text of the SKILL.md, including any frontmatter. |
workspace * | string | |
create | boolean | Default false = preview only. true = write the skill after reporting. |
overrides | object | Fields to supply or replace — covers what the report lists under `missing`. |
run_skill Run skill
Run a saved skill by name or id (from list_skills). This call invokes NO model: it resolves the skill's instructions and records the run, and YOU — the connected AI, on your own subscription, never metered — are the one who carries out `instructions` against `inputs`. An agent applies a skill when the skill is named in that agent's Skills field. [Full notes: get_started section "TOOL NOTES run_skill"]
| Parameter | Type | Description |
|---|---|---|
name * | string | Skill name or id (from list_skills). |
workspace * | string | Workspace name or id. |
inputs | object | Free-form inputs this run should apply the skill to — returned alongside the instructions for you to act on, not sent to the API. |
get_agents Get agents setup
Whether this workspace has the Agentic OS provisioned, and a summary of its three system databases: Agents (agentic_os/agents), Agent runs (agentic_os/runs, the agent executions; not the Automation runs page, which is automation rule runs) and Triggers (agentic_os/agent_triggers). [Full notes: get_started section "TOOL NOTES get_agents"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
get_agent_scope Where an agent works
Ticket #1195 — the databases an agent can work in, resolved NOW: the databases named in its `target_databases` plus every USER database in the spaces named in its `target_spaces` (a system database such as Members is never covered by a space, only by being named; a database added to a target space later is included on the next call, nothing is expanded at hire), narrowed to what the agent's manager can open. [Full notes: get_started section "TOOL NOTES get_agent_scope"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid or public number (from get_agents/query_records). |
workspace * | string |
get_agent_wake_sources What can start an agent
Everything that can start an agent, from one call (ticket #1289). [Full notes: get_started section "TOOL NOTES get_agent_wake_sources"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid or public number (from get_agents/query_records). |
workspace * | string |
list_agent_activity What an agent has done
#541 — field changes + creation events attributed to ONE agent, in a date range (default: last 30 days). "Which agent, under whose authority, at what time" — each row carries agent_id, agent_name (the name at the time of the write), source and time, but NO run id: a run is shown by get_runs / get_run. Admin only. [Full notes: get_started section "TOOL NOTES list_agent_activity"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid or public number (from get_agents/query_records). |
workspace * | string | |
from | string | ISO datetime, inclusive. Default: 30 days ago. |
to | string | ISO datetime, inclusive. Default: now. |
setup_agents Set up the agent engine
Provision the Agentic OS space and its three system databases: Agents (agentic_os/agents), Agent runs (agentic_os/runs) and Triggers (agentic_os/agent_triggers). Idempotent — safe to call when it already exists, which is why get_agents and this can be used together without a check-then-act race. [Full notes: get_started section "TOOL NOTES setup_agents"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
run_agent Run agent
Run an agent by hand and get back its Run record, including the step log. Works with no model configured — the run class is stamped at dispatch and a runtime error lands as a Failed run rather than an error here, so the absence of an exception does not mean the run succeeded; the returned run says. [Full notes: get_started section "TOOL NOTES run_agent"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid or public number (from the Agents database). |
workspace * | string |
delegate_to_agent Delegate a record to an agent
Hand one record to an agent: it runs with that record as its context and posts its outcome back ON the record as a comment, with a link to the full Run. [Full notes: get_started section "TOOL NOTES delegate_to_agent"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid or public number. |
database * | string | Database holding the record to delegate. |
record * | string | Record uuid or public number. |
workspace * | string |
create_agent_trigger Create agent trigger
Fire an agent whenever a record reaches a given state (or, with relation_field instead of a state, whenever a record's relation field is linked to the agent). By default it starts the agent by itself, so it fits an agent meant to run on its own. A run is not held for approval as a whole: outward actions its writes set off (email, Slack, webhook, HTTP, social post) are staged for a person, with one exception: a send_email whose recipients (to and cc) are all active workspace members runs as configured unless the agent's approval_policy lists email. human_gate:true means it NEVER fires by itself…
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid or public number. |
database * | string | The database whose state changes should fire the agent. |
workspace * | string | |
enabled | boolean | Default true. |
human_gate | boolean | true = "ask me before each run": this trigger never starts a run by itself; a person starts each run (ADR-0010). The default is false: the agent wakes by itself. Not the same as holding the agent's wr… |
relation_field | string | Relation binding (instead of state_field + state): a relation field on the database that points at the Agents database, e.g. "Next". Linking it to the agent wakes the agent (#1130). |
state | string | State binding: the option that fires it — the human label, e.g. "New". |
state_field | string | State binding: the select/workflow field to watch (name, api_name, or id). |
get_staged_action Get a run’s staged action
What a parked run is waiting to do, plus its step log — or null if it is not waiting. READ-ONLY, and deliberately: approving or rejecting is human-only (ADR-0010), and no tool here can do it. This exists so an agent can tell a person exactly what they are being asked to decide, which is the opposite of deciding for them. Point them at the Inbox to approve.
| Parameter | Type | Description |
|---|---|---|
run * | string | Run id (from get_run / get_runs). |
workspace * | string |
get_run Get run
One run in full: what triggered it, each action with its attempts and artifacts, and its approval linkage. get_runs lists them; this is the one to read when something did not do what was expected, because the per-action attempt log is where the reason lives.
| Parameter | Type | Description |
|---|---|---|
run * | string | Run id (from get_runs). |
workspace * | string |
get_run_quota Get run quota
This month's automation-run usage against the plan allowance, with a projection of where the pace lands. A rule that fires on every record change can look harmless and still be the one that exhausts the month.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
rerun_run Run a run again
Run the SAME rule once more on the SAME trigger record, as a NEW run: the original run and everything it did are left as they were. [Full notes: get_started section "TOOL NOTES rerun_run"]
| Parameter | Type | Description |
|---|---|---|
run * | string | Run id (from get_runs). |
workspace * | string |
list_ai_connections List my connected AI clients
The AI clients the CALLING person has connected, as one list: hosted-MCP OAuth clients (Claude, ChatGPT, ...) and personal access tokens, each with its `reaches`: all_workspaces, one_workspace, needs_reconnect or this_workspace. An OAuth connection has no access level of its own: it acts as the person, so their workspace role and grants decide what it can do. A personal access token (connected: token) DOES carry a scope, read, write or admin, set when it was created and enforced on every call: a read token is refused a write. Lists only the caller's own connections; read-only (disconnecting is…
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
rerun_action Re-run a failed action
Retry ONE failed action from a run, with its original frozen inputs — so it repeats what it was actually asked to do, not what the record says now. It is for after the cause is fixed (a bad credential, a missing field). The action's index comes from get_run. It re-runs a single action, never the whole run (rerun_run covers the whole run).
| Parameter | Type | Description |
|---|---|---|
action_index * | integer | The failed action's index, from get_run. |
run * | string | Run id (from get_runs). |
workspace * | string |
duplicate_view Duplicate view
Copy a view, with its filters, sorts, grouping and column layout. The fastest way to make a variant of something that already works — build the board once, duplicate it, then change the one thing that differs. Cheaper and safer than rebuilding a config by hand, which is where a filter gets subtly mistyped.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | View name or id (from describe_database). |
workspace * | string | |
name | string | Name for the copy. Defaults to the API's own "… copy". |
set_default_view Set the default view
Choose which view people land on when they open this database. This changes what EVERY member sees, unlike a personal filter.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | View name or id (from describe_database). |
workspace * | string |
publish_view Publish my personal view to the shared database
Turn a view you own privately (made with create_personal_view) into an ordinary shared view everyone with access to the database can see. One-way (personal-space.md) — the way back is copy_view_to_personal_space, an independent fork, never an un-publish. [Full notes: get_started section "TOOL NOTES publish_view"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | Your personal view's name or id (from list_personal_views). |
workspace * | string |
copy_view_to_personal_space Copy a shared view to my personal space
Fork a shared view into your own private copy — an independent clone of its config, never synced back (personal-space.md's answer to "publishing is one-way"). Reconfiguring either view afterward never touches the other.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | The shared view to copy (from describe_database). |
workspace * | string |
get_personal_filter Get my personal filter
The extra filter the CALLING identity has layered on a view, on top of what everyone else sees, or null if none. A personal filter is invisible to teammates by design, so "my board is empty and yours isn't" usually means this.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | |
workspace * | string |
set_personal_filter Set my personal filter
Narrow a view for YOURSELF only, leaving what teammates see untouched — "the team board, but just my rows". Pass clear:true to remove it. It writes for the identity this token belongs to and cannot filter anyone else's screen; update_view changes the view for everyone. Filter syntax is identical to query_records.
| Parameter | Type | Description |
|---|---|---|
database * | string | |
view * | string | |
workspace * | string | |
clear | boolean | Remove the personal filter entirely. |
filter | object | A query_records-style filter. Omit with clear:true. |
get_personal_collection_filter Get my personal filter on an embedded collection
The extra filter the CALLING identity has layered on a record page's embedded relation collection (the linked-records list under a relation field), on top of what everyone else sees, or null if none. [Full notes: get_started section "TOOL NOTES get_personal_collection_filter"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | |
workspace * | string |
set_personal_collection_filter Set my personal filter on an embedded collection
Narrow a record page's embedded relation collection for YOURSELF only, leaving what teammates see untouched — same idea as set_personal_filter but for a field's collection widget rather than a saved view. [Full notes: get_started section "TOOL NOTES set_personal_collection_filter"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
field * | string | |
workspace * | string | |
clear | boolean | Remove your entire personal override for this collection (filter, sort, color, columns). |
filter | object | A query_records-style filter, evaluated against the TARGET database. Omit with clear:true. |
list_space_views List space views
Views that belong to a SPACE rather than a database — dashboards that pull from several databases at once, and the ones that appear in the sidebar tree. describe_database only ever shows a database's own views, so these are invisible from there. [Full notes: get_started section "TOOL NOTES list_space_views"]
| Parameter | Type | Description |
|---|---|---|
space * | string | |
workspace * | string |
list_personal_views List my personal views
#551 — every PERSONAL view I own, across the whole workspace (not scoped to one database or space). A personal view is invisible to everyone else, including admins, and is only otherwise reachable per-database — this is the one call that lists all of mine at once, for a workspace-wide 'my personal views' surface.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
create_space_view Create a space view
Create a space-level DASHBOARD — the only view type that lives on a space rather than a database, because it is the only one that reads from several. It suits a "how is everything going" page; create_view covers anything scoped to one database.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
space * | string | |
workspace * | string |
get_view Get view
One view by id, whether it belongs to a database or a space. describe_database covers a database's own views; this tool resolves a view id from a shared link or list_space_views when it is not known whether it belongs to a database or a space.
| Parameter | Type | Description |
|---|---|---|
view * | string | View id. |
workspace * | string |
update_space_view Update or move a space view
Rename a space-level view, change its config, or MOVE a database dashboard into a space so it stops being scoped to one database. Pass `space` to move it. A database view's filters and layout are updated with update_view.
| Parameter | Type | Description |
|---|---|---|
view * | string | View id (from list_space_views or get_view). |
workspace * | string | |
name | string | |
space | string | Move the view into this space (name, slug, or id). |
delete_space_view Delete a space view
Delete a space-level view. Deletes the VIEW, never the records it showed — a dashboard is a lens, and removing it removes nothing underneath. A database's own views are deleted with delete_view.
| Parameter | Type | Description |
|---|---|---|
view * | string | View id. |
workspace * | string |
list_members List members
Who is in this workspace and what role they hold — the list of valid values for a `user` field, because an address that is not a member is rejected. Returns name, role and user id; the id is what a user field wants. Read-only: this cannot invite, remove, or change anyone's access. Those are human decisions and have no tool at any scope.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
list_grants List access grants
Who can reach which spaces and databases, beyond their workspace role. When a database is missing for one person and present for another, a grant, or its absence, is usually the answer. Read-only: granting and revoking are human decisions.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
user | string | Narrow to one user id (from list_members). |
list_audit_log Workspace-wide audit log
#454 — "who changed or deleted what, and when" across every user in the workspace, filterable by actor/entity/date range (default: last 30 days). Reads the SAME activity_events/record_field_changes tables list_comments/get_history read per-record, just workspace-wide. A removed member still appears by name (the no-FK design). [Full notes: get_started section "TOOL NOTES list_audit_log"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
actor | string | Narrow to one user id (from list_members). |
entity | string | Narrow to one record, space, database or view id. |
from | string | ISO datetime, inclusive. Default: 30 days ago. |
source | string | #934 — narrow to actions by these kinds of actor, comma-separated: human, agent, automation, mcp (e.g. "agent,mcp" for what agents did). Each event row also carries credential_id (which token did it… |
to | string | ISO datetime, inclusive. Default: now. |
type | string | #1059 — narrow to event types, comma-separated, e.g. "space.deleted,database.deleted,view.deleted,database.restricted". Omit for everything. |
list_invites List pending invites
Invitations sent but not yet accepted. A colleague who "is not in the workspace" may simply not have clicked the link yet, which is a different problem with a different fix. A revoked invite is not pending and is not listed. Read-only: inviting and revoking are human decisions.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
get_my_work What I am working on
The surfaces a person actually opens, for the identity this token belongs to, as `kind`: "assigned" (default; open records assigned to them, with who set them and when), "created", "assigned_by_me", "waiting" (approvals they can decide, each with `rule_label` (the automation rule asking: its name if you may read that database's automations, else "A rule in <database>") and unanswered mentions), "recent", "favorites". Finished records are never returned; lists are per database, at most 50 rows each, with an exact `total` and `truncated: true` when cut, so a count is never the size of one page.…
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
kind | string | Default "assigned". |
set_favorite Star or unstar
Star a record or database for the calling identity, or remove a star. Starring is how a person finds something again; an unstarred new database is one they have to go looking for. Stars are per-person: this cannot star anything for a teammate.
| Parameter | Type | Description |
|---|---|---|
target * | string | Database name/slug/id, or a record uuid. |
target_type * | string | |
workspace * | string | |
database | string | Required when target_type is "record" and `target` is a public number. |
starred | boolean | true (default) to star, false to unstar. |
list_notifications List my notifications
What is waiting for the identity this token belongs to — assignments, mentions, comments, state changes and approval requests, newest first. This is the "what should I look at" question, and it is the one an agent could not answer before: notify existed, reading did not. [Full notes: get_started section "TOOL NOTES list_notifications"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
archived | boolean | Show the archived pile instead of the inbox. |
cursor | string | next_cursor from a previous call. |
type | string | Narrow to one kind. |
unread_only | boolean | Only what has not been read yet. |
get_unread_count Count my unread notifications
How many unread notifications the calling identity has — one number, no pagination. Cheaper than list_notifications when the question is only "is there anything waiting", e.g. at the start of a session.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
mark_notifications Mark my notifications
Mark notifications read, or archive them, for the calling identity only. Pass `all: true` with action "read" to clear the whole inbox at once. It is the person's own inbox, and a notification archived by an agent is one they never saw; reading and reporting leave it as it was.
| Parameter | Type | Description |
|---|---|---|
action * | string | What to do with them. |
workspace * | string | |
all | boolean | With action "read" only: mark everything read. |
notifications | array | Notification ids from list_notifications. |
list_approvals List approvals
MN-255: list this workspace's require_approval gate items (pending/approved/rejected/expired) — the preview text, status and approver of each, and the automation rule asking: `rule_label` is its current name when you may read that database's automations (then `rule_id`/`rule_name` are set too), else a neutral "A rule in <database>" with `rule_id`/`rule_name` null; all three null when no rule wrote it (an agent proposal) or the rule was deleted. [Full notes: get_started section "TOOL NOTES list_approvals"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
status | string | Filter by status; omit for all. |
list_action_gates List action-class gate policies
#542: this workspace's declared gate policies over an action class (currently only "delete_records") — scope (workspace/space/database), enabled, and who approves. [Full notes: get_started section "TOOL NOTES list_action_gates"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
list_agent_write_gates List the gates on agents' record writes
#1104: the gates that hold an agent's record create and/or update for a person's approval, instead of applying it. Each has the agent_id (an Agents-database record), operations (create, update), database_id (null = every database), fields (null = any write; otherwise only a write that touches one of those api_names) and enabled. [Full notes: get_started section "TOOL NOTES list_agent_write_gates"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
agent_id | string | Limit to one agent (its record uuid). |
list_runners List my Runners
The StoryOS Runners YOU own (a Runner is a program on your own computer that wakes your agents inside your own Claude Code, on your own subscription), each with status, connection (online, offline, paused, outdated, tool_missing, revoked), working hours, reserve and hold. An agent set to "Your own AI" with no active, online Runner waits, which is the usual reason an agent is not running. Only your own, never a colleague's. Adding or changing a Runner is done by a person in StoryOS (Settings, Runners); there is deliberately no tool for it. [Full notes: get_started section "TOOL NOTES list_runne…
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
list_agent_wakes List the agent wake queue
The queue behind agents that run on your own AI through a Runner: which agent was woken about which record, why (reason), how many events merged into it (coalesced_count) and ONE derived run_state, computed by the server and not meant to be recomputed (needs_approval, running, done, failed, canceled, waiting_for_runner, runner_offline, waiting_for_limit, waiting_for_hours, waiting_for_reserve, waiting_for_budget, waiting_for_turn). Filter with agent and record. Only wakes whose record and agent you can read are listed. Waking, claiming and finishing a wake are not tools. [Full notes: get_start…
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
agent | string | The agent record's uuid (from the Agents database). |
cursor | string | next_cursor from a previous call. |
database | string | The database of `record`, only needed when `record` is a public number. |
limit | integer | |
record | string | A record uuid, or its public number when `database` is given. |
get_agent_wake_summary Agent wake counts
#1130: how much work is waiting for agents that run on your own AI. [Full notes: get_started section "TOOL NOTES get_agent_wake_summary"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
list_agent_catch_up Records waiting for an agent (catch-up)
ticket #1224: the records already sitting in an agent's trigger state(s) that no wake was ever made for, BY NAME (the list behind `catch_up` in get_agent_wake_summary). [Full notes: get_started section "TOOL NOTES list_agent_catch_up"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid (from the Agents database; get_agent_wake_summary shows it). |
workspace * | string | |
limit | integer | Page size, default 5. |
offset | integer | Skip this many, to page through when truncated is true. |
get_agent_budget An agent's monthly budget and usage
One agent's monthly token budget and run cap and what it has used this UTC month, counted from its Run records (state: unlimited, ok, warning, paused, not_measured). `tokens.used` is null, never 0, when the runs' tool reported no usage, and a partial total is a lower bound ("at least"). The numbers are measured, not estimates. A budget is raised with update_record on the agent's record (a person can; an agent cannot change its own). [Full notes: get_started section "TOOL NOTES get_agent_budget"]
| Parameter | Type | Description |
|---|---|---|
agent * | string | The agent record's uuid (from the Agents database; list_agent_wakes and get_agent_wake_summary show it). |
workspace * | string |
list_validation_rules List validation rules
#231: the validation rules on a database. A rule REFUSES a record write (yours included: there is no bypass for any writer) when its condition is not met, and returns the rule's own message (these are the rules behind a refused write). [Full notes: get_started section "TOOL NOTES list_validation_rules"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
workspace * | string |
get_validation_rule_violations List records that already break a validation rule
#231: the stored records that ALREADY break a validation rule (a rule only fires when a field it references changes, so existing violations persist and are otherwise invisible). It reports on data quality and finds records to fix; fixing one is an ordinary update. [Full notes: get_started section "TOOL NOTES get_validation_rule_violations"]
| Parameter | Type | Description |
|---|---|---|
database * | string | |
rule * | string | The rule id (from list_validation_rules). |
workspace * | string | |
after | integer | next_cursor from a previous page. |
get_runs Get runs
MN-264: this is how you answer "why didn't my automation fire / post go out?" — every automation rule run in the workspace, newest first, with status (ok = Succeeded, error = Failed, running, skipped, skipped_quota = Skipped (quota), awaiting_approval = at least one action is waiting for a person to approve it; awaiting_approval_count says how many), the triggering record, and a per-action summary (kind + status of each external action attempted). [Full notes: get_started section "TOOL NOTES get_runs"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name or id. |
limit | integer | Max rows (default 50). |
status | string | Filter by status; omit for all. |
list_connections List connections
The accounts already connected to this workspace — id, provider, a human name, status, scopes and recent health (last_ok_at, error_count_24h). NO credential or token is ever included; auth material never leaves the app. [Full notes: get_started section "TOOL NOTES list_connections"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name or id. |
list_connection_providers List connection providers
The catalog of provider TYPES this StoryOS instance can connect (Slack, GitHub, a raw API key, etc.) — id, label, auth_kind, its access `tier`, and whether it is actually connectable RIGHT NOW on this deployment (`availability`: connectable / operator_config — a self-managed operator has not set the env var yet / cloud_only — hosted-only, off here). [Full notes: get_started section "TOOL NOTES list_connection_providers"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name or id. |
list_sources List sources
The scheduled syncs feeding this database from an external provider — provider, schedule, status, field_mapping, connection_id and last_sync_at for each. It diagnoses data freshness ("is this database still syncing?"). [Full notes: get_started section "TOOL NOTES list_sources"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
list_source_providers List source providers
What this database can sync FROM: the provider catalog — each entry's `id` (the `provider_source` value create_source needs, e.g. "youtube.comments"), the `connection_provider` its connection must be, its `config_schema`, and `supports_discover`. [Full notes: get_started section "TOOL NOTES list_source_providers"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id — the sync TARGET. |
workspace * | string | Workspace name or id. |
list_youtube_channels List YouTube channels
The YouTube channels a connected Google account owns, as `{ id, title }`. Needed only to fill the `channel_id` config key of the youtube.* source providers — a source created against the wrong channel syncs nothing and looks healthy while doing it. Reads through to YouTube using the stored connection; creates and changes nothing. Requires a "google" connection — any other provider is rejected.
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | The google connection's id. See create_source for where a connection_id comes from. |
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
discover_source_fields Discover source fields
Ask the provider what it would actually return, and propose how to map it onto this database. CREATES NOTHING, syncs nothing, writes nothing. [Full notes: get_started section "TOOL NOTES discover_source_fields"]
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | The connection to read through. See create_source for where a connection_id comes from. |
database * | string | Database name, api slug, or id — the sync TARGET, whose fields the proposal maps onto. |
provider_source * | string | Provider id from list_source_providers, e.g. "youtube.comments". |
workspace * | string | Workspace name or id. |
config | object | Provider config (shape in list_source_providers' config_schema). Partial is fine — discovery tolerates a half-filled config. |
create_source Create source
Configure a scheduled sync from an external provider INTO a database, and start it running. CREDENTIALS NEVER PASS THROUGH THIS TOOL: the account is connected once in the app (Settings → Connections) and referenced by `connection_id` (from list_connections, or from list_sources). list_source_providers and discover_source_fields describe what a provider offers; field_mapping maps provider keys to this database's fields, and external_key_field (one of its targets) is what makes a re-sync update instead of duplicate. Covers field_mapping directions, conflict_policy, write_back and push approval…
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | Id of the stored connection to sync through. NOT a credential — see this tool's description for where it comes from. |
database * | string | Database name, api slug, or id — the sync TARGET. |
external_key_field * | string | Field (name or id) holding the provider's stable id. Must be one of field_mapping's target fields. |
field_mapping * | object | { "provider_external_key": "field name or id" } for a pull-only mapping (the common case), or { "provider_external_key": { field, direction } } — direction "in" (default), "out" (push-only, never ov… |
name * | string | A human label for this source, e.g. "Shopify orders". |
provider_source * | string | Provider id from list_source_providers, e.g. "youtube.comments". |
workspace * | string | Workspace name or id. |
config | object | Provider config; shape is in list_source_providers' config_schema. May also set conflict_policy: "external_wins" (default) | "storyos_wins" | "newest_wins". |
recurrence | object | Exact cadence, and it wins over `schedule`: {kind:"hourly",minute} | {kind:"daily",hour,minute} | {kind:"weekly",weekday,hour,minute}. |
schedule | string | Coarse cadence. Omit to get the default daily sync, or pass `recurrence` for an exact time. |
update_source Update source
Reconfigure an existing source — rename it, change its schedule, repoint its field mapping, or pause and resume it. A true patch: omitted arguments are left as they are. [Full notes: get_started section "TOOL NOTES update_source"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
source * | string | Source name or id (from list_sources). |
workspace * | string | Workspace name or id. |
config | object | Replacement provider config (replaces the whole object, so changing one key means sending the current config from list_sources with that key changed). May include conflict_policy: "external_wins" (def… |
connection_id | string | Point the source at a different stored connection. |
external_key_field | string | Field (name or id) holding the provider's stable id. |
field_mapping | object | { "provider_external_key": "field name or id" } or { "provider_external_key": { field, direction } } (direction "in"/"out"/"both") — the COMPLETE mapping, which replaces the existing one. |
name | string | New human label. |
recurrence | object | Exact cadence, wins over `schedule`: {kind:"hourly",minute} | {kind:"daily",hour,minute} | {kind:"weekly",weekday,hour,minute}. |
schedule | string | Coarse cadence. |
status | string | "paused" stops the schedule without discarding the source; "active" resumes it. |
delete_source Delete source
Stop syncing and discard the source configuration — its field mapping, schedule and sync cursor. RECORDS ARE NOT DELETED: every record the source ever created stays in the database, it simply stops being updated. The configuration itself is NOT recoverable, so `confirm` must equal the source's name exactly. [Full notes: get_started section "TOOL NOTES delete_source"]
| Parameter | Type | Description |
|---|---|---|
confirm * | string | The source's exact name, as a guard against deleting the wrong one. |
database * | string | Database name, api slug, or id. |
source * | string | Source name or id (from list_sources). |
workspace * | string | Workspace name or id. |
sync_source Sync source now
Run one sync cycle immediately, ignoring the schedule. Returns that run's outcome — records fetched, created, updated, and the error if it failed. It proves a newly created source works without waiting for its schedule, and refreshes data on demand. [Full notes: get_started section "TOOL NOTES sync_source"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
source * | string | Source name or id (from list_sources). |
workspace * | string | Workspace name or id. |
list_source_runs List source runs
The sync history for ONE source, newest first — status, when it ran, how many records it fetched/created/updated, and the error message when it failed. This is the answer to "the data looks stale" and "did my sync actually do anything": a source can sit at status active and be failing every cycle. Covers scheduled runs and sync_source runs alike.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
source * | string | Source name or id (from list_sources). |
workspace * | string | Workspace name or id. |
limit | integer | Max runs to return (default 50). |
list_webhooks List webhooks
The workspace's outbound webhook subscriptions — url, which events each is subscribed to, whether it is enabled, and the last delivery's status/code/error. Signing secrets are never returned here. [Full notes: get_started section "TOOL NOTES list_webhooks"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace name or id. |
get_credential Get credential (token) scope and window
What an API token (a "credential") could reach and when it existed: its power scope, whether it was bound to specific spaces/databases (`resource_scope`; null = unrestricted), its origin, and `revoked_at`. [Full notes: get_started section "TOOL NOTES get_credential"]
| Parameter | Type | Description |
|---|---|---|
credential * | string | The credential (api token) id. |
workspace * | string | Workspace name or id. |
list_credential_actions List what one credential did
Every action (activity event: type, record id, source, time) performed with one API token, newest first, 50 per page (pass `cursor` from `next_cursor`). Together with get_credential it answers "what could this token reach, and what did it do". Works for revoked tokens. Admin only. [Full notes: get_started section "TOOL NOTES list_credential_actions"]
| Parameter | Type | Description |
|---|---|---|
credential * | string | The credential (api token) id. |
workspace * | string | Workspace name or id. |
cursor | string | next_cursor from a previous call. |
get_activity_event Get one past action and its credential
One activity event (type, record id, source, time) and `credential_id`, the API token that performed it (null for a session, an OAuth grant, an automation, or before this was recorded). Feed the id to get_credential for what that token could reach. Admin only.
| Parameter | Type | Description |
|---|---|---|
event * | string | The activity event id. |
workspace * | string | Workspace name or id. |
list_webhook_deliveries List webhook deliveries
Recent delivery ATTEMPTS for one webhook, newest first — event type, status, HTTP status_code, the error text when it failed, how many attempts it has taken and when the next retry is due. [Full notes: get_started section "TOOL NOTES list_webhook_deliveries"]
| Parameter | Type | Description |
|---|---|---|
webhook * | string | Webhook id, or its exact url (from list_webhooks). |
workspace * | string | Workspace name or id. |
limit | integer | Max attempts to return (default 20, max 100). |
update_webhook Update webhook
Change a webhook's url, its event subscriptions, or enable/disable it. A true patch — omitted arguments are left alone. enabled:false is the safe way to stop deliveries: it keeps the subscription and its signing secret, so it can be turned back on. delete_webhook cannot be undone. [Full notes: get_started section "TOOL NOTES update_webhook"]
| Parameter | Type | Description |
|---|---|---|
webhook * | string | Webhook id, or its exact url (from list_webhooks). |
workspace * | string | Workspace name or id. |
enabled | boolean | false pauses deliveries without discarding the subscription. |
events | array | REPLACES the whole subscription list (1–20 events), it does not add to it. |
take_ownership | boolean | true makes YOU the webhook's owner. A webhook acts with its owner's access, so when the owner is demoted, removed or was never recorded, deliveries pause (list_webhooks shows paused_reason) until an a… |
url | string | New https endpoint on a public host. |
delete_webhook Delete webhook
Delete a webhook subscription permanently, along with its signing secret. `confirm` must equal the webhook's exact url. [Full notes: get_started section "TOOL NOTES delete_webhook"]
| Parameter | Type | Description |
|---|---|---|
confirm * | string | The webhook's exact url, as a guard against deleting the wrong subscription. |
webhook * | string | Webhook id, or its exact url (from list_webhooks). |
workspace * | string | Workspace name or id. |
list_automations List automations
#334: the automation rules on one database — each with its trigger (field/relation names resolved), condition, actions, enabled state, failure streak and last-run status (ok, error, skipped, running, or awaiting_approval when an action is waiting for a person to approve it, the same word get_runs uses). [Full notes: get_started section "TOOL NOTES list_automations"]
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
get_automation Get automation
#334: one automation rule's full, editable definition — trigger, condition and actions with human-readable database/field/select names alongside their stable ids, plus enabled state and last-run status. update_automation accepts the same shape.
| Parameter | Type | Description |
|---|---|---|
automation * | string | Automation rule id (from list_automations). |
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
create_automation Create automation
Create an automation rule: a trigger (record_created, record_updated, record_linked, schedule, webhook_received) + an optional condition + 1-10 actions (set_values, create_record, create_records, add_comment, notify_user, update_linked, send_slack_message, send_webhook, send_email, http_request, run_agent). A rule CAN REACH OUTSIDE STORYOS: it can send real email, call any public HTTP API and post to Slack, from scheduled and triggered rules alike. run_agent works an agent on a schedule or while nobody is signed in: for an agent on Your own AI, a wake queues and runs when an active, online Run…
| Parameter | Type | Description |
|---|---|---|
actions * | Array of 1–10 action objects. See also: get_started section "TOOL NOTES create_automation" for shapes. Each may carry its own optional `condition` (api_names). | |
database * | string | Database name, api slug, or id (the rule's home database). |
name * | string | Human name for the rule. |
trigger * | Trigger object. See also: get_started section "TOOL NOTES create_automation" for shapes. record_linked accepts direction:"link"|"unlink". | |
workspace * | string | Workspace name or id. |
approver | string | User id who approves this rule's require_approval actions (defaults to the rule owner). |
condition | Optional filter AST (same shape as query_records) — the rule only runs on records that match. Not allowed on webhook_received. | |
enabled | boolean | Start enabled (default true). |
limit | integer | Schedule-only top-N count, capped at 200. Rejected on any other trigger. |
sort | array | Schedule-only top-N ordering — sort keys by field api_name, same shape as query_records' sorts. Rejected on any other trigger. |
update_automation Update automation
#334: edit an existing rule — rename, enable/disable, or replace its trigger / condition / actions. Every field is optional; omit what you are not changing. To disable a rule pass { enabled: false }. [Full notes: get_started section "TOOL NOTES update_automation"]
| Parameter | Type | Description |
|---|---|---|
automation * | string | Automation rule id (from list_automations). |
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
actions | Replacement actions array (see create_automation). | |
approver | string | null | Approver user id, or null to revert to the rule owner. |
condition | Replacement filter AST, or null to clear it. | |
enabled | boolean | Enable (true) or disable (false) the rule. |
limit | Schedule-only top-N count (see create_automation), or null to clear it. | |
name | string | |
sort | Schedule-only top-N ordering (see create_automation), or null to clear it. | |
trigger | Replacement trigger (see create_automation). |
delete_automation Delete automation
#334: permanently delete an automation rule. Requires explicit confirmation: pass confirm=true. Reports the deleted rule's name, trigger and action summary so the caller can see exactly what was removed. Its run history goes with it.
| Parameter | Type | Description |
|---|---|---|
automation * | string | Automation rule id (from list_automations). |
confirm * | boolean | Must be true — deleting a rule is irreversible. |
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
test_automation Test automation
#684 — dry-run a rule against one record before trusting it live. Omit `action_index` to just check whether the rule's condition matches this record and see which actions WOULD run (no side effects). Pass `action_index` to actually send that one http_request action for real — everything else is not currently testable this way.
| Parameter | Type | Description |
|---|---|---|
automation * | string | Automation rule id (from list_automations). |
database * | string | Database name, api slug, or id. |
record * | string | Record uuid or public number to test against. |
workspace * | string | Workspace name or id. |
action_index | integer | Index into the rule's actions array — actually SENDS that http_request action. Omit for a side-effect-free condition check. |
get_automation_last_payload Get automation last payload
#684 — the most recent inbound payload a webhook_received rule received, and when. For mapping the sender's field names to this rule's actions before trusting it live. Never includes the rule's own hook token or secret.
| Parameter | Type | Description |
|---|---|---|
automation * | string | Automation rule id (from list_automations). |
database * | string | Database name, api slug, or id. |
workspace * | string | Workspace name or id. |
list_portal_recipients List portal recipients
External parties (clients, not users) with standing access to this workspace's published portal content — no login, no seat. Read-only here.
| Parameter | Type | Description |
|---|---|---|
workspace * | string |
create_portal_recipient Create a portal recipient
Names a new external party for the portal (#534) — never creates a user, sends no invitation, and never counts toward billable seats. Returns a signed token (#602 — id.version.hmac, not a bare opaque value); what content it can reach is not yet wired to anything (row scoping ships separately).
| Parameter | Type | Description |
|---|---|---|
label * | string | Display name for this recipient, e.g. a client's company name. |
workspace * | string | |
email | string | Optional — for your own reference, not used for delivery yet. |
expires_at | string | ISO datetime. Absent = never expires. An expired token is refused the same way a revoked one is. |
revoke_portal_recipient Revoke a portal recipient
Closes a recipient's access immediately — no cache, no TTL. Irreversible as a token (a new recipient would need a new token); the row itself stays for audit.
| Parameter | Type | Description |
|---|---|---|
recipient * | string | Recipient id (from list_portal_recipients). |
workspace * | string |
rotate_portal_recipient Rotate a portal recipient's token
#602 — issues a new signed token for this recipient and atomically invalidates the old one (no window where both or neither work). For a token that may have leaked while the recipient should keep access (revoke_portal_recipient, by contrast, ends access permanently).
| Parameter | Type | Description |
|---|---|---|
recipient * | string | Recipient id (from list_portal_recipients). |
workspace * | string |
list_portal_activity Portal recipient activity log
#537 — "what each client actually saw and did": every recipient-scoped portal access, filterable by recipient and/or published view. served = they got content (even if a fail-closed scope left it empty — this answers "did they look", not "did they see rows"); rejected = turned away, with a reason. A revoked recipient's history survives. [Full notes: get_started section "TOOL NOTES list_portal_activity"]
| Parameter | Type | Description |
|---|---|---|
workspace * | string | |
recipient | string | Narrow to one recipient id (from list_portal_recipients). |
view | string | Narrow to one published view id. |