Skip to content

MCP tools

The MCP server exposes three families of tools: read, write, and build/schema. Agents design the workspace, not just fill it. get_started is the orientation tool: it returns the overview, a workspace map, and an index of reference sections.

get_started also carries the long reference text that the tool list leaves out, so a client that caps tools or context stays light. Each tool’s listed description is a short lead that ends with a pointer such as [Full notes: get_started section "TOOL NOTES create_automation"]. The full grammar (every automation trigger and action, pack install options, field config, source setup) is in that tool’s TOOL NOTES section. The filter cheat-sheet is in FILTERS, and the icon names for the icon parameter are in ICONS.

How an agent reads it. Call get_started with no arguments for the overview and an index of section names. Call it again with section set to one name from that index to get just that section. The name is matched exactly first, then without regard to case. An unknown name returns the list of valid names. Reading one section keeps the result small enough that a client will not cut it off.

Which tools a connection sees. A customer connection gets the customer tool set. A few maintainer tools are only offered on the internal profile (?profile=internal): the git branch name tool, a person’s pinned tabs and dismissed hints, and the icon catalogue. An AI has no use for a person’s tab strip or hint cards, and the icon names are in ICONS. An agent run on a Runner is offered a short list built for its role, and those tools keep their full descriptions, so it does not need a lead plus a second call.

Tool What it does
get_started Orientation, a workspace map, and an index of reference sections. Pass section to read one (FILTERS, ICONS, TOOL NOTES for a tool).
list_workspaces Workspaces the token can access.
list_databases Databases in a workspace.
describe_database A database’s schema — exact api_names, types, options, relation targets: what a write is keyed by.
search Full-text record search — turn a name into a real id.
query_records Filter / sort / paginate records with the structured filter AST.
get_record One record in full, by uuid or public number.
get_links Web-app URLs for a database, its saved views, and/or a batch of records — no round-trip per record.
list_agent_activity Everything one configured Agent wrote in a date range — writes made through an ordinary token never carry agent attribution, so only agent-scoped ones show up here.
list_database_comments Every comment and #record reference across a whole database, newest first — see mentions and notifications.
list_hierarchy_activity The same feed, rooted at one record and walked down a chain of relation fields (e.g. Epic → Story → Task), up to 5 levels — permission-checked at every level.

Each write returns the resulting record; each 422 is surfaced verbatim.

Tool What it does
create_record Create a record; values by api_name, selects accept the label. An optional view (a view’s name or id in this database) creates it as New on that view does, and the result carries view_match { matches, unmet }; see creating a record from a view. create_records takes no view.
upsert_record Match-or-create on a unique field — a matching value updates that record, no match creates one. Returns { record, created } so a caller can tell which branch it took; idempotent on repeat. An automation rule’s own “Create a record” action can do the same thing via upsert.
update_record Merge-update (null clears); record by uuid or public number.
delete_record Trash a record (restorable 30 days).
update_records / delete_records Apply one patch to, or trash, up to 200 records in one call; partial failures come back per record. An update returns a restorable list.
undo_batch_update Revert an update_records call by passing its restorable list back verbatim.
enqueue_bulk_record_job / get_bulk_record_job For selections above one call’s limit (up to 50,000): a durable, resumable background update/delete job, then poll its progress. See bulk operations.
link_records Link a record to targets through a relation field.
add_comment Post a comment.
run_button Press a button field, running its automation actions.
duplicate_record Copy a record within the same database (unlike copy_records, a different one) — values, links, description, and its comment thread + attachments, all copied onto the new record. Owned one-to-many collections are NOT copied (a duplicated project doesn’t clone its tasks).
copy_records Copy one or more records into a different database (unlike duplicate_record, same database). Fields auto-match by name; one with a value and no destination match blocks the copy. Call with dry_run: true (the default) to see the mapping and any blocking fields, resolve a row with skip (drop it) or override (send it to a specific destination field instead of the auto-match — or resolve an ambiguous relation by naming which candidate to use), then call again with dry_run: false. override is MCP/API-only — the web dialog’s mapping is still read-only.

Databases, spaces, and views are trashed and restorable the same way a record is — nothing here erases outright.

