Skip to main content

Playbooks

MCP tools for the Playbooks module. See the Playbooks module docs for permissions and data model.

list-playbooks​

List playbooks

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

create-playbook​

Create a playbook

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
policy_idsanyyesThe policies every execution of the version runs under.
namestringyesHuman-readable name, unique per project
descriptionstring | nullnoWhat the playbook is for
definitionanyyesThe nodes and how their inputs are sourced
version_labelstringnoOptional tag for version 1, e.g. initial

validate-playbook​

Validate a playbook definition

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoAlso check the references against this project: the upstreams (UNKNOWN_UPSTREAM, and the MISSING_NODE and UNKNOWN_FIELD of what an upstream node pulls) and the executors (EXECUTOR_NOT_FOUND, EXECUTOR_ACTION_REQUIRED, EXECUTOR_ACTION_UNAVAILABLE, EXECUTOR_TOOL_UNSUPPORTED, TRANSFORMATION_TOOL_UNSUPPORTED).
playbook_idstringnoThe playbook the definition would update, so an upstream reading it back is UPSTREAM_CYCLE. Requires project_id.
definitionanyyesThe definition to check

get-playbook​

Get a playbook

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID

update-playbook​

Update a playbook

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
namestringnoHuman-readable name, unique per project
descriptionstring | nullnoWhat the playbook is for
definitionanynoReplaces the whole definition; a change archives a new version
policy_idsanynoReplaces the policies the version runs under; a change archives a new version.
version_labelstringnoOptional tag for the version this write creates. Ignored when the write changes no definition, since no version is archived.
expected_versionanynoRefuses the write unless the playbook is at this version.

delete-playbook​

Delete a playbook

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID

list-playbook-versions​

List a playbook's versions

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

get-playbook-version​

Fetch an archived playbook version

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
versionnumberyesThe archived version number

restore-playbook-version​

Restore an archived playbook version

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
versionnumberyesThe archived version number
labelstringnoOptional tag for the new version. Defaults to restored from vN.

create-playbook-case​

Create a case

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
subjectstringyesWho or what the case is about, as you name it
actor_idstringnoThe end user the case belongs to, an actor of the playbook's project; an unknown one is 400 ACTOR_NOT_FOUND. Omitted, the case belongs to no actor.
upstreamsobjectnoThe case bound to each of the playbook's declared upstreams, by name: every declared name and no other, each a case of the declared playbook. Bound at create and fitted to the version at each upgrade; empty when the version declares none.

list-playbook-cases​

List playbook cases

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
playbook_idstringnoOnly the cases of this playbook
actor_idstringnoOnly the cases that belong to this actor. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent lists the cases of the end user it serves only.
subjectstringnoOnly the cases whose subject is exactly this
automation_statusarray<string>noOnly the cases in these automation statuses. Repeat the parameter to OR values. A value outside the enum, empty string included, is a 400.
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

get-playbook-case​

Get a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.

delete-playbook-case​

Delete a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.

write-playbook-case-inputs​

Write a case's inputs

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
inputsarray<object>yesThe writes, applied all or none
waitbooleannoAnswer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away

get-playbook-case-missing​

List what a node still needs

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
node_idstringyesThe ID of the node to reach, usually a final node

list-playbook-case-entries​

List a case's entries

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
node_idstringnoOnly the entries of this node
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

run-playbook-case-node​

Run a node of a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
nodestringyesThe ID of a node of the case's playbook version
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
waitbooleannoAnswer once the executor settles or parks instead of right away

list-playbook-case-executions​

List a case's executions

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
node_idstringnoOnly the executions of this node
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

get-playbook-case-execution​

Get an execution

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
execution_idstringyesThe execution ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.

export-playbook-case-node​

Export a final node

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
nodestringyesThe ID of a node of the case's playbook version
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
transformationsarray<string>noThe names of the transformations to render; every one the node declares when omitted
revisionnumbernoThe output or confirmation of the node to render; its current output when omitted

list-playbook-case-exports​

List a case's exports

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
node_idstringnoOnly the exports of this node
transformationstringnoOnly the exports of this transformation
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

get-playbook-case-export​

Get an export

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
export_idstringyesThe export ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.

upgrade-playbook-case​

Upgrade a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
versionnumbernoThe version to move the case to; the playbook's current one when omitted
upstreamsanynoA case for each upstream the target version declares and the case does not bind yet, by name, checked as at create. A binding the target version declares on the same playbook is kept and never named here; every other binding is dropped.
waitbooleannoAnswer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away

list-playbook-case-upgrades​

List a case's upgrades

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
limitnumbernoResults per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED.
cursorstringnoThe previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR.

pause-playbook-case​

Pause a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.

resume-playbook-case​

Resume a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.

confirm-playbook-case-node​

Confirm a node of a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
nodestringyesThe ID of a node of the case's playbook version
actor_idstringnoActs only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only.
decisionstringyesWhether the node's inputs, as read, are approved
reasonstringnoWhy the inputs were rejected; required on a rejection
expected_revisionsobjectyesEach of the node's inputs, by name, mapped to the revision read, or null for one read as unset
waitbooleannoAnswer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away