mark_field_pii
Sets or clears the personal-data (PII) flag on one existing lineage link: isPii: true flags it, isPii: false removes the flag. Nothing else on the link changes (endpoints, transformLogic, notes are kept). The flag is governance metadata shown on the lineage arrow of the canvas; it does not mask or alter any data. It flags a lineage link, not an entity field: the PII classes of the table's own fields live in update_entity's kindMetadata.piiFields. The link must already exist: link_field_lineage creates one (and can set isPii at creation), delete_field_lineage removes one. REFUSED with an error, nothing written, on an unknown lineageId. Idempotent: sending the current value succeeds and changes nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lineageId": "<lineageId>",
"isPii": "<isPii>"
},
"name": "mark_field_pii"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isPii | Yes | true = flag the link as personal data, false = remove the flag | |
| lineageId | Yes | ID of the lineage link to tag (the `id` given to link_field_lineage when it was traced) | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |