Skip to Content

correct_field

Apply a correction to one detected field (label, semantic_type, bbox, and/or field type — every patch key is optional, only the keys you send are changed).

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

What it does

Apply a correction to one detected field (label, semantic_type, bbox, and/or field type — every patch key is optional, only the keys you send are changed). Use this to fix a flagged or mis-detected field before filling it: an agent-driven correction here also feeds the detection flywheel (recorded as a FieldCorrection audit row). patch.help sets the box's help for the client (at most 160 characters after trimming, shown under its question when they fill it in; null or blank removes it); it is not a correction.

Inputs

NameTypeDescription
document_idrequiredstring
field_idrequiredstring
patchrequiredobject
labelstring | null
semanticTypestringOne of: date, phone, ssn, ein, currency, name, address, email, generic-text, checkbox, radio, signature, initials, comb
bboxnumber[]4 to 4 items
fieldTypestringOne of: text, checkbox, signature
helpstring | nullHelp for the client under this box's question, at most 160 characters after trimming; null or blank removes it.Up to 160 characters

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": "correct_field",
    "arguments": {
      "document_id": "<document_id>",
      "field_id": "<field_id>",
      "patch": {}
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "properties": {
    "document_id": {
      "type": "string"
    },
    "field_id": {
      "type": "string"
    },
    "patch": {
      "type": "object",
      "properties": {
        "label": {
          "type": [
            "string",
            "null"
          ]
        },
        "semanticType": {
          "type": "string",
          "enum": [
            "date",
            "phone",
            "ssn",
            "ein",
            "currency",
            "name",
            "address",
            "email",
            "generic-text",
            "checkbox",
            "radio",
            "signature",
            "initials",
            "comb"
          ]
        },
        "bbox": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 4,
          "maxItems": 4
        },
        "fieldType": {
          "type": "string",
          "enum": [
            "text",
            "checkbox",
            "signature"
          ]
        },
        "help": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 160,
          "description": "Help for the client under this box's question, at most 160 characters after trimming; null or blank removes it."
        }
      }
    }
  },
  "required": [
    "document_id",
    "field_id",
    "patch"
  ]
}

On this page