Tool What it does
list_trash / restore_records A database’s deleted records (30-day retention) and bringing one back.
list_views_trash / restore_view A database’s deleted views.
list_spaces_trash / restore_space Workspace-wide deleted spaces (admin only) — restoring one brings back every database it held automatically.
list_databases_trash / restore_database Workspace-wide deleted databases (admin only).

A view or space owned by the calling identity, invisible to everyone else including admins — see Personal space for what that guarantees.

Tool What it does
get_or_create_personal_space My own personal space. Idempotent — lazily provisioned on first call, returns the same space every time after.
create_personal_view A view over a shared database that only I can see (deleting a record through it still deletes it for everyone — it’s a lens, not a private copy). Needs only read access, unlike create_view, and is never folder-placed.

create_personal_view accepts form as a type; the web dialog doesn’t offer it. The app’s own picker restricts to seven types for a reason stated in the UI (form and dashboard don’t fit a private-lens framing) — that’s a client-side choice, not an API restriction, so a form-type personal view is only reachable from here today.

Tool What it does
list_spaces / create_space List / create spaces.
create_database / update_database / delete_database Create, rename/move, or delete a database (delete needs confirm = name).
preview_formula Dry-run a formula before saving it: parses and type-checks it against the database fields and evaluates it on up to 5 recent records you can read. Returns the result type and sample values, or positioned errors (offsets, expected vs got, the nearest valid field or function name). Saves nothing.
add_field / update_field / delete_field / change_field_type Manage fields; select options by label (a workflow field added with no options starts as To do / In progress / Done); set or clear a field’s description (help text, up to 200 characters); convert a field’s type (dry_run to preview).
create_view / update_view / delete_view Manage views; accepts group_by / card_fields / date fields plus filters + sorts.
create_relation / delete_relation Link two databases (one_to_many / many_to_many) — paired relation fields.
reorder_fields / reorder_views Set field / view order by name.
Tool What it does
get_workspace One workspace by name, slug or id, with its full metadata and settings.
list_members / list_invites Who is in the workspace and their role (check before writing a user field — a non-member is rejected); invitations not yet accepted. Read-only.
list_relations / get_relation The whole relation graph in one call (read before structural work); one relation’s sides, cardinality, auto-link rules and the comparable fields set_auto_link accepts.
list_linked_records The full link set of one relation field on a record, as records you can act on. (Not get_links, which builds web URLs.)
list_records Records in the hand-arranged (drag) order a person sees — the one thing query_records can’t express.
count_records_grouped Count, or sum/average/min/max a numeric field, per group of another field, computed in the database — for “how many of each status” and board column counts.
get_field_usage What depends on a field before you delete it: records with a value, and the views, automations and formulas that reference it. A relation field counts the records that hold links. storage says where the count came from, and complete: false means you cannot read the far side of a relation, so the count covers only what you can see and a 0 is not proof the field is empty. Call before delete_field.
get_view One view by id, whether it belongs to a database or a space.
list_space_views Views that belong to a space (dashboards over several databases), which describe_database never shows.
list_sources / list_youtube_channels The scheduled syncs feeding a database (provider, schedule, status, last sync); the channels a connected Google account owns, needed to configure a YouTube source.
get_record_description A record’s rich-text description (the block editor under its title) — not a custom field called “description”.
list_comments A record’s comment thread, newest first, each with its id, author, and source.
update_comment / delete_comment Edit or delete a comment you wrote (admins may delete any; editing someone else’s is refused). Deleting is final — a comment has no browsable trash.
list_action_gates / list_approvals Workspace-declared approval gates and the held items. Read-only by design — approving is a person’s act, in the app Inbox.
list_agent_write_gates The gates that hold an agent’s record create/update for approval. Admins read all or one agent’s; an agent’s owner reads that agent’s only (agent_id required); anyone else gets not found. Read-only by design. See Approval gates.

A document is a standalone page in a space, belonging to no record — use it for a write-up or plan instead of cramming prose into a record or inventing a database for one page.

Tool What it does
list_documents / get_document Titles and ids in a space; one document as Markdown, with its version. Nested lists, images (as Markdown image syntax), dividers (---) and toggles (as a bullet with the body nested under it) come through and are read back on update; a toggle’s type is not kept, its content is. Files, video and audio appear as links.
create_document Write a page in a space (content is Markdown).
update_document Change title, icon, folder or body. content replaces the whole body, so read it first; pass the version you read to be told about a conflicting edit rather than overwrite it.
delete_document Permanent — a document has no browsable trash.
list_folders / create_folder / update_folder / delete_folder Sidebar folders in a space. List first so you don’t make a near-duplicate. Deleting a folder deletes nothing in it — contents fall back to the space root.
update_record_description Overwrite a record’s rich-text description (Markdown).
restore_document_version / restore_version Roll a record’s description, or its field values, back to a captured version — see record history. Both are recorded and undoable.
Tool What it does
propose_schema → build_schema Turn a plain-language goal into a plan of databases, fields, relations and states (each create-new or reuse-existing) — creates nothing; then build the approved plan in one call.
list_templates / apply_template Single-database or small-space starter templates. They seed sample rows; remove_sample_data deletes exactly those and nothing a person added.
list_packs / install_pack / list_installed_packs / uninstall_pack The built-in Business Pack gallery, each pack with its why, can and relations (see Writing a pack manifest); install by slug (idempotent; preview shows what it would create without creating it); what’s installed, with the install id uninstall needs. An install matches its databases by name only within the space it installs into, so installing a pack again reuses the databases it created before instead of making a second copy, and a same-named database in another space is left alone (see Databases with the same name in other spaces).
browse_pack_marketplace / list_pack_submissions / export_pack Community packs; your submissions’ review status (read-only); turn part of this workspace into an installable pack manifest.
duplicate_database / duplicate_view Copy a database’s schema, views and self-relations into a new independent database; copy a view with its filters, sorts and layout.
set_auto_link / run_auto_link Teach a relation to link itself from matching field pairs; apply the rules to records that already exist (use after an import).
find_select_drift / fix_select_drift Find records that look linked through a matching select label but carry no actual link; link them in one call (show the list to a person first).
unlink_records / move_record Remove specific links without touching the relation; reposition a record in manual order (before or after).
create_records Create up to 100 records in one atomic call — all succeed or none do.
set_default_view / set_favorite Which view people land on; star a record or database for the calling identity.

By default install_pack creates the pack’s own space. To put a pack in a space you already have, pass space (a name, slug or id from list_spaces). Over REST the same input is target_space_id (a space id) on the workspace’s packs/install and packs/preview calls. Every database the pack creates, with its views, lands in that space, and the pack’s own space is not created. With no space the install behaves as it did before.

  • preview takes the same input and applies the same checks, so a refusal shows up before anything is created.
  • You need edit access to the space. Someone with view-only access gets a 403. A space that does not exist, is deleted, or belongs to another workspace (or is another member’s personal space) is a 404.
  • A personal space is refused (422). A personal space holds documents and views, not databases.
  • A pack whose databases sit in more than one space is refused (422), and the message names those spaces. Install it without choosing a space.
  • A same-named database in a different space is not a conflict. The install creates its own database in the target space and leaves the other one alone. See Databases with the same name in other spaces.
  • A same-named database already in the target space that the pack did not create is refused (409), naming it, unless you choose Reuse for it (see below).
  • Installing twice into the same space reuses what the first install made rather than creating it again.
  • Uninstalling removes the pack’s content, not the space you installed it into.
  • No second pack space is made, but a pack that includes agents or triggers still creates the workspace’s one shared Agentic OS space they live in, if the workspace does not have it yet. Only the pack’s own space is skipped.

Databases with the same name in other spaces

Section titled “Databases with the same name in other spaces”

An install, and its preview, looks for a pack’s databases by name only in the space it installs into: the target space you chose, otherwise the space the pack names. A database with the same name in another space is ignored, so a pack can be installed next to one. For example, a pack with an Issues database creates its own Issues in its space and does not touch another space’s Issues.

  • Re-installing into the same space adds nothing. The install recognises the databases it created by the ids it recorded, so a database someone renamed is still found.

