Save a location
save_locationSave a business location to the LocalSchema account — create one, or update one by location_id (only the business fields you send change) — and optionally publish it to its hosted embed so the client's site updates without code changes. Needs a LocalSchema Pro API key in the request headers.
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": {
"business": "<business>"
},
"name": "save_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publish | No | Publish to the hosted embed now. Default false (saved as a draft). | |
| business | Yes | Business fields in the same shape as generate_schema (name, businessType, address, openingHours, services, …). When updating, only the fields you send change; address merges field by field, lists are replaced. | |
| client_id | No | Assign to a client (see list_clients); null removes the assignment. Omit to keep the current client. | |
| location_id | No | Update this location. Omit to create a new one (counts toward the plan's location limit). | |
| website_url | No | Page where the hosted embed is installed; health checks scan it. Defaults to business.url. |