set_legal_basis
Set the legal basis and the processing purposes of a lead or contact (Art. 6 GDPR). The purposes matter: a basis only ever covers the purposes recorded with it, so 'vertrag' with purposes ['rechnung'] does NOT permit cold outreach. NULL basis means 'never established' — a defect in the data, not a No from the person, and the send gate treats the two differently. Optional retention_review_at: a date at which a HUMAN should look again. It deletes nothing and triggers nothing (see run_retention_reviews).
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": {
"legal_basis": "<legal_basis>"
},
"name": "set_legal_basis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why this basis. Shows up in the audit trail. | |
| lead_id | No | ID of the lead | |
| contact_id | No | ID of the contact | |
| legal_basis | Yes | Legal basis under Art. 6 GDPR | |
| processing_purposes | No | The purposes this basis covers. Suggested: akquise, bestandskunde, newsletter, terminabstimmung, vertrag, rechnung. | |
| retention_review_at | No | ISO date for a human review. |