An install records the databases it created or adopted. A re-install of a pack the workspace already has looks for those databases by their recorded ids first, wherever they live now, and only then by name in the space it installs into. So moving a pack’s database to another space, or renaming the pack’s space, does not make the next install build a second set; the relations and the install’s tracked items stay with the original databases.

  • A recorded database wins over a same-named one that happens to sit in the pack’s space.
  • Only a database you can edit, and that is not in the trash, counts. Anything else is treated as not there, and the install falls back to matching by name in the space, building a fresh database if none is found. A trashed database is not brought back.
  • An explicit space is respected. If the target space still holds at least one database the pack created, the re-install is into where the pack lives and finds the ones that moved too. If it holds none, that is you installing somewhere else, and the pack builds a new set there. A database the pack adopted with reuse is kept either way.
  • A same-named database the pack did not create, already in the target space, is a collision the install does not decide for you: it is refused with a 409 naming it.

Sharing one database between packs is something you ask for, never something an install does on its own. To have a pack adopt an existing database wherever it lives, send a resolution of reuse for that database’s name in resolutions on the workspace’s packs/preview and packs/install calls, for example {"resolutions": {"Clients": {"action": "reuse"}}}. Over MCP, install_pack takes reuse_databases for the same choice, a map of database name to the id of the database to adopt, for example {"Clients": "<database id>"}; its update_agents input is for agent resolutions only.

When more than one same-named database qualifies, say which one: add database_id to the resolution, {"Issues": {"action": "reuse", "database_id": "<id>"}}. The id must be one of the candidates the preview lists for that database (below). database_id is accepted only with reuse; sent with another action, or not a UUID, it is refused by validation.

A database is adopted only when all of these hold:

  • You can edit it. A database you can only read, and one you cannot read at all, are treated as not there.
  • It is the one you named, or the only one. With a database_id, that database is adopted if it is one of the candidates. Without one, exactly one database with that name must be editable by you; with two or more, the install refuses to guess, with a 422 that says you have more than one and names their spaces. An id that is not a candidate (not editable by you, in another workspace, built-in, unknown) is refused the same way as a database that is not there, and nothing is changed.
  • Its fields fit the pack. A field the pack declares must have the same type in the existing database. A pack’s workflow field, such as a Status, needs a select, so an existing Status of another type cannot be used.
  • It is not synced from Linear. A database that has the Linear importer’s own linear_id field is never adopted, with or without a database_id, because the sync rewrites its State, Priority and Estimate on every run. The reason says so.
  • It is not in a personal space. A pack never lands in one, so such a database is not a candidate.

If any of these fails, an install with reuse is refused with a 422 whose message is the reason, and nothing is written. Without a reuse the pack creates its own database and the existing one is not changed.

The preview reports each database that has a same-named one elsewhere as existing_elsewhere, with the space_name it lives in and its database_id, reusable (true or false), adopted (true when the install would use that database, which needs your reuse choice or an earlier adoption by the same pack) and, when it cannot be reused, a reason in plain words, such as There is no Clients database you can edit. or a note naming the field and both types.

When the database is reusable and has a database_id, existing_elsewhere also carries:

  • record_count: how many live records it holds as you count them (the trash and records you cannot see are not counted). 0 is a real answer and is present.
  • fields_added: the fields the pack would add to it if reused, each {name, type}, in install order. A field it already has with the pack’s type is not listed, and [] means it already has every field the pack needs.

Neither key is present when database_id is absent or reusable is false.

candidates lists every same-named database you could pick, one entry each with database_id, space_name, reusable, a reason when it is not, and record_count and fields_added when it is. It lists only databases you can edit: a read-only, hidden, built-in or personal-space database is not in it. It is absent when there is none. Existing clients can keep reading the older single-database fields, which are unchanged.

  • Re-installing a pack that adopted a database keeps using it, with or without repeating the choice, and does not create a duplicate.
  • Uninstalling never deletes an adopted database or its data.
  • Installing the pack again after an uninstall works. It adds no second copy of a field, and the adopted database ends up as it was after the first install.
A relation whose field name is already taken
Section titled “A relation whose field name is already taken”

