Subscribe to Updates
subscribe_to_updatesRecord a person's interest in hearing from a business on the given topics, pending their confirmation. Returns a confirmation URL that only the user must click within 7 days; no subscription is active until that confirmation. Advocate does not send subscribers any updates yet, and the business's dashboard does not list subscriptions; a confirmed one keeps the address and topics on record. Idempotent: re-using the same idempotency_key returns the original subscription. If the result includes customer_notice, show it to the customer word for word.
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": {
"slug": "<slug>",
"contact_email": "<contact_email>",
"topics": "<topics>",
"idempotency_key": "<idempotency_key>"
},
"name": "subscribe_to_updates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Business slug identifier | |
| topics | Yes | Topic tags (e.g., ['deals', 'schedule_changes']) | |
| agent_id | No | Optional agent identifier | |
| contact_email | Yes | Email to subscribe — confirmed via returned token | |
| idempotency_key | Yes | Idempotency key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | 'pending' until the user opens confirmation_url; a replay returns the stored state (e.g. 'confirmed' once they have) | |
| topics | Yes | Normalised topic tags: trimmed, lower-cased, de-duplicated | |
| expires_at | Yes | Unix seconds when confirmation_url stops working | |
| acknowledgment | Yes | Customer-facing sentence to relay, including the confirmation link | |
| customer_notice | No | A sentence for the customer. When present, show it to them word for word. | |
| subscription_id | Yes | ||
| confirmation_url | Yes | The link the user must open within 7 days to confirm the subscription | |
| idempotent_replay | No | Present and true when this idempotency_key already had a subscription; the stored token is returned, refreshed only if it had expired | |
| confirmation_token | Yes | Capability token for this subscriber only — it is the proof of consent; never pass it to another tool or party |