Skip to Content

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

NameTypeDescription
document_idrequiredstringThe document's id (from upload_document, create_from_template or a document list).
field_idsrequiredstring[]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_keystringThe recipient's key ("r1").
clearbooleantrue: the boxes have no owner again.One of: true
override_sender_choicebooleantrue: 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"
  ]
}

On this page