A pack relation needs a free field name on both databases. If the database you adopted already has a field with that name and it is not a relation, for example a text field called Sprint where the pack wants a Sprint relation, the install is refused with a 422 that names the field and its type: "Issues.Sprint" already exists as a text field, but the pack needs a relation field there. Rename or remove it, or install the pack onto a database without it.

  • The preview says so first. The database’s not_applied list has an entry of kind relation with blocks_install: true, and the preview does not list that field among the fields the pack would add.
  • A refused install changes nothing. The message ends with Nothing was installed., and the adopted database keeps its fields and records. Trying again after a refusal does not trip over what the first try left behind.
  • To go on, rename or remove the field in the way, or adopt a different database.
  • A field of another type that is not a relation is kept, not refused. If a same-named field exists as, say, text where the pack wants a date, the install leaves it as it is and the result entry for that field is reused with a reason: A "Due Date" field already exists as text; the pack wants date, so it is kept as it is.

The web install review offers the same choice. When the preview finds a database with the same name in another space (existing_elsewhere) that an earlier install of this pack has not already adopted, that database’s row in the review shows two options:

  • Create a new Name here, the default: an empty database in the space the pack installs into.
  • Use your existing Name (in space): shown with how many records it has now, which fields the pack would add to it (or that it already has every field the pack needs), and that nothing in it is removed or renamed. It also says that people who cannot open the other space will not see those records here.

Nothing is reused unless you pick it. When the preview says the database cannot be reused, the second option is shown disabled with the preview’s reason as written, rather than left out. A choice is sent as the same reuse resolution described above.

When you have several. If there is more than one same-named database in other spaces (for example three Issues), the row reads You already have 3 Issues databases in other spaces. and offers:

  • Create a new Name database here, the default.
  • Use one of your Name databases: opens a short list of the ones that can take the pack, each as Name in Space with its record count. Pick one and the review shows what the pack adds to it, with the same Nothing in it is removed or renamed line as above.

The ones that cannot be used are summed up on one muted line, N can’t be used:, each with its space and a short reason, for example synced from Linear. If none can be used, the row has no choice to make: it says You have 2 Sprints databases, but both sync from Linear, so this pack makes its own. (or none can take this pack when the reason is something else). Only databases you can edit are counted. If a pick stops being available, or the server refuses it, the review drops it and says the pack will make a new one.

Built-in databases are never reused or changed

Section titled “Built-in databases are never reused or changed”

A pack never matches, reuses or writes into a built-in StoryOS database, such as Members, Agents, Agent Triggers or Agent Runs. A built-in database is recognised by the system flag the product sets on it, not by its name, so a database you made yourself and named Members is an ordinary one.

  • A pack database named like a built-in one is created as its own separate database, and the built-in one is left as it was, even when you install into the space that holds it.
  • Choosing Reuse for a built-in database is refused with a 422 saying that it is a built-in StoryOS database and that a pack never changes those, and that leaving it out of your choices makes the pack install its own separate one. Nothing is written.
  • The preview never offers one. A built-in database does not appear as a collision or as existing_elsewhere, and a reuse choice does not make it adoptable. The install review therefore never shows the Reuse choice for it.

uninstall_pack (REST: POST /workspaces/:ws/packs/:installId/uninstall, with the install id from list_installed_packs) removes what that install made and returns two lists, removed and kept. A kept item carries a reason.

  • Views the install created are removed if nobody has edited them. A view whose name, type or configuration differs from what the install stored is kept, with the reason Changed since install.
  • A view the install only reused is kept, with the reason Existed before the install. This is the case when the pack’s databases and views were already there, for example from another pack.
  • A database’s default view is never removed.
  • Databases, fields, relations and sample records are not touched. Uninstall covers views, automations, agents and skills only.
  • Installing the pack again after an uninstall brings its views back.

A pack automation that sends email, Slack, webhook, HTTP or social-post actions, or runs an agent, installs switched off. Pass enable_automations (labels written Database.Rule name, as preview lists them) to switch chosen ones on; the web install review shows each rule that installs off as Off until you turn it on, with why and a switch. A pack’s agent triggers install off too, and the review shows each under its agent as Wake it automatically; over MCP pass enable_agent_triggers. The preview and the install result say which rules are off and why. Details: Writing a pack manifest.

