Skip to Content

set_fixed_value

Put a value in boxes on every send, filled in by you before it goes (Fixed).

destructiveSends, cancels or emails people. Clients ask you before running it.

What it does

Put a value in boxes on every send, filled in by you before it goes (Fixed). The value must suit the boxes: a box people type into takes typed text, one of the business's details (scope workspace: legalName, tradingName, abn, address1, address2, phone, email, or custom.<name>) or the sending person's own (scope me: title, familyName, givenNames, marn, lpn, email, mobile), or a date (the day it is sent, a fixed YYYY-MM-DD day, or n days/weeks/months after or before sending); a lone tick box takes source tick; a choice question takes source option with the option label(s) ticked, its other options stay unticked. Not for signatures. locked: true stops the sender changing it on the Prepare page. For a value a recipient types instead, use set_box_owner. 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. Masked values (•••123) can't be sent back: ask the person for the full number.

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
valuerequiredobjectOne of: {source:"typed", text} | {source:"tick", ticked} | {source:"option", options:[label]} | {source:"detail", scope:"workspace"|"me", key} | {source:"date", rule:{kind:"sent"} | {kind:"fixed", day:"YYYY-MM-DD"} | {kind:"relative", n, unit:"days"|"weeks"|"months", dir?:"after"|"before"}}
sourcerequiredstringOne of: typed, tick, option, detail, date
textstringUp to 4000 characters
tickedboolean
optionsstring[]1 to 50 items
scopestringOne of: workspace, me
keystringUp to 60 characters
ruleobject
kindrequiredstringOne of: sent, fixed, relative
daystringkind fixed: YYYY-MM-DD
ninteger1 to 365
unitstringOne of: days, weeks, months
dirstringOne of: after, before
lockedbooleantrue: the sender can't change it on the Prepare page (default false).
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_fixed_value",
    "arguments": {
      "document_id": "<document_id>",
      "field_ids": [],
      "value": {}
    }
  }
}

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."
    },
    "value": {
      "type": "object",
      "description": "One of: {source:\"typed\", text} | {source:\"tick\", ticked} | {source:\"option\", options:[label]} | {source:\"detail\", scope:\"workspace\"|\"me\", key} | {source:\"date\", rule:{kind:\"sent\"} | {kind:\"fixed\", day:\"YYYY-MM-DD\"} | {kind:\"relative\", n, unit:\"days\"|\"weeks\"|\"months\", dir?:\"after\"|\"before\"}}",
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "typed",
            "tick",
            "option",
            "detail",
            "date"
          ]
        },
        "text": {
          "type": "string",
          "maxLength": 4000
        },
        "ticked": {
          "type": "boolean"
        },
        "options": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "minItems": 1,
          "maxItems": 50
        },
        "scope": {
          "type": "string",
          "enum": [
            "workspace",
            "me"
          ]
        },
        "key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "rule": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "sent",
                "fixed",
                "relative"
              ]
            },
            "day": {
              "type": "string",
              "description": "kind fixed: YYYY-MM-DD"
            },
            "n": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            },
            "unit": {
              "type": "string",
              "enum": [
                "days",
                "weeks",
                "months"
              ]
            },
            "dir": {
              "type": "string",
              "enum": [
                "after",
                "before"
              ]
            }
          },
          "required": [
            "kind"
          ]
        }
      },
      "required": [
        "source"
      ]
    },
    "locked": {
      "type": "boolean",
      "description": "true: the sender can't change it on the Prepare page (default false)."
    },
    "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",
    "value"
  ]
}

On this page