- Documentation
- Integrations
- AI agents (MCP)
- MCP tools and limits
MCP tools and limits
Every tool the TaskJuice MCP server exposes, its arguments, its errors, and the per-plan call budgets.
The server exposes at most 21 tools per connection (24 where Databases is turned on), all of them listed below. A workflow is never its own tool: an assistant finds the workflows you have exposed with find, reads one with describe, and runs it with run_workflow, passing the workflow's slug.
Each tool needs a minimum access level — the Access column below: Viewer, Runner, Editor or Manager. A connection is only offered the tools its level allows, on top of your plan and your role, and it never does more than the person it acts as can do in the app (see Choose what a connection can do). Every connection is at least Viewer.
Always-available tools
Available to sign-in connections and API keys, on every plan.
| Tool | Access | Arguments | Returns |
|---|---|---|---|
whoami | Viewer | none | Who the connection is and what it can do here — see The whoami result. |
find | Viewer | type, query?, cursor?, limit? (≤ 50); for runs also status?, workflowSlug?, workflowId?; for trigger checks workflowSlug? or workflowId?; for nodes also kind?; for documents also since?; for drafts, nodes, apps, tables, app connections, databases, documents, folders, workspace variables and saved prompts also workspace? | Searches one type of item a page at a time. type is workflow (ranked by how well the name and descriptions match query), draft, run (newest first, filtered by status, workflowSlug or, on a connection that can author, workflowId; runs take no query), skill, node (the catalog's app actions and triggers, built-in steps and AI sub-nodes, matched by meaning as well as words, so "send a text" finds SMS actions; narrow with kind: app-action, app-trigger, system or capability), app (catalog apps, each with needsConnection), form, table, template or connection (see Read forms, tables, templates and app connection health), database (every database connected in the workspace, where Databases is turned on; see Work with connected databases), document (the documents in the workspace's folders the person can open; see Read forms, tables, templates and app connection health), folder (the workspace's folders the person can view, empty ones included), chatbot, env, approver_group or prompt (the account's chatbots, the workspace's variables, the account's approver groups and the saved prompts a step can use; see Read forms, tables, templates and app connection health), trigger_check (a workflow's RSS and polling trigger checks, newest first; pass workflowSlug or workflowId, and no query — see Read a workflow's trigger checks), or approval (the steps waiting for your approval, newest first, including runs you started, which someone else must decide — see Decide approvals). Omit query to list everything. Each page returns items, each with the id to pass to describe (a workflow item also carries its workflowId, which create_workflow_draft takes to open a draft of it), plus total (matches across all pages; null for runs and trigger checks), nextCursor (pass it back as cursor for the next page; null on the last one) and truncated (true when there are more items than one search reads, so the rest weren't searched). Drafts, nodes, apps, forms, tables, templates, app connections, databases and documents need a connection that can author (see Authoring tools); skills need an account in good standing. On a connection not limited to one workspace, nodes, apps, tables, app connections, databases and documents are searched in the workspace workspace names (its slug), unless the account has only one. Each draft names its workspace's slug in workspace, and workspace narrows the draft list to one workspace. |
describe | Viewer | id, type?; for nodes also host?; for runs also stepId?, iteration?; for documents also cursor?; for drafts, deployments, nodes, apps, tables, app connections, databases, documents, folders, workspace variables and saved prompts also workspace? | One item in full, by the id find returned (workflow:send_invoice, run:<run id>, skill:<slug>, node:<canonical>, app:<slug>, form:<id>, table:<id>, template:<id>, connection:<id>, database:<id>, document:<id>, trigger_check:<subscription id>@<checked at>, approval:<id>, chatbot:<id>, env:<id>, approver_group:<id>, prompt:<id>) or by a workflow's id (deployment:<workflow id>): a workflow's input schema with its source, one example input and its workflowId, a draft's graph and validation, a run's status, timing, output, steps and any steps On Error recovered (with a connection that can author, pass stepId for one step's full input and output), a skill's current instructions, a catalog node's config schema and the sign-in methods it can use (authMethods), every step an app offers, the sign-in methods it accepts (authMethods) and whether it still needs a connection, a workflow's deployment status (see Check whether a workflow is live), a form's fields, a table's columns, a template's steps, an app connection's health, a database's structure (the same record describe_database returns), a document's details and its text, or an approval: what it waits on and, while it waits, the inputs the step will run with and which of them an approver can edit. Find catalog nodes and apps with find. Drafts, nodes, apps, deployments, forms, tables, templates, app connections, databases and documents need a connection that can author; skills need an account in good standing. An id from another tool, such as a workflow slug or a run id, works when you also pass type. On a connection not limited to one workspace, a node, an app or an app connection is read in the workspace workspace names, unless the account has only one; a draft, a deployment, a table, a database or a document decides its own workspace, and a workspace that does not match it answers not-found. |
run_workflow | Runner | workflowSlug, input?, idempotencyKey?, or documents? instead of input and idempotencyKey — see Run on files already uploaded | Waits up to 25 seconds. A finished run returns its output; a longer run returns {status: "running", runId} — follow up with describe({ id: "run:<runId>" }). A finished run with recoveredSteps had steps that failed and were recovered by their On Error setting, so its output may hold fallback values; describe the run to see which. An input that doesn't match the workflow's schema returns invalid-input naming the field to fix (extra fields always pass through; nothing is dispatched and the idempotency key is not consumed). |
control_run | Runner | runId, action | Stops, resumes or retries one run, by the runId run_workflow or find({ type: "run" }) returned. action is { kind: "cancel", reason? } (ends the run for good: steps that have not started never run; the reason, up to 500 characters, shows on the run page), { kind: "resume" } (continues a run a person paused) or { kind: "retry", mode? } (runs a failed run again on the newest version: by default from the step that failed, reusing the results of the steps that worked; mode: "from-start" runs every step again). A run is retried at most once: asking again answers noOp: true with the same retry, and next names the retry run to read. When a run cannot pick up at its failed step — usually because an earlier step changed since — the retry answers from-step-unavailable with the reason, and you can retry with mode: "from-start" after checking with the person. A run already in the requested state answers noOp: true and nothing changes. A run that already finished cannot be cancelled or resumed, and resuming a run waiting for an approval is refused with run-control-refused; an approver decides it with decide_task or in TaskJuice, and cancelling such a run still works. Cancel does not stop a step that is already running (it finishes), AI agent work already under way, or a phone call in progress. Not available to a client's own sign-in. |
decide_task | Runner | taskId, decision, reason?, edits? | Approves (decision: "approve") or rejects ("reject") one step waiting for approval, by the taskId find({ type: "approval" }) returned, as the signed-in person — recorded exactly as if they clicked Approve or Reject in TaskJuice. For an API key, that is the person who created it. You cannot approve a run you started unless you are its only possible approver. edits (approve only) changes inputs the approval's describe marks editable. See Decide approvals. |
Details worth knowing:
inputis the trigger payload. Whatever the agent passes arrives at the workflow exactly as a webhook body would.describe({ id: "workflow:<slug>" })shows the expected shape and one example input.idempotencyKeyprevents double runs. The same key from the same connection within 24 hours returns the original run instead of dispatching again. Use it whenever an agent might retry.- Outputs are capped at 256 KB. Larger outputs come back truncated with
outputTruncated: true; the full result stays in the run detail view. - Two workflows with the same name get distinct slugs suffixed with the workflow id's first 8 characters, so slugs never collide. Exposing a second workflow with the same name changes the first one's slug too.
The whoami result
| Field | What it holds |
|---|---|
account | The account: id, name, slug. |
workspace | The workspace the connection is limited to, the same shape: a workspace API key's own, or the one workspace of someone with only workspace access who belongs to exactly one. null otherwise. |
connectionUrl | The address this connection uses: https://mcp.taskjuice.ai/mcp, or https:// plus your connector domain plus /mcp for a connection made through an agency's connector domain. |
links | Pages in the app to send a person to, on the account's own host: newSkill, where a new skill is saved. null for a client (guest). |
credential | kind: "oauth" with the signed-in email, or kind: "api-key" with the key's label and expiresAt. |
access.level | The access level this connection was allowed: viewer, runner, editor or manager. For an API key, the level it was created with. |
access.limit | The person's assistant limit on the account: viewer, runner, or same (the same as their own access). |
access.workspaceIds | The ids of the workspaces this connection may act in, or "all" for an API key scoped to the whole account. |
access.ceiling | The most this connection may do on each kind of item (workflow, workspace, table, connection, database, databaseTable, folder), as a list of permissions such as workflow.run or table.writeRows. On any one item it is still narrowed by the person's own access. |
dailyBudget | The account's tool calls today (tenant), the key's own cap if it has one (credential), and the tighter of the two as remaining. null for someone with only workspace access (no account role). control_run calls are not counted. |
now | The current time, in ISO-8601 UTC, e.g. 2026-11-02T17:30:00.000Z. With timezone, it lets the assistant turn "next month" or "last week" into exact dates. |
timezone | The account's timezone from Settings, e.g. America/Los_Angeles, or UTC when none is set. |
workspaces | Up to 50 of the person's own workspaces this connection can reach, and truncated if there are more. null for a workspace API key, for someone with only workspace access who belongs to one workspace, and for a key with a workflow allowlist. |
businessProfile | The business this connection works for, as written in the workspace's AI memory under Business profile: text (up to 2,000 characters) and truncated. null for a client (guest), for a connection that reaches several workspaces, and when the workspace has none. |
Decide approvals
A step set to pause for approval waits until someone decides it. A connection at Runner or above can decide it for the person it acts as (for an API key, the person who created it):
find({ type: "approval" })lists the steps waiting for your approval, newest first. Each item has itstaskId, the step and workflow names, when it expires andviewerDecision—initiatorwhen you started the run, so someone else must decide it.describe({ id: "approval:<taskId>" })shows the inputs the step will run with. Each field either can be edited or carries areadOnlyReason.decide_task({ taskId, decision: "approve" })(or"reject", with an optionalreasonshown on the run page) decides it. To change an input first, passeditswith the new values of editable fields only.
The decision is recorded as you, and the run carries on — or follows its On reject route — exactly as it would after a click in TaskJuice. The same rules apply as in the app: you cannot approve a run you started unless no one else can approve it, a client decides only the steps set to pause for the client in their own workspace, and an approval someone else already decided answers approval-refused with refusalCode: "consumed". Sending the same decision again changes nothing and answers replayed: true.
{ "taskId": "8f0c…", "decision": "approve", "edits": { "to": "billing@acme.com" } }Skills tools
Managed skills are available on every plan while the account is in good standing. List a connection's skills with find({ type: "skill" }): the skills licensed to it and, for a connection that can author, set-up-workspace, the built-in procedure for setting up or reshaping a workspace from a business's documents. A connection that cannot author and has none licensed gets an empty list.
| Tool | Access | Arguments | Returns |
|---|---|---|---|
get_skill | Viewer | skillSlug | One skill's current instructions, with the slug of each workflow it runs through run_workflow on this connection. |
Authoring tools
Available to sign-in connections and API keys of someone with an account role, on plans that include authoring. A call about an existing workflow, draft or table works in that item's own workspace; making something new names its workspace with workspace (see One connection for every client).
| Tool | Access | Arguments | Returns |
|---|---|---|---|
create_workflow_draft | Editor | name or workflowId, description?, type?, workspace? | A new empty draft: ids, the draft's graph hash, an editor link, and the workspace it was created in (draft.workspace). The workflow goes in the workspace workspace names (its slug), or the only one; on a connection not limited to one workspace, in an account with more than one, leaving it out creates nothing and answers invalid-arguments listing the workspaces. With type: "form" (forms belong to the whole account, so no workspace): a draft form with one starter field, returned as describe shows a form plus editorUrl (the form builder). Nothing is public until it is published. See Build a form. With type: "chatbot": a draft chatbot in the workspace, with only its name; see Build a chatbot. With workflowId instead of name: opens a draft of a workflow that is already published — see Change a published workflow. |
propose_changes | Editor | workflowId, changeSet, baseGraphHash?, includeGraph?; for a form type: "form", formId, changeSet, baseFormHash? | Applies a change-set all-or-nothing, up to 450 ops per call on any draft (split a larger change across calls, each against the graph hash the previous call returned). Rejections list every violation; success persists and returns the new graph hash, what changed (changes: the steps and the edges between them that were added, updated or removed) and the draft's size (counts); pass includeGraph: true for every node and edge. An app step it adds uses the workspace connection named in its data.auth.connectionId (find({ type: "connection" }) lists them); with none named it uses the workspace's only connection for that app, and when the workspace has two or more the proposal is refused with the choices, so a step never reads or writes the wrong account. update-node-config setConnection switches an existing step to another of them, and every binding is listed in connectionsBound. When the workspace has no connection for the app, the step becomes a setup step on the Setup page, and a connection your organization shares with the workspace is picked in the step's connection field in the editor. set-node-auth makes the same choice as the step's account list in the editor: source: "client-provides" with method (one of the step's authMethods) has your client connect their own account, as Ask someone to connect does, and source: "agency-provides" binds a workspace connection again, chosen as for an added step. update-node-config sets or removes a step's approval pause and On Error in place (setPolicies / unsetPolicies), so the step keeps its connections, and adding an error edge from a step turns its On Error to Route to recovery branch (listed in wiring.routedOnError). For a form, applies a form change set to a draft form and returns the saved form with its new formHash. For a chatbot (type: "chatbot", chatbotId, baseChatbotHash, and the settings to change as changeSet), changes a draft chatbot's settings; see Build a chatbot. A bind-chatbot op (nodeId, chatbotId) makes a Chat message received trigger answer a chatbot, and chatbotId: null unbinds it. A chatbot is answered by one workflow at a time: one another workflow answers is refused as already-bound, naming that workflow, and an id this workspace can't use is refused as not-usable. |
validate_draft | Editor | workflowId | Judges the draft against the same gate the in-app drafter uses. Red names the blocker. Business lists what a person must still finish before publishing — app connections on the workflow's Setup page, the rest in the editor. None of it is a fault in the draft, but a person must finish it before publish; while any of it remains, the result carries personActionRequired, and an assistant should stop, tell the person its message and setupUrl, and wait for them. It covers unconnected apps (needsConnection), unset selections such as a phone number or form (needsResources), a Voice Agent whose Model sub-node needs an LLM key (needsModelKeys), and credentials finished on the node, such as a provider's public key (needsCredentialSetup). Business may also list warnings: things that do not stop the draft or publish but that a person should see, such as a Branch whose no-match path leads nowhere. Each names its step (stepName). |
create_variable | Manager | key, value, description?, workspace? | Adds a workspace variable ($env) that is not secret, so a step can read it as {{ $env.KEY }}. Create-only: a key that already exists, in the workspace or for the whole account, is refused with variable-refused (key-exists), except the same key with the same value, which answers created: false, so a retry is safe. A key or value that looks like a password, token or API key is refused with looks-secret and nothing is stored; details.humanLink is the Environment page, where a person enters it as a secret. |
preview_mapping | Editor | expression, sampleOutput, bindings? | Evaluates a JSONata mapping against sample data and returns the output plus warnings. |
test_step | Editor | workflowId, nodeId, input?, workspace? | Tests one step of the newest draft, the same as the editor's Test step button, and returns its output, its error and Data In. The step runs on its sample data: input if you pass it, else the pinned output of the step before it, else its own pinned input; $trigger and $steps come from the draft's pinned samples, and inputsUsed says which were used: pinnedSteps and unpinnedSteps list only the earlier steps this step reads, up to 20, with pinnedStepsTotal and unpinnedStepsTotal giving their full counts. A failed test adds hints naming any earlier step it reads that has no sample. inputsUsed.trigger is unreachable when the step reads no trigger sample because it isn't connected after the pinned trigger, and a failed test of a step that reads $trigger then adds a hint saying to connect it. A large output comes back cut, with outputTruncated and outputOriginalBytes, so the answer stays small enough for the client; to see the whole output, open the step in the editor (editorUrl) and test it there. The step runs for real against the workspace's connections (an email step sends), and nothing is saved to the draft. Triggers, notes and sub-nodes can't be tested this way. |
create_folder | Editor, Manager for private | name, parentFolderId?, private?, workspace? | Creates a folder of documents, at the top level or inside parentFolderId. private: true only ever tightens: it cuts inherited access while the caller keeps Manager, and it never gives anyone else access. A folder of the same name the caller can see (ignoring case and surrounding spaces) answers created: false with that folder and its true private, so a retry is safe. Returns folder with folderId, folderPath, title, private and link. |
move_document | Editor | documentId, folderId, workspace? | Moves a document into a folder inside the folder it is in now, at any depth. Refused as move-refused with outside-subtree when the destination is outside that folder, and with wider-access when anyone would hold more access there than on its current folder; a person can make such a move in the app. The folder it is already in answers moved: false and writes nothing, so a retry is safe. A move starts no run. Returns moved and document with documentId, folderId and folderPath. |
edit_table | Editor | create or tableId, changes, previewHash?, workspace? | Creates a table with its columns, or changes an existing table's columns: add-column, rename-column, retype-column, remove-column. Live as soon as it saves. Returns the table as describe does, with every column id. Removing a column takes the confirm step — see Build and fill tables. A new workspace table goes in the workspace workspace names, as for create_workflow_draft; an account table and a change by tableId take no workspace. |
table_rows | Viewer | tableId, action, previewHash? | One table's rows, one action per call: query (by row id, by exact values or by ranges on number, date and datetime columns, or every row), insert, update or delete, up to 50 rows. Deleting takes the confirm step — see Build and fill tables. |
The authoring tools read through describe and find:
- A draft:
describe({ id: "draft:<workflowId>" })returns its graph, its hash (the base forpropose_changes), validation state (with anywarnings, asvalidate_draftreturns them), what a person still has to finish — app connections on the workflow's Setup page, the rest in the editor (seevalidate_draft), and the editor link. - A node:
describe({ id: "node:<canonical>" })returns one node's configuration schema and, for an app step, the sign-in method it can use (authMethods, the app's one connection kind such as["oauth2"];[]when it needs no connection). It also returns the step's name and description and, for an action, whether its effect can be undone (reversibility), and each input field's full description, its choices with their labels, its default and its limits. An input markedtakesFile: trueneeds a file from an earlier step, written as a reference to that step'sfile, for example{{ $steps.export_1.data.file }}, never the whole step output. An app step'soutputShapeis the app's response body, and a reference reads it under$steps.<id>.data: whenoutputShapehas a top-leveldatakey (GraphQL apps such as monday.com), its fields are at$steps.<id>.data.data, for example$steps.create_item_1.data.data.create_item.id. The exception is a body whose top level has both adataobject and ametaobject: it is not wrapped. An unknown canonical returnsfound: falsewith a hint — not an error. For the capability sub-nodes (capability-model,capability-tool,capability-memory) it returns their contract: which agent nodes accept them, the exact edge to add, and their config schema.capability-modelalso listseligibleModels; passhost: "taskjuice.system.voice_agent"to get the realtime models a Voice Agent can run. - The catalog:
describe({ id: "app:<slug>" })lists every step one app offers, the sign-in method a connection to it uses (authMethods, one kind such as["apiKey"], or[]when the app takes no connection) and whether it still needs a connection;find({ type: "node", query })searches every app's steps, the built-in system nodes and the capability sub-nodes.
Agents propose, the platform validates — an invalid change never persists. Connecting accounts, attaching keys, and anything else that touches a credential always happens in the app, from the links the tools return.
Change a published workflow
Once a workflow is published it usually has no draft, so propose_changes and describe({ id: "draft:<workflowId>" }) answer not-found for it. Open one first:
create_workflow_draft({ workflowId })opens a draft of the workflow. It is a copy of the live version, or, when the workflow is switched off, of its newest switched-off version. Leavename,descriptionandworkspaceout: the workflow already has them. Each itemfind({ type: "workflow" })returns carries the workflow'sworkflowId, and so doesdescribe({ id: "workflow:<slug>" }). It is also the onecreate_workflow_draftreturned when the workflow was first drafted, and once the workflow has run, its runs (find({ type: "run" })) carry it too.- The result has the same shape as a new draft's:
createdistrue,sourceVersionis the version the draft was copied from, andversionis the draft's own number. If the workflow already has a draft, you get that draft back withcreated: falseandsourceVersion: null, and nothing new is made. - Read it with
describe({ id: "draft:<workflowId>" }), change it withpropose_changes, thenpreview_publishandpublish. The live version keeps running until the publish replaces it.
A workflow with no draft and no version that ever went live has nothing to copy, so the call answers not-found and points to the editor. While a publish of the workflow is still running (compiling, or waiting on its evaluations), the call opens nothing and answers deploy-refused with refusalCode: "version-in-progress"; try again once describe({ id: "deployment:<workflowId>" }) shows it has finished. Opening a draft needs Editor access to the workflow and, like creating a workflow, a plan that allows it.
Publish and state tools
Available to the same connections as the authoring tools.
| Tool | Access | Arguments | Returns |
|---|---|---|---|
preview_publish | Manager | workflowId, or type: "form" and formId | What publishing would do, without doing it: every blockers entry, the sideEffects going live has (each marked reversible and externallyVisible), the setupRequired steps a person must take, canPublish, and a previewHash. Non-blocking warnings (for example a Branch or Switch whose no-match path leads nowhere) are listed too; they never change canPublish or the previewHash. For a form: its blockers, the public link (publicUrl), the fields added, removed or changed since it was last published (changes, with plain warnings), canPublish and a previewHash. |
publish | Manager | workflowId (or type: "form" and formId), previewHash | Publishes and turns the workflow on — but only if nothing changed since the preview with that hash. Returns outcome (active, already_active, or pending_eval while evaluations run), the after-publish steps, and a next sentence saying what to do. For a form: its public page starts taking submissions; returns publicUrl and a next sentence on starting a workflow from it. |
set_workflow_state | Manager | workflowId, change, dryRun?, previewHash? | Makes one change: { "kind": "activate" }, { "kind": "deactivate" }, { "kind": "expose", "description"?: "…" } (make it findable with find and runnable with run_workflow), or { "kind": "unexpose" }. dryRun: true returns the effects and changes nothing. |
delete_workflow | Manager | workflowId, previewHash? | Deletes a workflow that is turned off, for good, with its versions; its run history will no longer be viewable. The first call deletes nothing and returns preview-required — see Deleting takes the confirm step below. Once deleted, returns the workflow's name, versionsDeleted and a next sentence. |
How the loop works:
- Preview, then publish with the hash.
publishrefuses withpreview-staleif the workflow, your plan's headroom, or its evaluations changed after the preview — callpreview_publishagain and show the person what changed. Retrying apublishthat already succeeded returnsalready_active, so a dropped connection never publishes twice. - Setup steps are data, never secrets. Each
setupRequiredstep has a stableid, plain-languageinstructions, and ahumanLinkthat opens where a person finishes it: the workflow's Setup page for connecting an app, otherwise the exact node (or page) — attaching an LLM key to a Voice Agent's Model sub-node, picking a phone number or form, pasting a provider's key, or entering a webhook signing secret. Steps markedbefore_publishmust be done first;publishrefuses withrefusalCode: "setup-required"until they are. Steps markedafter_publish— such as registering the webhook URL with the sending system (the step carries the URL) — are for the person to do once it is live. - Apps are connected on the Setup page. Each workflow has a Setup page that lists every app its draft still needs, and a person reaches it from a connection step's
humanLinkafter signing in. Connecting an app there, or asking the client to connect it, fills every step of that app in the draft at once, so the person never opens the editor once per step. A connection the Setup page can't add, such as one for a tool attached to an AI Agent, keeps its link to the node in the editor. The Setup page lists the workspace's own connections only: a connection your organization shares with the workspace is picked in the step's connection field in the editor, and every connection hand-off (the step's instructions,personActionRequired, the setup card, thepropose_changesdescription) says so. - In-chat setup card. In assistants that support MCP Apps,
validate_draftandpreview_publishalso show a small setup card in the chat, drawn from thesetupStatusfield of their result. It lists each app still to connect, with a Set up button that opens the workflow's Setup page for that app and a note that a shared connection is picked in the editor instead, the number of other items the assistant will walk the person through, and the apps waiting on your client, which never hold publishing back. While it is on screen and setup is not finished, the card checks again by callingvalidate_draft, first every 5 seconds and then less often, for at most 40 checks (about 17 minutes); these checks count against the usual limits. When the last item is done, it posts one message into the chat so the assistant can carry on and publish. Assistants without MCP Apps ignore the card, andsetupStatusis in the result for any assistant to read. While Setup-page items remain,validate_draftandpreview_publishalso returnpersonActionRequired: one message telling the assistant to stop and hand the person the Setup page link, so it does not keep validating. - Irreversible effects need agreement. Registering a webhook that turning the workflow off cannot remove (Instagram), or emailing queued connection requests to your clients, cannot be undone by turning the workflow off.
set_workflow_stateasks for apreviewHashbefore an activation with such an effect, or an expose or unexpose that changes another workflow's slug: without one it returnspreview-requiredwithdetails.mustConfirm, one sentence per effect to show the person. Turning a workflow off never needs one. - Turning on runs the version that was last live.
set_workflow_statewithactivateturns a workflow back on with the version that was running when it was turned off, not the newest saved one. If newer saved changes exist, the result'sunpublishedChangesnames both versions and carries amessageto show the person, on both the dry run and the apply. Those changes stay unpublished until you callpreview_publish, thenpublish. - Deleting takes the confirm step.
delete_workflowwithoutpreviewHashdeletes nothing: it returnspreview-requiredwithdetails.mustConfirm— the workflow's name, how many versions go with it, that its run history will no longer be viewable, and, if it was ever published, that its triggers (schedules and webhooks) are removed for good, with a note when one is an Instagram trigger, whose unsubscribe is best-effort — anddetails.freshHash. Show the person those sentences; if they agree, calldelete_workflowagain withpreviewHashset todetails.freshHash. If the workflow or any of its versions changed in between, the second call returnspreview-stalewith the new hash and deletes nothing. A workflow that is turned on, or still being published, is refused withdeploy-refusedandrefusalCode: "workflow-live": turn it off first withset_workflow_stateand{ "kind": "deactivate" }, then delete it. - Who may do what. Every tool acts as the person the connection belongs to, on top of the tool's level. Editing a draft needs Editor access to the workflow. Publishing, turning a workflow on or off, exposing it and deleting it need Manager access to the workflow; without it the call is refused with
refusalCode: "missing-workflow-permission". Publishing also needs access to everything the workflow uses: Runner access to each app connection, permission to write rows in each table or database table, Editor access to a database a step queries with its own SQL, and Runner access to each sub-workflow. A step that picks its item with an expression needs that access to every item of that kind in the workspace. Anything missing is refused withrefusalCode: "missing-item-access"anddetails.missingItems, one{ name, needs, ref }per item: show the person the names, and someone who can share each item (its Manager, or an account Owner or Admin) must give them access. Creating, editing and publishing a form need a workspace admin somewhere in the account.
Build a form
An assistant can make a form, fill in its fields, and publish it, with the same four tools it uses for workflows, each called with type: "form":
create_workflow_draft({ type: "form", name: "Lead Intake" })makes a draft form with one starter field, exactly like New form in the app. It returns the form'sformId, its fields, itsformHashand the form builder link.propose_changes({ type: "form", formId, baseFormHash, changeSet })edits the draft. Every change set is checked against the same rules the form builder uses, all or nothing: if anything is wrong, nothing is saved. A malformed change set comes back asinvalid-argumentsnaming the fields to fix (details.issueslists them); an op that can't apply is reported on its own, so fix it and send again; problems with the finished form (its rules and its size) are listed together.preview_publish({ type: "form", formId })shows what going live means: anything still blocking it, the public link, and the fields added, removed or changed since it was last published.publish({ type: "form", formId, previewHash })makes the public page start taking submissions and returnsoutcome: "published". It is refused withpreview-staleif the form, or anything blocking it, changed since that preview.
A workflow then starts from the form with a Form Submission trigger whose formId is the new form. The workflow can't be published until the form is.
A form change set is a summary and a list of ops, applied in order. Fields are addressed by their key and pages by their number, as describe returns them; each op sees the form as the ops before it left it, so page numbers and positions shift as pages and fields are added or removed:
| Op | What it does |
|---|---|
add-field | Adds a field on a page, before position index (the end when left out). |
update-field | Changes a field's settings: set replaces each named setting whole, by the names add-field uses (to change one choice, resend the whole options list, built from the choices describe returns), and set.key renames the field; unset removes optional settings. A field's type can't change; remove it and add a new one. |
remove-field | Removes a field. |
move-field | Moves a field to another position on its own page. |
add-page | Adds an empty last page, with an optional title and description; the page that was last stops being the last step. |
update-page | Changes a page's title, description, whether it is the last step (terminal), and its branchRules: where to go next, by the number of another page. unset removes the title, the description or the rules. |
remove-page | Removes a page and its fields. A form always keeps one page. |
update-form | Changes the form's title, description or submitButtonLabel; unset removes the description. |
- Field types:
short_text,long_text,email,number,date,single_select,multi_select,checkbox,radio,file,signature,rating,address,phoneandhidden, each with the settings the form builder offers for it. A new or renamed field'skeyis snake_case: a lowercase letter, then lowercase letters, digits or underscores, at most 64 characters. A key built in the app in another shape still works for addressing the field. - Conditions: a field's
showIfand a page's branch rules are one comparison, such as{ "==": [{ "var": "budget" }, "over_20k"] }, or anand/orlist of up to 20 comparisons — the shape the form builder can show, so a person can still edit every rule. A comparison's value is text (up to 200 characters), a number,true,falseornull. A field'sshowIfcan't use the field itself, and a branch rule may also betrue(always go there). - Size: a change set can leave a form with at most 200 fields and 50 pages, so
describecan always show every field. A larger form built in the app can still be edited, as long as the change doesn't raise a count that is already over its limit. - Drafts only. An assistant edits draft forms only. A published form's page shows its saved fields straight away, so a person changes a live form in the form builder (or unpublishes it first). On a published form,
propose_changesanswersform-status-refusedwith a link to the form builder. - Reload an open form builder. The form builder saves the whole form. If you have the form open while an assistant edits it, reload the page before you change anything, or your save replaces the assistant's changes.
Build a chatbot
A website chat is a chatbot plus a workflow whose Chat message received trigger answers it. An assistant builds both with the same four tools, the chatbot ones called with type: "chatbot":
create_workflow_draft({ type: "chatbot", name })makes a draft chatbot in the workspace, exactly like New chatbot in the app. It returns the chatbot asdescribeshows it: its settings, itschatbotHash, its public link and embed snippet, and the chatbot builder link (editorUrl).propose_changes({ type: "chatbot", chatbotId, baseChatbotHash, changeSet })changes a draft chatbot'sname,title,greeting,suggestedQuestions,allowedOrigins(the websites that may embed it) andconsentnotice. A setting left out keeps its value, andnullclears the title, the greeting or a consent setting. The same rules as the chatbot builder apply, and nothing is saved when one fails. A live chatbot is changed by a person in the chatbot builder:propose_changesanswerschatbot-status-refusedwith the builder link.- A person adds the chatbot's Privacy Policy link in the chatbot builder. An assistant never sets it:
propose_changesrefuses it, and until it is setpreview_publishlists theprivacy-policy-requiredblocker with the builder link. preview_publish({ type: "chatbot", chatbotId })shows what going live means: the websites allowed to embed it, the Privacy Policy link, the public link and embed snippet, the workflow that answers it, and that anyone with the link can chat and each message counts toward the account's usage.publish({ type: "chatbot", chatbotId, previewHash })makes it live, asking the person first when the account turned on Publish workflows, forms and chatbots, or turn workflows on or off.- In the workflow, add a Chat message received trigger and a
bind-chatbotop naming it and the chatbot.validate_draftlists a Chat trigger that answers no chatbot inneedsChatbot; that step is the assistant's own to finish, so it never asks the person to stop.
Write the chatbot's text as the business it serves.
Check whether a workflow is live
describe({ id: "deployment:<workflowId>" }) answers for any workflow the connection reaches — published or not, exposed or not. It returns the active and last-active version ids, the newest version's status (for example pending-eval), whether it is exposed and under which slug, the setup steps still outstanding, and one entry per trigger with its phase:
| Phase | Meaning |
|---|---|
off | The workflow is not turned on. |
provisioning | Still being set up — a provider webhook registering, a phone number being pointed at the workflow, a schedule being created. |
needs_setup | Live, but waiting on a person — usually the webhook URL has not been registered with the sending system yet. The trigger's detail and the setupRequired steps say what to do. |
live | Ready to start runs. |
failing | On and still checking, but its recent checks or run starts failed. The detail says why in one sentence (for example reddit.com refused the request (403 Forbidden).). Nothing has stopped: the next good check clears it. |
failed | Stopped and will not recover by itself — for example the connection was revoked. The detail names the fix. |
settled is true once no trigger is provisioning. While it is false, recheckAfterSeconds says when checking again is useful — poll until settled is true. A failing trigger is settled.
A trigger that has recorded failures also carries health: its state (healthy, degraded or failed), consecutiveFailures, the same one-sentence lastError, and lastFailureAt. An RSS or polling trigger carries nextCheck: { "kind": "scheduled", "at": "<time>" } for the next real check, off when the workflow is off, push for a feed that pushes its updates, pending for a just-published trigger whose first check is a few minutes away, or unscheduled when no check is planned. It is left out when it could not be read.
Read a workflow's trigger checks
Every time the platform checks an RSS feed or polls an app, it records a check. find({ type: "trigger_check", workflowSlug }) (or workflowId on a connection that can author) lists a workflow's checks, newest first, a page at a time. Each item has:
checkedAt,outcome(activated,empty,nothing_new,failedordeferred),itemsFoundandnewItems, the trigger'snodeIdandtriggerKind;runIdwhen the check started a run;- for a failed check,
error: the plainsummarysentence, ahint, thestatusCodeandstatusText, thehost, thefailureKindand thecode. A connection that can author also gets the technicalmessage.
Pass an item's id to describe for the same record plus run (a run:<id> you can pass straight to describe) and the activation id. A connection reads a workflow's checks exactly when it can read that workflow's runs; any other id answers not-found. total is null, and truncated is true only for a workflow with more trigger subscriptions than one search reads.
{ "type": "trigger_check", "workflowSlug": "rss-reddit-leads", "limit": 2 }Read forms, tables, templates and app connection health
A connection that can author also reads the things a person builds with, so an assistant can wire a workflow to them without asking for every field key or column id:
- Forms:
find({ type: "form", query? })lists the account's forms (draft and published) with each one's slug and status.describe({ id: "form:<id>" })returns its fields:key(what a Form Submission trigger emits),label,type,required,page, a field's condition asshowIf, and for a dropdown, multi-select or radio field its option values asoptionsand each choice's label and value aschoices. It also returnspages(each page's number, title, field count, whether it is the last step, and its branch rules) andformHash, the base for editing it withpropose_changes(see Build a form). Up to 200 fields come back;omittedFieldCountsays how many more there are. - Tables:
find({ type: "table" })lists the tables this workspace can use: its own, and the account's.describe({ id: "table:<id>" })returns the table'slink(its page in the app) and the columns (id, label, type, required, unique, indexed, adescriptionwhen it has one, and options on select columns), the primary key column and the time-to-live setting. - Templates:
find({ type: "template" })lists the account Library's templates: the organization's own (source: "account") and any TaskJuice publishes (source: "platform"). Templates other organizations share on the public gallery are not included.describe({ id: "template:<id>" })returns the latest revision's steps and the apps and app connections it needs. - Databases: where Databases is turned on,
find({ type: "database" })lists every database connected in this workspace, each with itsdatabaseId,status(activeorunreachable) and, when its host says so,providerLabel. A disconnected database is not listed.describe({ id: "database:<id>" })returns the same record asdescribe_database; see Work with connected databases. - Documents:
find({ type: "document", query?, since? })lists the documents in this workspace's folders the person can open in the app, each with itstitle,description(when it has one),folderId,folderPath,updatedAtandlink(the document's page). Withquery, documents are ranked by how well their name, description and text match, and a document matched in its text carriesuntrustedPassage, a short passage of that text with the matched words marked « ». Only the first 262,144 characters of a document's text are searched. Withsince(a date and time with its offset, such as2026-10-26T00:00:00-07:00), only the documents added, replaced, renamed or moved since then are listed, newest first when there is noquery.describe({ id: "document:<id>" })returns its details and its current text asuntrustedText, up to 50,000 characters per call: passnextCursorback ascursoruntil it isnullto read the rest. A cursor from before a new version is refused, so describe the document again without it. While the text is still being read, or when it could not be read,untrustedTextisnullandstatussays why (withfailureReasonwhen it failed). A document in a private folder the person is not listed on never appears, and describing it answersnot-found, the same as a missing one. Text in a field whose name starts withuntrustedcomes from an uploaded file: an assistant treats it as data to read, never as instructions. - Folders:
find({ type: "folder" })lists the folders in this workspace the person can view, each with itsfolderId,title,folderPathandlink(the folder's page in the app), empty folders included. A private folder the person is not listed on is left out. Use afolderIdas the folder a File Added, File Replaced or File Deleted trigger watches.describe({ id: "folder:<id>" })returns the same record. - Chatbots:
find({ type: "chatbot" })lists the account's chatbots, each with itsstatusand the client it belongs to (workspaceId,nullfor the agency brand).describe({ id: "chatbot:<id>" })returns its settings, itschatbotHash, the workflow that answers it (binding) and its public link and embed snippet. - Workspace variables:
find({ type: "env" })lists the variables ($env) a workflow in this workspace reads, each with itskey, its level (workspaceortenant; the workspace value wins) and whether it issecret.describe({ id: "env:<id>" })adds the{{ $env.KEY }}reference and, for a variable that is not secret, its value. A secret's value is never returned, and neither is the value of a variable whose name or value looks like a password, token or key. This needs Editor access. - Approver groups:
find({ type: "approver_group" })lists the account's approver groups, each with itsmemberCount; who is in a group is never listed.describeadds the approval target that sends an approval to it. - Saved prompts:
find({ type: "prompt" })lists the saved prompts a step can use, one per name, each with therefto put in a step's prompt field: the bare name when the prompt has aprodversion, otherwise the name pinned to its newest version.describe({ id: "prompt:<id>" })returns the version thatrefuses, with its body (up to 8,000 characters;bodyTruncatedwhen cut) and variables. Prompts are read-only over MCP. - App connections:
find({ type: "connection" })lists every app connection this workspace can reach, broken ones first, each withstatus,healthyand a plainreason. An account connection appears only once it is shared with this workspace, and only to account admins, the same as on the Apps page.describe({ id: "connection:<id>" })adds token-refresh timing andhumanLink, the connection's page in the app, where a person reconnects it or finds where to re-enter the credential. It never returns a secret or a token.
reason says what happened, then what a person does next:
status | healthy | What happened |
|---|---|---|
active | true | Nothing: reason is null. |
pending | false | Setup was started but never finished. |
error | false | The last attempt to use or refresh this connection failed. |
reauth-required | false | For a sign-in (OAuth) connection: the sign-in expired. For any other kind: the saved credential stopped working. |
revoked | false | It was disconnected. |
| Credential kind | What a person does |
|---|---|
| Sign-in (OAuth) | Reconnect it on its connection page. |
| API key, basic, custom or DSN | Re-enter it from a node that uses it in the workflow editor. |
When healthy is false, show the person the reason and the humanLink.
Build and fill tables
An assistant can read a table's rows at Viewer, add, change and delete them at Runner, and create a table or change its columns at Editor — each only where the person has that access to the table too. Tables have no draft: every change is live as soon as it saves, and the table editor's own save rules decide what a change may do.
A typical exchange:
edit_table({ create: { name: "Leads" }, changes: [...] })adds Email (the primary key), Name (required) and Status (a dropdown of new, contacted and won, indexed). The answer is the table with each column's id.table_rows({ tableId, action: { kind: "insert", rows: [{ values: { "<Email column id>": "ada@example.com", ... } }] } })adds rows. Each row comes back with itsrowId— the Email, because Email is the primary key.table_rows({ tableId, action: { kind: "query", where: { columnId: "<Status column id>", equals: "new" } } })finds the rows still marked new. To find a range, pass a list. On a timesheet table,where: [{ columnId: "<Hours column id>", gt: 40 }, { columnId: "<Week of column id>", gte: "2026-10-26", lt: "2026-11-02" }]finds the rows over 40 hours in the week of October 26.table_rows({ tableId, action: { kind: "update", rows: [{ rowId: "ada@example.com", values: { "<Status column id>": "contacted" } }] } })changes one.table_rows({ tableId, action: { kind: "delete", rowIds: ["bob@example.com"] } })answerspreview-requiredand lists the row. The assistant shows the person, then calls again withpreviewHashset todetails.freshHash, and the row is deleted.
Values are always keyed by column id, never by label, so renaming a column breaks nothing.
| Change | Undo | What it needs |
|---|---|---|
| Create a table | Delete it in the app (Delete table on the tables list) | Editor |
| Add a column (optional) | Remove it (confirm step) | Editor |
| Rename a column | Rename it back; ids and workflow references never change | Editor |
| Retype a column | Retype it back: stored values are never rewritten, and the save rules refuse any change a stored value cannot survive | Editor |
| Remove a column | None. Its values are never shown again, adding the column back does not restore them, and workflow steps that write it fail until changed | Editor, then the confirm step |
| Insert rows | Delete them (confirm step) | Runner |
| Update rows | None for the overwritten values, the same as a workflow's Update row step | Runner |
| Delete rows | None | Runner, then the confirm step |
How it behaves:
- The confirm step. Deleting rows or removing a column first answers
preview-requiredwithdetails.mustConfirm, one sentence per row or column that will be lost, and changes nothing. Only a second call carryingpreviewHashset todetails.freshHashgoes ahead. If a row or the table changed in between, the second call answerspreview-stalewith the new hash and changes nothing. - Filters.
whereis one condition or a list of up to 4, all of which must hold. Each isequals(any column except JSON, long text and multi-select), or one or two ofgt,gte,ltandlteon a number, date or datetime column. Dates are"YYYY-MM-DD"; datetimes need a time and an offset, e.g."2026-12-01T00:00:00-08:00". Anequalson an indexed column is a fast lookup; anything else reads the table in pages. A page can come back short, or even empty, whilenextCursoris set (withstoppedEarly: truewhen it stopped to stay fast): keep calling withcursoruntilnextCursorisnull. Withoutwhere,querypages through every row (limitup to 50, default 20). A cursor works only with the samewhereit came from. A column can be indexed only while the table has no rows — withedit_table, or in the table editor. - Writes stop at the first failure. Rows are written one at a time, in order. The answer lists the rows written, the one that
failed(its index, code and message), and how many werenotAttempted. Nothing before the failure is undone, so fix the failed row and send it and the rest again. - Create-only settings.
requiredandprimaryKeycan be set only when creating a table. An indexed or unique column can be added or removed only while the table has no rows. - Account tables.
create: { scope: "account" }makes a table every workspace of the account can use. Creating or changing one, or writing its rows, needs an account admin or owner. - Archived tables can still be read with
query, but not changed.
Run on files already uploaded
A document trigger starts on an upload or a replacement, not on files that were already there. run_workflow({ workflowSlug, documents: [id, …] }) runs a workflow on those files, one run per file, each with the same trigger data an upload of that file's current version would give it.
- Which workflows. Every trigger of the workflow must be File Added or File Replaced, all on one folder. Anything else is refused as
documents-refusedwithnot-accepted, because a run started this way could enter through any of its triggers. - Which files. Up to 25 document ids per call, each once, each directly in the folder the workflow watches. A file in a subfolder is refused as
outside-folder, and a file still being read astext-pending. A file the person cannot open answersnot-found, the same as one that does not exist. A refusal starts nothing. - What comes back.
documentRunsat once, without waiting for the runs:runswith eachdocumentIdandrunId,notStartedwith each file that did not start and itsreason, and ahint. A file too long to run this way is listed innotStartedastext-too-large; it runs the next time it is uploaded or replaced. A file listed astime-budgetwas not reached before the call's time ran out: send it again. Run limits apply to each run, so a refused one is listed there too. - Not with
inputoridempotencyKey. A workflow that replaces rows by source document converges on the same rows when a batch is repeated; each run still costs AI usage.
Work with connected databases
Where Databases is turned on for your account, an assistant also gets three tools for a client's own Postgres database. Where it is off, these tools are not listed and a call to one answers that it is not available. Like the other authoring tools, they need a connection of someone with an account role, on a plan that includes authoring. Reading needs Viewer, writing rows needs Runner on that table, and drafting structure changes needs Editor on the database, each only where the person has that access too.
| Tool | Access | What it does |
|---|---|---|
describe_database | Viewer | Reads one database's tables, columns (with their types and keys, which are filterable — a database_rows list filters on at least one of them — and which are sortable, where its other filters can go), links and indexes, whether unpublished structure changes (a draft) are waiting, and the database's current or last embedding fill. It returns no row data. |
database_rows | Viewer | One table, one action per call: list (up to 100 rows; filters are ANDed, at least one on a filterable column and the rest on any sortable column; equals, or gt/gte/lt/lte on number, date and time columns, e.g. filters: [{ columnId: "<renews_on id>", gte: "2026-12-01", lt: "2027-01-01" }]; a timestamptz bound needs an offset and a timestamp bound none), get (one row by its key), find_similar (the rows closest in meaning to a search text, on a vector column), insert, update (by key and version), delete (by key and version) and fill (writes embeddings into a vector column's empty rows from 1 to 10 text columns). list, get and find_similar take columns to return only some columns. Values are keyed by column id, never name. |
edit_database_schema | Editor | Drafts structure changes to the database: it writes them to the database's draft, the same draft the app's Schema tab edits. It never changes the live database; a person reviews and publishes the draft in the app. |
The assistant finds a database's id with find({ type: "database" }), which lists every database connected in the workspace. Table ids come from describe_database.
- Deleting rows takes the confirm step. The first
deletecall deletes nothing: it answers with what will be deleted and a single-use confirm token. Show the person that list; only a second call carrying the token deletes the rows. Deleted rows cannot be restored. - Structure changes take it too, then a person publishes. The first
edit_database_schemacall plans the change set against the published structure and writes nothing; it answers with what the person must agree to and a token. The second call, carrying the token, saves the draft. Publishing that draft is done by a person in the app. - Searching by meaning.
find_similarturns the search text into an embedding and returns the closest rows first, 5 by default and up to 50, each with adistance: smaller is closer. No cutoff is applied, so the closest rows come back even when none of them is relevant. TaskJuice pays for the embedding, never a workspace key and never Included AI, within the account's daily AI embedding limit; the vector column must be filled first, withfillor from the table's page. To change a match, read it withlistfiltered on its primary-key column to get its key and version. - Filling takes the confirm step. The first
fillcall starts nothing: it answers with the estimate (how many rows, the embedding model and the estimated tokens) and a single-use confirm token. Only a second call carrying the token starts the fill. It runs in the background on the rows still empty when it runs;describe_databaseshows its progress, and a person can stop it on the table's page. - A row that changed is refused.
updateanddeletecarry the row's version aslistorgetreturned it; if the row changed since, the call is refused, so read it again first. - The rows stay in your client's database. Reads run in a read-only transaction, and writes go through the same checks and workspace rights as editing rows in the app.
Retired tools
These tools were removed. A client that still lists one can call it, and gets entitlement-denied (not retryable) with a message saying the tool was retired and a hint naming its replacement. A retired call is not counted against your budget. If the replacement is not in the assistant's tool list either, reconnect the connector to refresh it.
| Retired tool | Use instead |
|---|---|
list_workflows | find({ type: "workflow" }) (type draft for drafts) |
describe_workflow | describe({ id: "workflow:<slug>" }) for inputs, describe({ id: "deployment:<workflowId>" }) for deployment status |
get_run | describe({ id: "run:<runId>" }) |
list_runs | find({ type: "run" }) |
list_skills | find({ type: "skill" }) |
get_draft | describe({ id: "draft:<workflowId>" }) |
describe_node | describe({ id: "node:<canonical>" }) |
ground_apps | describe({ id: "app:<app slug>" }) for one app's nodes, find({ type: "node", query }) to search the catalog |
<prefix><workflow-slug> | run_workflow({ workflowSlug: "<workflow-slug>", input }) — the hint carries the slug |
A per-workflow tool name was your account's prefix (taskjuice_, or your own with a connector domain) followed by the workflow's slug, so taskjuice_send_invoice is answered with run_workflow({ workflowSlug: "send_invoice", … }).
Errors
Every tool failure is a structured result with a code, a message, a retryable flag, and usually a hint naming the fix.
| Code | Meaning | Retry? |
|---|---|---|
invalid-arguments | An argument failed validation; the message names up to three fields, and details.issues lists up to five; fix them all in one retry. | Yes, corrected |
not-found | No such workflow, run, draft, skill, catalog app, form, table, template, app connection or approval in this connection's scope (an approval you cannot decide answers the same). For a template, the hint adds that community templates from the public gallery cannot be read here; for an app connection, that an account connection appears only after it is shared with this workspace, and only to account admins. | No |
entitlement-denied | The tool isn't available to this connection (plan, role, or, for control_run, a client's own sign-in; a retry when the person the connection acts as — for an API key, its creator — cannot start runs in that workspace), or the connection's level doesn't allow it — then details.requiredLevel names the level it needs — or the person lacks access to the item, or the tool was retired, and the hint names its replacement (see Retired tools). | No. If details.requiredLevel is set, see below |
rate-limited | An hourly bound, the account's daily limit, or an API key's own daily cap was hit — or, for decide_task, more than 60 approval decisions by the same person in a minute (in the app and through assistants together). | Hourly bound: yes, after the hint's backoff. Daily limit or key cap: no, it resets at 00:00 UTC; the hint says what the user can do. |
run-refused | The platform declined to start the run (limits, safety, disabled workflow). | Not this session |
proposal-rejected | The change-set violated the workflow schema (every violation is listed), or a form change set broke the form builder's rules or the size limit (see Build a form). | Yes, corrected |
stale-draft | The draft or form changed since the hash you proposed against; details.freshHash is the current one. | Yes — re-read with describe and rebase |
compile-refused | validate_draft found a blocker, or propose_changes could not set up a trigger step (nothing was saved); the message names it. | Yes, after repairing the draft |
payload-too-large | Tool arguments exceeded 256 KB. | Yes, smaller |
invalid-input | run_workflow input didn't match the workflow's schema; the message names the field. | Yes, corrected |
preview-stale | The workflow, form, table or rows changed after the preview; details.freshHash is the current hash. | Yes — preview again, then retry |
preview-required | The change needs the person's agreement; details.mustConfirm lists what to show them, details.freshHash the hash to send. | Yes, with the hash once they agree |
internal-error | The tool failed on our side; the cause is never returned. | Once; the result carries an errorId to quote if it fails again |
deploy-refused | Publishing, the state change or the delete was refused; details.refusalCode says why and the hint says what to do. | Depends on the code — see below |
form-status-refused | The form is published (an assistant edits drafts only; the hint links the form builder) or archived (it can't be changed or published). | No |
chatbot-status-refused | The chatbot is live: an assistant changes draft chatbots only, and the hint links the chatbot builder. | No |
approval-refused | decide_task could not decide: details.refusalCode is self-approval-forbidden (you started this run), consumed (someone else decided it), expired, edit-field-not-editable (details.fields names them), edit-invalid (details.violations says why), edit-too-large, edit-slots-exhausted or preview-unavailable (this step has no inputs to edit). Nothing is decided. | edit-field-not-editable, edit-invalid and edit-too-large: yes, corrected; preview-unavailable: yes, without edits; the others no |
run-control-refused | control_run could not act: details.refusalCode is terminal, awaiting-approval, state-changed or not-ready, or for a retry from-step-unavailable (retry with mode: "from-start"), not-retryable (the run did not fail, was stopped by a rejected approval, was started by another run, its original trigger data is no longer available, or its workflow is off or paused for safety; details.retryReason says which), quota-exceeded (60 retries a minute per workspace), retry-failed (the retry could not start; the message says why) or retry-unconfirmed (whether it started is not known yet). | state-changed, not-ready, quota-exceeded and retry-unconfirmed yes (a repeated retry never starts a second run); the others no |
step-test-refused | test_step could not test the step: details.refusalCode is not-testable, invalid-step, model-not-allowed, missing-item-access (the person can't use an item the step uses, such as its app connection; someone who can share it must give them access), billing-plan-required, too-large, timed-out, busy or execution-failed, and the hint says what to do. After timed-out the step may still finish, so check the target system before testing again. busy means step tests are full right now and nothing ran: wait the seconds the message names, then test again. | |
documents-refused | run_workflow with documents started nothing: details.refusalCode is not-accepted, outside-folder or text-pending (try again in a minute); for the last two, details.documentIds names the files. | Only text-pending |
move-refused | move_document moved nothing: details.refusalCode is outside-subtree or wider-access. | No |
table-refused | edit_table or table_rows was refused; details.refusalCode says why and the hint says what to do — see below. | Depends on the code — see below |
variable-refused | create_variable added nothing: details.refusalCode is looks-secret (a person enters it on the Environment page, details.humanLink), key-exists or key-cap. | No |
A tool the connection's level doesn't allow comes back as entitlement-denied with a details object, so an assistant can explain it without parsing the message: requiredPermission (the permission the tool needs), requiredLevel (the lowest level that has it), consentLevel (the level the connection was allowed) and limit (the person's assistant limit).
{
"ok": false,
"code": "entitlement-denied",
"message": "publish needs Manager access, which this connection was not allowed.",
"hint": "Ask the person to reconnect this assistant and choose Manager access on the Connect screen. Call whoami to see what this connection can do.",
"retryable": false,
"details": {
"requiredPermission": "workflow.publish",
"requiredLevel": "manager",
"consentLevel": "editor",
"limit": "same"
}
}The hint names the fix for the cause. If the person's assistant limit is below the level, an account Owner or Admin can raise it. Otherwise, reconnect a sign-in connection, or, for an API key, ask for a new key at that level: a key's level is fixed when it is created. When the connection's level allows the tool but the person lacks access to one item, the answer is entitlement-denied naming the level they need on it, and someone who can share it (its Manager, or an account Owner or Admin) has to give it to them. A tool the connection doesn't have at all answers Tool "<name>" is not available. with no details, the same as a name that doesn't exist (a retired name answers that it was retired instead). That covers a tool your plan or role doesn't include. whoami shows the connection's level, limit and workspaces.
deploy-refused codes an assistant can clear in the conversation (by changing the draft, waiting, or finishing setup steps) come back with retryable: true. Codes that need a person with more access, a plan change, or a reconnect come back false. Two of those are about access: missing-workflow-permission (the person needs Manager access to the workflow to publish it, turn it on or off, expose it or delete it) and missing-item-access (the person can't reach something the workflow uses; details.missingItems lists each as { name, needs, ref } — see Who may do what under Publish and state tools). One of those is mfa-step-up-required: your account requires two-factor authentication, and the assistant's connection was made before you verified it. Remove the TaskJuice connector in the assistant (Claude: Settings → Connectors; ChatGPT: Settings → Apps & Connectors), add it again, and complete the two-factor check when sign-in asks — then publish again.
table-refused codes:
refusalCode | When | What to do | Retry? |
|---|---|---|---|
archived | The table is archived, so it can't be changed. Its rows can still be read with query. | Tell the person the table is archived. Use another table, or create one with edit_table. | No |
not-permitted | The person's account role can't make this change (an account table needs an account admin or owner). | Tell the person; an account admin or owner has to make this change. Reconnecting won't help. | No |
plan-limit | Creating the table would pass the plan's table limit. | See details.planLimit. An account admin can upgrade the plan, or the person can delete a table they no longer use. | No |
schema-invalid | A change can't be applied, or the table editor's save rules refuse it; the message names the change. | Fix the change the message names and call again. describe the table to see its columns. | Yes |
cell-invalid | A value doesn't fit its column, names a column the table doesn't have, a required column is missing, or an update changes the row's primary key. | Fix the value to fit its column (describe the table for types and options) and call again. | Yes |
row-not-found | A row to delete doesn't exist (the message names up to five). | Query the table for its current row ids, then call again. | No |
page-too-large | A query page is over 256 KB. | Call again with a smaller limit. A row too large to return on its own can be seen in the app. | Yes |
duplicate-key | An inserted row's primary key already exists. | A row with that key exists. Query it and update it instead. | Yes |
unique-conflict | A value another row already holds in a unique column. | Another row holds that value. Use another value. | Yes |
row-limit | An insert would pass the plan's row limit. | Tell the person; they can delete rows or upgrade the plan. | No |
storage-frozen | The account is out of state storage, so new rows can't be saved (an insert or update). | Tell the person; the account owner can delete tables or agent memory they no longer need, or upgrade the plan. | No |
row-limit, storage-frozen, duplicate-key and unique-conflict only ever arrive as a write answer's failed.code, never as a refused call, and so can cell-invalid (one row of an insert or update) and row-not-found (one row of an update): the rows before the failed one are saved.
Limits
Tool calls are counted per account per day, shared across every connection and key — adding credentials never adds budget. Stopping, resuming or retrying a run with control_run is never counted against it, so an account that has used up its day can still stop runs.
| Plan | Tool calls per day |
|---|---|
| Pro | 5,000 |
| Team | 10,000 |
| Business | 30,000 |
On top of the daily budget, hourly bounds protect against runaways: 10,000 calls per account, and per-credential class caps (3,000 reads, 600 runs, step tests and approval decisions (decide_task), 600 authoring calls including edit_table and table_rows, 300 mapping previews, and 60 publish calls — preview_publish, publish, set_workflow_state and delete_workflow share that one budget). control_run has no class cap and is not counted against the daily budget or a key's daily call cap; only the 10,000-per-account bound, which every call shares, applies to it. A call refused for a missing permission still counts, against the daily budget and these hourly bounds in the refused tool's class (for control_run, the 10,000-per-account bound only), so an assistant retrying a refused tool is capped like any other. Form calls count in their tool's own class: creating and editing a form as authoring calls, previewing and publishing one as publish calls. find and describe are counted in the class of the type they read: drafts, nodes, apps, forms, tables, templates and app connections as authoring calls, everything else as reads. A find or describe call for a type this connection can't read is refused and still counts, in that type's class. A call to a tool that isn't available at all is not counted. An API key's optional daily call cap bounds that key's share of the account budget — it lowers what one key can spend, never raises the total.
Authoring is included on every plan.
A table_rows call reads or writes at most 50 rows, and a query page returns at most 256 KB.
Workflow runs started through MCP are normal runs — they appear in run history and count toward your plan's usage like any other run.
Next steps
- Connect an AI agent with MCP — setup, exposing workflows, API keys
- Usage and overage — how runs are metered and billed