A manifest can declare that some of its databases really belong to another pack, in requires.packs: each entry names the other pack by pack (its slug), the databases of this manifest that are that pack’s, and an optional note shown in the review. Deal Desk, for example, builds on Agency OS’s Clients, Contacts and Projects. A database named there must be in the manifest’s own databases, and a pack cannot name itself; both are refused with a 422. Details: Writing a pack manifest.

preview lists each required pack under required_packs: whether it is installed here, which of this pack’s databases would be linked to it, the fields this pack adds to them, the choices on offer and the chosen one. install_pack takes required_packs as {"<pack slug>": "also_install" | "create_here"} (REST: required_packs on packs/install and packs/preview):

  • The required pack is installed here: its databases are linked, not copied, unless you pass create_here. A database you cannot edit is not linked.
  • It is not installed: also_install installs that built-in pack first, then links to it. create_here, the default, makes the linked databases inside this pack. Nothing is installed unless you choose also_install. Naming a pack StoryOS does not ship in also_install is refused with a 422.
  • A slug the manifest does not require is refused with a 422.
  • One request is one install. If the dependent install fails after also_install installed the other pack, everything that request created is rolled back, including the pack it installed first and its databases, and the error says what was rolled back. A required pack that was installed before the request is not touched. If the rollback itself fails, the error names what to delete by hand.
  • The install result reports each required pack as linked, installed_and_linked or created_here. A database the install reused is linked even when it already sits in the space you install into; created_here means the install made it.

A pack automation whose trigger is a schedule can run one of the pack’s own agents. In its run_agent action, name the agent by reference instead of by id: {"type": "run_agent", "agent": "$agent:deal-coach"}. The reference is the agent’s name in lower case with every run of other characters turned into one dash, so Deal Coach is $agent:deal-coach. Install replaces it with the id of the agent it created or reused. Details: Writing a pack manifest.

  • The rule installs switched off, like every rule that runs an agent. Name its label in enable_automations to switch it on.
  • A reference to an agent the manifest does not declare, a reference that two of its agents share, or a schedule trigger the rule engine would refuse are each a 422 before anything is built; preview refuses them too.
  • export_pack includes an agent that a rule runs even when no trigger wakes it, and writes the rule with the $agent: reference, never an id.
Tool What it does
create_space_view / update_space_view / delete_space_view A space-level dashboard that reads from several databases (update can also move a database dashboard into a space). Deleting a view never deletes the records it showed.
list_space_groups / create_space_group / update_space_group / delete_space_group Presentational sidebar groups above spaces. Deleting a group leaves its spaces ungrouped.
delete_space Soft delete of a space and everything in it — restorable; see trash and restore.

Alongside the tools above: list_personal_views (every personal view you own, workspace-wide), copy_view_to_personal_space / copy_document_to_personal_space (an independent fork, never synced back), and publish_view / move_document_to_space (the one-way move out of Personal). get_personal_filter / set_personal_filter read and set your own extra filter on a view — “the team board, but just my rows”; invisible to teammates, and clear: true removes it. The get_personal_collection_filter / set_personal_collection_filter pair does the same for a record page’s embedded relation collection.

