StoryOS

v0.1.2
dev.storyos/storyos Checked 1 hour ago Published 12 days ago

Your 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>).

ParameterTypeDescription
sectionstringOptional. 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…
workspacestringWorkspace 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.

ParameterTypeDescription
workspace *stringWorkspace 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.

ParameterTypeDescription
workspace *stringWorkspace 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.

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace name or id.

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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
workspace *string
fieldstringField api_name to aggregate. Required for everything except count.
filterSame filter AST as query_records. See also: get_started section "FILTERS".
opstringDefault "count". The others need `field` and aggregate its numeric values.
qstringFree-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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
group_by *stringField api_name to group by — see the type list above.
workspace *string
fieldstringField api_name to aggregate. Required for everything except count.
filterSame filter AST as query_records. See also: get_started section "FILTERS".
group_by_granularitystringRequired when group_by is a date field; ignored otherwise. Each group's key is that bucket's start date.
opstringDefault "count". The others need `field` and aggregate its numeric values within each group.
qstringFree-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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace name or id.
cursorstringnext_cursor from a prior call.
filterFilter 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…
limitinteger
sortsarraySort 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…
viewstringView 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
record *stringRecord uuid or public number (e.g. "17").
workspace *stringWorkspace 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"]

ParameterTypeDescription
database *string
values *objectField 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.

ParameterTypeDescription
database *string
key_field *stringapi_name of the unique field to match on.
values *objectField 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.

ParameterTypeDescription
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.

ParameterTypeDescription
database *string
record *stringRecord 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"]

ParameterTypeDescription
content *stringMarkdown. An empty string clears the description.
database *string
record *stringRecord uuid or public number.
workspace *string
expected_versionintegerOptimistic-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.

ParameterTypeDescription
database *string
record *string
workspace *string

add_comment Add comment

Post a plain-text comment on a record (uuid or public number).

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
database *string
records *arrayRecord 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.

ParameterTypeDescription
database *string
records *arrayRecord 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).

ParameterTypeDescription
database *string
record *stringRecord 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"]

ParameterTypeDescription
database *stringSource database.
records *arrayRecord uuids or public numbers to copy.
target_database *stringDestination database.
workspace *string
dry_runbooleanDefault true: preview the mapping and any blocking fields without writing anything.
overrideobjectSource 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…
skiparraySource 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"]

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
workspace *string
afterstringLand immediately AFTER this record (uuid or public number).
beforestringLand immediately BEFORE this record (uuid or public number).
valuesobjectOptional 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"]

ParameterTypeDescription
database *string
workspace *string
cursorstringnext_cursor from a previous call.
limitintegerDefault 50, max 200.
qstringCase-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"]

ParameterTypeDescription
database *string
record *stringRecord 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace name or id.
cursorstringnext_cursor from a prior call.
limitintegerMax 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"]

ParameterTypeDescription
database *stringThe ROOT record's database — name, api slug, or id.
record *stringThe ROOT record — number or id.
relation_fields *arrayOne entry per level, e.g. [{database: "Epics", field: "Stories"}, {database: "Stories", field: "Tasks"}] to walk Epic → Story → Task.
workspace *stringWorkspace name or id.
cursorstringnext_cursor from a prior call.
limitintegerMax 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.

ParameterTypeDescription
body *stringThe replacement text — replaces the whole comment, not appended.
comment *stringComment id from list_comments.
database *string
record *stringRecord 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.

ParameterTypeDescription
comment *stringComment id from list_comments.
database *string
record *stringRecord 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"]

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
workspace *string
cursorstringnext_cursor from a previous call.
kindstringDefault "fields".
limitintegerDefault 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.

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
version *stringVersion 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"]

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
version *stringVersion id from get_history kind:"document_versions".
workspace *string

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"]

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
relation_field *stringThe 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.

ParameterTypeDescription
database *string
record *stringRecord 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.

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
workspace *string
watchbooleantrue (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.

ParameterTypeDescription
database *string
record *stringRecord uuid or public number.
workspace *string
content_base64stringBase64-encoded file bytes (use instead of url).
fieldstringAn 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…
filenamestringFile name — required with content_base64; inferred from the URL otherwise.
mimestringMIME type, e.g. "image/png". Inferred from the extension / URL response when omitted.
urlstringA 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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).

ParameterTypeDescription
button *stringThe 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).

ParameterTypeDescription
goal *stringWhat the workspace is for, in plain language.
workspace *string
modestringOmit 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.

ParameterTypeDescription
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…

