set_box_owner
Give boxes to one of the document's recipients (role_key from set_envelope_recipients), who fills them when they sign; or clear: true to take the owner off.
destructiveSends, cancels or emails people. Clients ask you before running it.
What it does
Give boxes to one of the document's recipients (role_key from set_envelope_recipients), who fills them when they sign; or clear: true to take the owner off. A choice question moves as one. A signature box needs a signer; a CC can't own boxes. Never the sender: "You fill" and "You sign" are the person's own choice in the web app. To leave boxes blank use skip_box; for a value that goes in on every send use set_fixed_value; to let AI decide for every box use ai_assign. Returns the document's saved Prepare state (recipients, routing, each box's owner and value, version; the same state the web Prepare page shows; a government ID number in a box shows only its last 3 characters, masked: true, and is sent in full), a box tally, and send: whether it is ready to send (else why not) and the web link to review it. When ready, send it with send_envelope and use_prepare_draft: true.
Inputs
| Name | Type | Description |
|---|---|---|
document_idrequired | string | The document's id (from upload_document, create_from_template or a document list). |
field_idsrequired | string[] | Box ids from list_fields. A box that is an option of a choice question brings the whole question with it.1 to 500 items |
role_key | string | The recipient's key ("r1"). |
clear | boolean | true: the boxes have no owner again.One of: true |
override_sender_choice | boolean | true: also change boxes the person gave the sender (You fill / You sign). Only when the user asked for exactly that. |
Call it
Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "set_box_owner",
"arguments": {
"document_id": "<document_id>",
"field_ids": []
}
}
}Input schema
The JSON Schema the server lists for this tool in tools/list.
{
"type": "object",
"properties": {
"document_id": {
"type": "string",
"description": "The document's id (from upload_document, create_from_template or a document list)."
},
"field_ids": {
"type": "array",
"minItems": 1,
"maxItems": 500,
"items": {
"type": "string"
},
"description": "Box ids from list_fields. A box that is an option of a choice question brings the whole question with it."
},
"role_key": {
"type": "string",
"description": "The recipient's key (\"r1\")."
},
"clear": {
"type": "boolean",
"enum": [
true
],
"description": "true: the boxes have no owner again."
},
"override_sender_choice": {
"type": "boolean",
"description": "true: also change boxes the person gave the sender (You fill / You sign). Only when the user asked for exactly that."
}
},
"required": [
"document_id",
"field_ids"
]
}ai_assign
Let AI decide who fills each box that has no owner yet: one of the document's recipients, Skip, or a Fixed value, from the workspace's form memory, the team's habits, rules and then AI.
skip_box
Skip boxes: they are left blank and no recipient sees them (e.g. an office-use-only box, or a question that doesn't apply).