Tool What it does
get_my_work For the identity the token belongs to: kind is assigned (default), created, assigned_by_me, waiting (approvals to decide and unanswered mentions), recent or favorites. Finished records are never returned; totals are exact and truncated says when a list was cut. See My Work.
list_notifications / get_unread_count / mark_notifications What’s waiting for you (assignments, mentions, comments, state changes, approval requests, and an agent’s budget notices agent_budget_warning and agent_budget_paused); a single unread number; mark read or archive (all: true clears the inbox).
Tool What it does
get_agents / setup_agents Whether the Agentic OS space exists (with a summary), and provisioning it (idempotent).
run_agent / delegate_to_agent Run an agent by hand and get its Run back; hand one record to an agent, which posts its outcome back on the record as a comment linking to the Run.
create_agent_trigger Fire an agent when a record reaches a given state; it starts by itself by default. human_gate: true (“ask me before each run”) means it never starts a run by itself: a person starts each run. An optional condition (a record filter) wakes the agent only for records that match, for example {"field":"do_not_contact","op":"eq","value":false}; a skipped wake is listed in list_agent_wakes. See Trigger conditions.
get_agent_scope Where an agent works, resolved now: its Target databases plus every user database in its Target spaces (never a system database such as Members unless it is named), narrowed to what its manager can open, with enforced (true whenever the agent names a space or a database: its credential reaches exactly this list), unresolved and withheld_count. Workspace admins only. See Where an agent works.
get_agent_wake_sources Everything that can start an agent: its triggers (a record entering a state, or a relation field linking to it, each with on/off and whether a person must start it), every automation rule that runs it (name, its trigger, on/off, its database; for a database whose automations you cannot read, just “A rule in ”), every button field that runs it (the button’s label and its database), and the built-in ways (an @mention, a manual run or delegation, an approval being decided, the comment backstop, a re-wake, catch-up), with withheld_count for sources on databases you cannot open. Readable by the agent’s manager and workspace admins; anyone else gets the same “not found” as for an unknown agent.
get_agent_budget One agent’s monthly token and run budget against what it has used this UTC month, with each metric’s state (unlimited, ok, warning, paused or not_measured). See the Runner guide.
list_agent_catch_up The records an agent’s one-click catch-up would start on: ones already in its trigger state that no wake was made for, oldest first, with the server’s total. It only reads. Starting the catch-up is a person’s button, not an MCP tool. See the Runner guide.
get_run / get_staged_action / rerun_action / get_run_quota One run in full (each action’s attempts and artifacts); what a parked run is waiting to do (read-only — approving is human-only); retry one failed action with its original inputs; this month’s run usage against your plan.
create_automation / update_automation Author or edit a rule (admin-scoped). In an automation’s set, create and update-linked actions, a select, workflow or multi-select value can be an option label (any case) or id; an unknown label fails the run and names the valid ones. See Setting a select field by its label.
take_over_automation Make yourself the owner of a rule whose owner left, lost the database or was demoted (needs_new_owner). Needs what creating the rule needs; refused otherwise. A rule that switched itself off stays off. Admin-scoped, not available to an agent run credential. See Taking a rule over.
test_automation / get_automation_last_payload Dry-run a rule against one record before trusting it (no side effects unless you pass an action_index); the latest payload a webhook-triggered rule received.

A held delete is not a failure, and not done. When an agent’s own approval policy holds a delete, the delete tools (delete_record, unlink_records, delete_comment, delete_attachment, delete_document, delete_skill, delete_space_view, delete_source, delete_record_template, remove_sample_data) answer deleted: false and pending_approval: true, with an approval_id. Nothing was deleted; a person decides it in the Approvals inbox. Do not retry it: a retry would hold a second approval. delete_records answers the same way with deleted: 0 (a count) and pending_approval: true. See approval gates.

  • query_records / get_record return select values as labels (not option ids).
  • create_record / update_record accept a plain string on a rich_text field (auto-wrapped to blocks) and select labels.
  • create_record reports any unset template fields so the agent can fill them.
  • get_record / query_records / create_record / update_record all include a url — a clickable web-app link for that record, e.g. https://app.storyos.dev/w/{workspace_id}/d/{database_id}/r/{title-slug}-{number} (falls back to the record’s uuid when it has no public number yet). Use get_links for a database or view link, or to resolve a batch of record links in one call.
  • A workflow field (the canonical status column on almost every database) filters exactly like select over MCP — describe_database returns its own ops array so you don’t have to guess, and query_records / count_records accept either an option’s label or its id, translating eq/neq to has/has_none for you. See the operator × type matrix for the raw API’s own shape, which wants the option id only — the label resolution above is an MCP-side convenience.
  • Filter by state category instead of naming options. On a workflow or select field, describe_database’s ops also lists category_is and category_is_not, whose values are state categories (backlog, unstarted, started, completed, canceled), not option labels. “Open” is category_is_not ["completed","canceled"]; unlike a list of option ids it keeps working when someone adds a new done-like state. query_records and count_records send these values as written. A multi_select has no categories and refuses both ops. See Querying records.

For the concepts these tools operate on, see databases & fields, relations, and views.