ParameterTypeDescription
slug *stringPack slug from list_packs.
workspace *string
enable_agent_triggersarrayLabels ("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_automationsarrayLabels ("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…
previewbooleanShow 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_packsobjectFor 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_databasesobjectReuse 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…
spacestringInstall 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_agentsarrayNames 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.

ParameterTypeDescription
database *string
records *arrayUp 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"]

ParameterTypeDescription
database *string
record_ids *array
values *objectThe 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"]

ParameterTypeDescription
database *string
restorable *arrayThe `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"]

ParameterTypeDescription
database *string
op *string
record_ids *array
workspace *string
valuesobjectRequired 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.

ParameterTypeDescription
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.

ParameterTypeDescription
name *stringDatabase name, e.g. "Clients".
space *stringSpace name or id the database belongs to. Never a personal space: those hold documents and views only (422).
workspace *string
colorstringPalette 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…
descriptionstringOne 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…
iconstringA 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
expression *stringThe formula, e.g. {Qty} * {Unit Price} or if({Status} = "Done", 1, 0).
workspace *string
fieldstringAn existing formula field (name, api_name or id) whose expression you are replacing.
samplesintegerHow 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"]

ParameterTypeDescription
database *string
name *stringField name, e.g. "Status".
type *string
workspace *string
configobjectAdvanced per-type config (lookup/rollup/formula).
optionsarrayselect/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.

ParameterTypeDescription
database *string
field *stringField to update (name, api_name, or id).
workspace *string
add_optionsarrayNew 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_optionsarrayDelete options. Refuses with a usage count unless confirmed; the count is what confirming accepts.
rename_tostring
uniqueboolean#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_normalizebooleanWith `unique: true` — fold case and trim whitespace before comparing (default true).
update_optionsarrayRecolour, 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
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.

ParameterTypeDescription
database *string
name *string
type *string
workspace *string
card_fieldsarrayFields shown on cards / chips.
date_fieldstringcalendar: the date field.
end_date_fieldstringtimeline: end date field.
filtersFilter AST by field api_name — same shape as query_records (See also: get_started section "FILTERS").
folderstring#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_accessstringform: 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_descriptionstringform: helper text shown under the title.
form_fieldsarrayform: 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_urlstringform: redirect here (an http:// or https:// address only) instead of showing success_message.
form_submit_textstringform: submit button label (default "Submit").
form_success_messagestringform: message shown after a successful submit.
form_titlestringform: heading shown to the visitor (defaults to the database name).
group_bystringboard: 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_columnsarrayboard (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…
sortsarraySort keys by field api_name.
start_date_fieldstringtimeline: 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.

ParameterTypeDescription
database *string
name *string
type *string
workspace *string
card_fieldsarrayFields shown on cards / chips.
date_fieldstringcalendar: the date field.
end_date_fieldstringtimeline: end date field.
filtersFilter AST by field api_name — same shape as query_records (See also: get_started section "FILTERS").
group_bystringboard: 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_columnsarrayboard (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…
sortsarraySort keys by field api_name.
start_date_fieldstringtimeline: 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"]

ParameterTypeDescription
database *string
view *stringView name or id.
workspace *string
card_fieldsarray
date_fieldstring
end_date_fieldstring
filters
folderstring#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_accessstring
form_descriptionstring
form_fieldsarray
form_redirect_urlstring
form_submit_textstring
form_success_messagestring
form_titlestring
group_bystring
hidden_columnsarrayboard (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_tostring
sortsarray
start_date_fieldstring
unfileboolean#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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
database *string
view *stringView id (from list_views_trash) — a deleted view has no live name to resolve by.
workspace *string

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.

ParameterTypeDescription
space *stringSpace 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.

ParameterTypeDescription
document *stringDocument title or id (from list_documents).
space *stringSpace 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.

ParameterTypeDescription
space *stringSpace name, slug, or id (from list_spaces).
title *stringThe page title, as it appears in the sidebar. Max 200 chars.
workspace *string
contentstringMarkdown body. Omit for an empty page you will fill in later.
folderstringFolder name or id to file it under (from list_folders).
iconstringA 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.

ParameterTypeDescription
document *stringDocument title or id (from list_documents).
space *stringSpace the document lives in.
workspace *string
contentstringMarkdown — replaces the whole body.
folderstring | nullFolder name or id, or null to move it to the space root.
iconstringA 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…
titlestring
versionintegerThe 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.

ParameterTypeDescription
document *stringDocument title or id (from list_documents).
space *string
workspace *string
confirmbooleanMust 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"]

ParameterTypeDescription
document *stringDocument title or id (from list_documents).
space *stringThe space the document is in now.
target_space *stringThe 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.

ParameterTypeDescription
document *stringDocument title or id (from list_documents).
space *stringThe 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.

ParameterTypeDescription
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.

ParameterTypeDescription
name *stringFolder name, max 100 chars.
space *string
workspace *string
iconstringA 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`.

ParameterTypeDescription
folder *stringFolder name or id (from list_folders).
space *string
workspace *string
iconstringA 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…
namestring
positionintegerSidebar 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.

ParameterTypeDescription
folder *stringFolder 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.

ParameterTypeDescription
workspace *string

create_space_group Create space group

Add a presentational sidebar group. A space joins it through update_space's `group` param.

ParameterTypeDescription
name *stringGroup name, max 100 chars.
workspace *string
colorstringCSS 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`.

ParameterTypeDescription
group *stringGroup name or id (from list_space_groups).
workspace *string
colorstring | nullPass null to clear.
namestring
positionintegerSidebar 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.

ParameterTypeDescription
group *stringGroup 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"]

ParameterTypeDescription
database *stringThe "many" side for one_to_many (e.g. tasks). Same as related_database for a self-relation.
related_database *stringThe "one" / parent side (e.g. projects). Same as database for a self-relation.
workspace *string
field_namestringRelation field name on `database` — e.g. "Blocked by". Default: the related database name, or Parent/Related for a self-relation.
reverse_field_namestringInverse 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.
typestring

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"]

ParameterTypeDescription
workspace *string
databasestringOnly relations touching this database (name, qualified slug, or id).
spacestringOnly 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.

ParameterTypeDescription
database *string
relation *stringThe 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
nominations *array
workspace *string
dry_runbooleanDefault 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"]

ParameterTypeDescription
database *string
field *stringThe user field: display name, api_name or id.
workspace *string
dry_runbooleanDefault 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"]

ParameterTypeDescription
database *string
field *stringThe relation field pointing at Members: display name, api_name or id.
workspace *string
confirm_dependentsbooleanPass true to accept removing lookup/rollup fields built on the relation.
dry_runbooleanDefault 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.

ParameterTypeDescription
database *string
record *stringThe PARENT record (uuid or public number) to check for drifted children.
relation *stringThe 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.

ParameterTypeDescription
database *string
record *stringThe 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
install_id *stringInstall id from list_installed_packs.
workspace *string
confirmbooleanMust 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"]

ParameterTypeDescription
workspace *string
databasesarrayDatabases to include (name, qualified slug, or id). Omit for the workspace default slice.
namestringName for the exported pack.
spacestringLimit 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.

ParameterTypeDescription
packstringMarketplace 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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"]

ParameterTypeDescription
database *string
name *stringThe template's name, e.g. "Bug".
workspace *string
bodystringThe description the record starts with, as Markdown (use ## headings for sections). Ignored with from_record.
descriptionstringOne line saying when to pick this template.
from_recordstringRecord uuid or public number to save as a template.
valuesobjectPreset 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.

ParameterTypeDescription
database *string
template *stringTemplate id from list_record_templates.
workspace *string
bodystring | null
descriptionstring | null
namestring
valuesobject

delete_record_template Delete a record template

Delete a record template. Records already made from it are untouched.

ParameterTypeDescription
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.

ParameterTypeDescription
database *string
template *stringTemplate id from list_record_templates.
workspace *string
valuesobjectField 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.

ParameterTypeDescription
template *stringTemplate slug from list_templates.
workspace *string
namestringRename the created database.
spacestringTarget 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
name *stringSpace name, e.g. "Client Work".
workspace *string
colorstringPalette 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…
descriptionstringOne 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…
iconstringA 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.

ParameterTypeDescription
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.

ParameterTypeDescription
space *stringSpace name, slug or id.
workspace *string
colorPalette 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…
descriptionOne 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…
groupstring | nullGroup name or id (from list_space_groups) to file this space under. Pass null to ungroup it.
iconstringA 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_tostring
restrictedbooleanAdmin 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.

ParameterTypeDescription
space *stringSpace name, slug or id.
workspace *string
confirmstringMust 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.

ParameterTypeDescription
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.

ParameterTypeDescription
space *stringSpace 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.

ParameterTypeDescription
workspace *string
descriptionOne 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_colorstring | nullAccent colour for the public portal page, as a 6-digit hex like "#3366ff". Pass null to clear.
portal_logo_urlstring | nullLogo shown on the public portal page. Must be an https:// URL. Pass null to clear.
rename_tostring

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.

ParameterTypeDescription
confirm *stringMust equal the database name exactly.
database *string
workspace *string
sever_relationsboolean

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.

ParameterTypeDescription
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.

ParameterTypeDescription
database *stringDatabase 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.

ParameterTypeDescription
database *string
workspace *string
colorPalette 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…
descriptionOne 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…
iconstringA 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_spacestringSpace name or slug to move the database into. Never a personal space: those hold documents and views only (422).
rename_tostring
restrictedbooleanAdmin 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"]

ParameterTypeDescription
database *string
workspace *string
include_recordsbooleanCopy up to 50 records along with the schema. Default false (schema only).
namestringName 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"]

ParameterTypeDescription
database *string
field *string
new_type *string
workspace *string
dry_runboolean

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.

ParameterTypeDescription
database *string
order *arrayField 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"]

ParameterTypeDescription
database *string
field *string
order *arrayOption 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.

ParameterTypeDescription
database *string
order *arrayView 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"]

ParameterTypeDescription
workspace *stringWorkspace 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.

ParameterTypeDescription
skill *stringSkill 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"]

ParameterTypeDescription
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…

ParameterTypeDescription
description *stringOne or two sentences on what it does. Max 500 chars.
instructions *stringThe 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 *stringShort, specific name — how a person will pick it out of a list. Max 100 chars.
when_to_use *stringThe 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
examplesarrayWorked input→output pairs. One good example does more than a paragraph of clarification. Max 20.
from_templatestringTemplate id from list_skill_templates, recorded as provenance.
membersarrayWith 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…
versionstringSemver, e.g. "1.0.0". Default 1.0.0.
visibilitystringWho 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"]

ParameterTypeDescription
skill *stringSkill name or id (from list_skills).
workspace *string
descriptionstring
examplesarray
instructionsstringReplaces the whole procedure (get_skill returns the current one).
membersarrayWith 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…
namestring
versionstringSemver, e.g. "1.1.0". Bump it when you change the procedure.
visibilitystringWho 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_usestring

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.

ParameterTypeDescription
skill *stringSkill name or id (from list_skills).
workspace *string
confirmbooleanMust 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"]

ParameterTypeDescription
skill *stringSkill name or id (from list_skills).
workspace *string
formatstringDefault "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"]

ParameterTypeDescription
content *stringThe full text of the SKILL.md, including any frontmatter.
workspace *string
createbooleanDefault false = preview only. true = write the skill after reporting.
overridesobjectFields 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"]

ParameterTypeDescription
name *stringSkill name or id (from list_skills).
workspace *stringWorkspace name or id.
inputsobjectFree-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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
agent *stringThe 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"]

ParameterTypeDescription
agent *stringThe 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"]

ParameterTypeDescription
agent *stringThe agent record's uuid or public number (from get_agents/query_records).
workspace *string
fromstringISO datetime, inclusive. Default: 30 days ago.
tostringISO 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
agent *stringThe 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"]

ParameterTypeDescription
agent *stringThe agent record's uuid or public number.
database *stringDatabase holding the record to delegate.
record *stringRecord 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…

ParameterTypeDescription
agent *stringThe agent record's uuid or public number.
database *stringThe database whose state changes should fire the agent.
workspace *string
enabledbooleanDefault true.
human_gatebooleantrue = "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_fieldstringRelation 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).
statestringState binding: the option that fires it — the human label, e.g. "New".
state_fieldstringState 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.

ParameterTypeDescription
run *stringRun 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.

ParameterTypeDescription
run *stringRun 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.

ParameterTypeDescription
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"]

ParameterTypeDescription
run *stringRun 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…

ParameterTypeDescription
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).

ParameterTypeDescription
action_index *integerThe failed action's index, from get_run.
run *stringRun 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.

ParameterTypeDescription
database *string
view *stringView name or id (from describe_database).
workspace *string
namestringName 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.

ParameterTypeDescription
database *string
view *stringView 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"]

ParameterTypeDescription
database *string
view *stringYour 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.

ParameterTypeDescription
database *string
view *stringThe shared view to copy (from describe_database).
workspace *string

share_view Publish a view to a public read-only link

Publish a saved view (or update an already-published one's allowlist) to a public, unauthenticated read-only link for clients or stakeholders — the API half only; there is no web page for the link yet. [Full notes: get_started section "TOOL NOTES share_view"]

ParameterTypeDescription
database *string
view *stringView name or id (from describe_database).
workspace *string
include_relation_api_namesarrayRelation field api_names allowed to travel, as id/title/number chips only. Omit or [] = no related data leaves.
indexablebooleanAllow search engines to index the link. Default false (noindex).
visible_field_api_namesarrayField api_names to expose. Omit for the view's own non-hidden fields. A rollup/formula/lookup must be named here explicitly or it never appears.

unshare_view Revoke a view's public link

Take a published view back offline. The link 404s immediately — no cache, no grace window.

ParameterTypeDescription
database *string
view *stringView name or id (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.

ParameterTypeDescription
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.

ParameterTypeDescription
database *string
view *string
workspace *string
clearbooleanRemove the personal filter entirely.
filterobjectA 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
database *string
field *string
workspace *string
clearbooleanRemove your entire personal override for this collection (filter, sort, color, columns).
filterobjectA 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"]

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
view *stringView 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.

ParameterTypeDescription
view *stringView id (from list_space_views or get_view).
workspace *string
namestring
spacestringMove 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.

ParameterTypeDescription
view *stringView 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.

ParameterTypeDescription
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.

ParameterTypeDescription
workspace *string
userstringNarrow 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"]

ParameterTypeDescription
workspace *string
actorstringNarrow to one user id (from list_members).
entitystringNarrow to one record, space, database or view id.
fromstringISO datetime, inclusive. Default: 30 days ago.
sourcestring#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…
tostringISO datetime, inclusive. Default: now.
typestring#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.

ParameterTypeDescription
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.…

ParameterTypeDescription
workspace *string
kindstringDefault "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.

ParameterTypeDescription
target *stringDatabase name/slug/id, or a record uuid.
target_type *string
workspace *string
databasestringRequired when target_type is "record" and `target` is a public number.
starredbooleantrue (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"]

ParameterTypeDescription
workspace *string
archivedbooleanShow the archived pile instead of the inbox.
cursorstringnext_cursor from a previous call.
typestringNarrow to one kind.
unread_onlybooleanOnly 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.

ParameterTypeDescription
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.

ParameterTypeDescription
action *stringWhat to do with them.
workspace *string
allbooleanWith action "read" only: mark everything read.
notificationsarrayNotification 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"]

ParameterTypeDescription
workspace *string
statusstringFilter 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
workspace *string
agent_idstringLimit 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…

ParameterTypeDescription
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…

ParameterTypeDescription
workspace *string
agentstringThe agent record's uuid (from the Agents database).
cursorstringnext_cursor from a previous call.
databasestringThe database of `record`, only needed when `record` is a public number.
limitinteger
recordstringA 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
agent *stringThe agent record's uuid (from the Agents database; get_agent_wake_summary shows it).
workspace *string
limitintegerPage size, default 5.
offsetintegerSkip 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"]

ParameterTypeDescription
agent *stringThe 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"]

ParameterTypeDescription
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"]

ParameterTypeDescription
database *string
rule *stringThe rule id (from list_validation_rules).
workspace *string
afterintegernext_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"]

ParameterTypeDescription
workspace *stringWorkspace name or id.
limitintegerMax rows (default 50).
statusstringFilter 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"]

ParameterTypeDescription
workspace *stringWorkspace 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"]

ParameterTypeDescription
workspace *stringWorkspace 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id — the sync TARGET.
workspace *stringWorkspace 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.

ParameterTypeDescription
connection_id *stringThe google connection's id. See create_source for where a connection_id comes from.
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace 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"]

ParameterTypeDescription
connection_id *stringThe connection to read through. See create_source for where a connection_id comes from.
database *stringDatabase name, api slug, or id — the sync TARGET, whose fields the proposal maps onto.
provider_source *stringProvider id from list_source_providers, e.g. "youtube.comments".
workspace *stringWorkspace name or id.
configobjectProvider 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…

ParameterTypeDescription
connection_id *stringId of the stored connection to sync through. NOT a credential — see this tool's description for where it comes from.
database *stringDatabase name, api slug, or id — the sync TARGET.
external_key_field *stringField (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 *stringA human label for this source, e.g. "Shopify orders".
provider_source *stringProvider id from list_source_providers, e.g. "youtube.comments".
workspace *stringWorkspace name or id.
configobjectProvider config; shape is in list_source_providers' config_schema. May also set conflict_policy: "external_wins" (default) | "storyos_wins" | "newest_wins".
recurrenceobjectExact cadence, and it wins over `schedule`: {kind:"hourly",minute} | {kind:"daily",hour,minute} | {kind:"weekly",weekday,hour,minute}.
schedulestringCoarse 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
source *stringSource name or id (from list_sources).
workspace *stringWorkspace name or id.
configobjectReplacement 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_idstringPoint the source at a different stored connection.
external_key_fieldstringField (name or id) holding the provider's stable id.
field_mappingobject{ "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.
namestringNew human label.
recurrenceobjectExact cadence, wins over `schedule`: {kind:"hourly",minute} | {kind:"daily",hour,minute} | {kind:"weekly",weekday,hour,minute}.
schedulestringCoarse cadence.
statusstring"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"]

ParameterTypeDescription
confirm *stringThe source's exact name, as a guard against deleting the wrong one.
database *stringDatabase name, api slug, or id.
source *stringSource name or id (from list_sources).
workspace *stringWorkspace 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
source *stringSource name or id (from list_sources).
workspace *stringWorkspace 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.

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
source *stringSource name or id (from list_sources).
workspace *stringWorkspace name or id.
limitintegerMax 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"]

ParameterTypeDescription
workspace *stringWorkspace 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"]

ParameterTypeDescription
credential *stringThe credential (api token) id.
workspace *stringWorkspace 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"]

ParameterTypeDescription
credential *stringThe credential (api token) id.
workspace *stringWorkspace name or id.
cursorstringnext_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.

ParameterTypeDescription
event *stringThe activity event id.
workspace *stringWorkspace 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"]

ParameterTypeDescription
webhook *stringWebhook id, or its exact url (from list_webhooks).
workspace *stringWorkspace name or id.
limitintegerMax 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"]

ParameterTypeDescription
webhook *stringWebhook id, or its exact url (from list_webhooks).
workspace *stringWorkspace name or id.
enabledbooleanfalse pauses deliveries without discarding the subscription.
eventsarrayREPLACES the whole subscription list (1–20 events), it does not add to it.
take_ownershipbooleantrue 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…
urlstringNew 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"]

ParameterTypeDescription
confirm *stringThe webhook's exact url, as a guard against deleting the wrong subscription.
webhook *stringWebhook id, or its exact url (from list_webhooks).
workspace *stringWorkspace 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"]

ParameterTypeDescription
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace 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.

ParameterTypeDescription
automation *stringAutomation rule id (from list_automations).
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace 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…

ParameterTypeDescription
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 *stringDatabase name, api slug, or id (the rule's home database).
name *stringHuman 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 *stringWorkspace name or id.
approverstringUser id who approves this rule's require_approval actions (defaults to the rule owner).
conditionOptional filter AST (same shape as query_records) — the rule only runs on records that match. Not allowed on webhook_received.
enabledbooleanStart enabled (default true).
limitintegerSchedule-only top-N count, capped at 200. Rejected on any other trigger.
sortarraySchedule-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"]

ParameterTypeDescription
automation *stringAutomation rule id (from list_automations).
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace name or id.
actionsReplacement actions array (see create_automation).
approverstring | nullApprover user id, or null to revert to the rule owner.
conditionReplacement filter AST, or null to clear it.
enabledbooleanEnable (true) or disable (false) the rule.
limitSchedule-only top-N count (see create_automation), or null to clear it.
namestring
sortSchedule-only top-N ordering (see create_automation), or null to clear it.
triggerReplacement 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.

ParameterTypeDescription
automation *stringAutomation rule id (from list_automations).
confirm *booleanMust be true — deleting a rule is irreversible.
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace 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.

ParameterTypeDescription
automation *stringAutomation rule id (from list_automations).
database *stringDatabase name, api slug, or id.
record *stringRecord uuid or public number to test against.
workspace *stringWorkspace name or id.
action_indexintegerIndex 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.

ParameterTypeDescription
automation *stringAutomation rule id (from list_automations).
database *stringDatabase name, api slug, or id.
workspace *stringWorkspace 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.

ParameterTypeDescription
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).

ParameterTypeDescription
label *stringDisplay name for this recipient, e.g. a client's company name.
workspace *string
emailstringOptional — for your own reference, not used for delivery yet.
expires_atstringISO 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.

ParameterTypeDescription
recipient *stringRecipient 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).

ParameterTypeDescription
recipient *stringRecipient 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"]

ParameterTypeDescription
workspace *string
recipientstringNarrow to one recipient id (from list_portal_recipients).
viewstringNarrow to one published view id.