Record a change
onelence_record_changeRecords a change the team made outside OneLence (budget, offer, pricing, tracking, creative, campaign, partner, email, social post, launch, or offline activity such as a TV or radio ad, billboard, influencer campaign, press coverage or event), on one source or the whole site, so OneLence can observe the period after it. Offline activity is recorded on the whole site only. Optional ends_on, image_url, link_url and markets are stored with the change when they are sent. It changes nothing on ad platforms. The preview needs label, occurred_on, timezone. Two steps: call with the change to get a summary and a confirmation_id, show the summary to the user, and only after they agree call again with just confirmation_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "onelence_record_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| site | No | Site domain (e.g. example.com) or site id. Defaults to the workspace's newest active site. | |
| time | No | Local time (HH:MM). Default 12:00. | |
| label | No | What changed, in a few words, e.g. "Raised the TikTok budget". | |
| family | No | ||
| ends_on | No | Last local date the change ran through (YYYY-MM-DD), from the start date through 730 days after it. | |
| markets | No | One to 30 different two-letter country codes, such as IT or DE. | |
| link_url | No | https address for the change, at most 2048 characters, without a username or password. | |
| timezone | No | IANA time zone, e.g. Europe/Rome. | |
| image_url | No | https address of a picture, at most 2048 characters, without a username or password. | |
| source_id | No | The source it was made on (from the sources list). Without it, the whole site. | |
| occurred_on | No | Local date of the change (YYYY-MM-DD). | |
| confirmation_id | No | Only when applying: the confirmation_id from the preview, after the user agreed. | |
| quantified_change | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||