Set where responses go
set_destinationsReplace a form's destinations (webhooks and HubSpot) with this list. It applies to the live form at once, with no publish step. The list usually starts from get_form's destinations (the live form's, with ids, secrets masked), keeping every entry that is not being changed, with its id. Signing secrets come back masked. A masked secret sent back unchanged keeps the stored one; a new string replaces it; null removes it. A webhook URL needs https. ping_webhook sends one test delivery. Destructive: it deletes or replaces data, so it is best confirmed with the user first, naming exactly what will change. After an error or a timeout, a read shows whether the change went through, so a blind retry is not needed.
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": {
"form_id": "<form_id>",
"destinations": "<destinations>"
},
"name": "set_destinations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | The form id, from list_forms or get_form. | |
| destinations | Yes | Every destination of the form: this list replaces the current one, and a destination left out is removed. | |
| workspace_id | No | The workspace this call acts in: an id from list_my_workspaces. Required for a person signed in with several workspaces and for staff of this deployment; optional with an API key or with only one workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | ||
| workspace | Yes | The workspace this call acted in, to compare with the one the user means. | |
| updated_at | Yes | ||
| destinations | Yes | The destinations as stored, secrets masked. | |
| hubspot_activity_error | Yes | Why the HubSpot form activity could not be synced. The destinations were saved anyway. |