MCPFerramentas MCP/Localizações/update_location

update_location

Writelocations:write

Update an existing location's business details — including its categories (general, Google primary, and additional), Google Business Profile attributes, and its service/product list. Identify the location by its locationId (the locationId returned by create_location). Pass only the fields you want to change — anything you omit is left as-is, and passing a field replaces its current value (pass an empty string to clear a text field, or the full new list to replace a list — except `name`, which can be renamed but never cleared, because a location with no name is rejected by every directory and fails to publish silently). The country can't be changed after a location is created. If you change the address without also passing coordinates, latitude/longitude are re-derived automatically. By default your change updates the shared details that every publisher inherits; to change a value for specific publishers only (e.g. a different description on Google vs. Facebook), pass applyToPublishers. Use specialHours for one-off date closures/hours (e.g. "mark this Sunday, Aug 2 2026, as closed") — any calendar date works, not just named holidays; use regularHours/moreHours for the standing weekly schedule and extra hour types. Saving queues the change to sync out to the connected directories automatically — it goes out about 15 minutes after the location's last edit (further edits in that window are batched into one sync), and a publisher-specific change (applyToPublishers) resubmits to just those publishers. Tell the user their change is saved and will sync out shortly, not that it is already live; use publish_location to push it to Google immediately. Returns the updated location. You don't pass an agency — it comes from your credentials. IN A CLIENT-PORTAL SESSION only the fields the portal itself exposes are writable; categories, publisher overrides, custom attributes, keywords, tags and UTM are REJECTED and named back to you in `rejected`. Tell the client which fields could not be changed and that their agency owns those — do not report a partial save as a complete one.

Parâmetros
locationIdstringobrigatório
The id of the location to update (required) — the id returned by create_location. Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
namestringopcional
The location's business name.
descriptionstringopcional
The business description.
taglinestringopcional
A short tagline/slogan for the business.
storeCodestringopcional
Your internal store code / reference for this location.
logoUrlstringopcional
URL of the location's logo image.
languageCodestringopcional
The primary language of the listing, as a code (e.g. "en").
streetstringopcional
Street address, line 1.
street1stringopcional
Street address, line 2.
citystringopcional
City.
stateIsostringopcional
State or region, as an ISO code (e.g. "CA").
postalCodestringopcional
Postal or ZIP code, in the country's own format (a value that doesn't match it is refused).
latitudenumberopcional
Latitude, -90 to 90. Send it together with longitude (both, or neither). If you change the address without setting coordinates, they're re-derived automatically.
longitudenumberopcional
Longitude, -180 to 180. Send it together with latitude (both, or neither). If you change the address without setting coordinates, they're re-derived automatically.
phonestringopcional
Primary phone number. It must be a valid number for the location's country, or start with + and its own country code; it is stored in international form. An invalid number is refused.
additionalPhonesstring[]opcional
Any additional phone numbers (replaces the existing list), each held to the same rule as phone.
websitestringopcional
The location's website URL.
businessEmailstringopcional
A public contact email for the business.
categoryIdstringopcional
General category id — look it up with list_categories. Its name comes with it.
categoryNamestringopcional
General category name, exactly as list_categories gives it; its id comes with it. A name that isn't in the category list is refused. Each listing site's own category is then re-derived from it, as in the editor.
publisherCategoriesobjectopcional
Each publisher's PRIMARY category, as { id, name } looked up with list_publisher_categories — both are required for each one you send (an id alone would clear or mislabel it). Google (a gcid such as "gcid:cookie_shop") is what Google shows and ranks on; the general category above does not override it. Facebook, Apple and Bing are set the same way. Only the publishers you name change; the others keep theirs. Don't combine with applyToPublishers. The value is stored, and reaches a publisher once it is connected for this location.
googleobjectopcional
idstringopcional
The publisher's own category id (from list_publisher_categories)
namestringopcional
The category's display name
facebookobjectopcional
idstringopcional
The publisher's own category id (from list_publisher_categories)
namestringopcional
The category's display name
appleobjectopcional
idstringopcional
The publisher's own category id (from list_publisher_categories)
namestringopcional
The category's display name
bingobjectopcional
idstringopcional
The publisher's own category id (from list_publisher_categories)
namestringopcional
The category's display name
additionalCategoriesobject[]opcional
Up to 9 extra categories, each an { id?, name } (replaces the existing list; more than a site takes is refused). A bare name is accepted and its id is resolved from the category catalog where one matches.
idstringopcional
namestringopcional
Category name
attributesobjectopcional
Google Business Profile attributes, as a map of attribute id to value — e.g. { "attributes/is_owned_by_women": true, "attributes/wi_fi": "free" }. REPLACES the whole set, so read the current ones with get_location_by_id and pass back everything you want kept. Values are a boolean for yes/no attributes, a string for single-choice ones, or { setValues: [...], unsetValues: [...] } for multi-select. Google only accepts attributes its catalog allows for this location's category and country — unsupported ids are dropped when publishing rather than failing the update. Don't set social-link, menu-URL or payment attributes here; use socialLinks, menuUrl and the payment fields instead.
servicesobject[]opcional
The services or products this location offers (replaces the existing list). Each entry is { name, description?, price?, currency?, googleServiceTypeId? }. price is a number in the listed currency (e.g. 12.5 with currency "USD"); omit both for services with no set price.
namestringopcional
Service or product name (required).
descriptionstringopcional
Short description — this is where long-tail keywords belong.
pricenumberopcional
Price as a number, in `currency`.
currencystringopcional
ISO 4217 currency code, e.g. "USD".
googleServiceTypeIdstringopcional
Google's service-type id, when it maps to one of Google's predefined services. There's currently no tool to look these up — omit it and the service is still saved, just without that Google-specific mapping.
ownerNamestringopcional
The owner's name.
menuUrlstringopcional
URL of the business's menu.
yearEstablishednumberopcional
The year the business was established (e.g. 2012): a whole year from 1000 to this year.
tagsstring[]opcional
Internal tags for your own organization — not shown publicly (replaces the existing list).
labelsstring[]opcional
Internal labels for this location (replaces the existing list).
openStatusopcional
Whether the business is open: OPEN, CLOSED_TEMPORARILY or CLOSED_PERMANENTLY (null clears it).
openingDateopcional
When the business opened (or will open), as YYYY-MM-DD (null clears it here; the date Google shows is kept and has to be removed on Google).
googleAdsPhoneopcional
The phone number Google Ads call extensions use for this location (null clears it).
relationshipDataopcional
Chain membership and parent/child links as Google models them: { parentChain: "chains/{id}" | null, parentLocation: { placeId, relationType } | null, childrenLocations: [{ placeId, relationType }] }. Replaces the stored value; null clears it.
regularHoursobject[]opcional
The weekly regular-hours schedule — replaces the existing schedule entirely. Pass one entry per day of the week (7 entries, one for each of MONDAY–SUNDAY, each day once). Times Google can't read, and overlapping periods, are refused.
day"MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY"opcional
Day of week.
closedbooleanopcional
true if closed all day.
periodsobject[]opcional
Open/close intervals for this day. Omit or leave empty when closed. For 24-hour, use a single period { open: "00:00", close: "24:00" }.
openstringopcional
Open time, 24h "HH:MM" (e.g. "09:00").
closestringopcional
Close time, 24h "HH:MM" — use "24:00" for midnight/end-of-day. A close earlier than the open means it closes after midnight ("18:00"–"02:00"). A period that opens and closes at the same time, or overlaps another, is refused.
moreHoursobject[]opcional
Extra hour types beyond regular hours (delivery, takeout, happy hour, etc.), replaces the existing list. Each entry is { hoursTypeId, label?, days }, where days is the same weekly-schedule shape as regularHours. Common hoursTypeId values: DELIVERY, TAKEOUT, PICKUP, DRIVE_THROUGH, BREAKFAST, LUNCH, DINNER, BRUNCH, HAPPY_HOUR, KITCHEN, ONLINE_SERVICE_HOURS, ACCESS, SENIOR_HOURS.
hoursTypeIdstringopcional
The more-hours type id, e.g. "DELIVERY".
labelstringopcional
Optional display label for this hours type.
daysobject[]opcional
Weekly schedule for this hours type, same shape as regularHours.
day"MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY"opcional
Day of week.
closedbooleanopcional
true if closed all day.
periodsobject[]opcional
Open/close intervals for this day. Omit or leave empty when closed. For 24-hour, use a single period { open: "00:00", close: "24:00" }.
openstringopcional
Open time, 24h "HH:MM" (e.g. "09:00").
closestringopcional
Close time, 24h "HH:MM" — use "24:00" for midnight/end-of-day. A close earlier than the open means it closes after midnight ("18:00"–"02:00"). A period that opens and closes at the same time, or overlaps another, is refused.
specialHoursobject[]opcional
One-off date overrides — holiday closures or a single day's special hours — replaces the existing list. Each entry is { date, closed, open?, close? } where date is any real calendar date as "YYYY-MM-DD", each date once (not limited to named holidays — use this for requests like "mark this Sunday, Aug 2 2026, as closed"). When closed is false, both open and close are required, as 24h "HH:MM".
datestringopcional
The date, as "YYYY-MM-DD".
closedbooleanopcional
true if closed all day on this date.
openstringopcional
Open time, 24h "HH:MM", when not closed.
closestringopcional
Close time, 24h "HH:MM", when not closed.
serviceAreaopcional
Service-area settings — for a business that serves customers at their location. businessType CUSTOMER_LOCATION_ONLY hides the street address on Google (a pure service-area business; the street is never sent there); CUSTOMER_AND_BUSINESS_LOCATION shows the address plus the areas served. places is up to 20 areas, each { name, placeId? }; Google only accepts places with their Google Place ID, so pass placeId for every place you want on Google. Pass null to clear (a plain storefront).
publisherServiceAreasobjectopcional
A different service area per publisher, stored as that publisher's own value; a publisher left out uses serviceArea. Each key is a serviceArea object (same shape). On update_location, null for a publisher removes its own value so it goes back to using serviceArea.
googleopcional
Service-area settings — for a business that serves customers at their location. businessType CUSTOMER_LOCATION_ONLY hides the street address on Google (a pure service-area business; the street is never sent there); CUSTOMER_AND_BUSINESS_LOCATION shows the address plus the areas served. places is up to 20 areas, each { name, placeId? }; Google only accepts places with their Google Place ID, so pass placeId for every place you want on Google. Pass null to clear (a plain storefront).
facebookopcional
Service-area settings — for a business that serves customers at their location. businessType CUSTOMER_LOCATION_ONLY hides the street address on Google (a pure service-area business; the street is never sent there); CUSTOMER_AND_BUSINESS_LOCATION shows the address plus the areas served. places is up to 20 areas, each { name, placeId? }; Google only accepts places with their Google Place ID, so pass placeId for every place you want on Google. Pass null to clear (a plain storefront).
appleopcional
Service-area settings — for a business that serves customers at their location. businessType CUSTOMER_LOCATION_ONLY hides the street address on Google (a pure service-area business; the street is never sent there); CUSTOMER_AND_BUSINESS_LOCATION shows the address plus the areas served. places is up to 20 areas, each { name, placeId? }; Google only accepts places with their Google Place ID, so pass placeId for every place you want on Google. Pass null to clear (a plain storefront).
bingopcional
Service-area settings — for a business that serves customers at their location. businessType CUSTOMER_LOCATION_ONLY hides the street address on Google (a pure service-area business; the street is never sent there); CUSTOMER_AND_BUSINESS_LOCATION shows the address plus the areas served. places is up to 20 areas, each { name, placeId? }; Google only accepts places with their Google Place ID, so pass placeId for every place you want on Google. Pass null to clear (a plain storefront).
socialLinksobjectopcional
Social profile URLs. Only the keys you pass change; pass null for a key to clear it. Published to Google as url_* attributes and to Bing/Apple's social fields — don't send those as attributes.
facebookopcional
Facebook page URL.
instagramopcional
Instagram URL.
twitteropcional
X/Twitter URL.
linkedinopcional
LinkedIn URL.
youtubeopcional
YouTube URL.
tiktokopcional
TikTok URL.
pinterestopcional
Pinterest URL.
paymentMethodsstring[]opcional
Payment methods accepted, e.g. "Visa", "American Express", "Cash only" (replaces the existing list; [] clears it). Published to Google as pay_* attributes, and to Apple and Bing.
clearPublisherOverridesobjectopcional
Reset per-publisher values so that publisher uses the shared (Master) value again. Keyed by publisher: a list of field names (e.g. { "google": ["name", "description"] }) or ["all"] to drop every override it has.
googlestring[]opcional
Field names to reset, or ["all"].
facebookstring[]opcional
Field names to reset, or ["all"].
applestring[]opcional
Field names to reset, or ["all"].
bingstring[]opcional
Field names to reset, or ["all"].
applyToPublishers("google" | "facebook" | "apple" | "bing")[]opcional
Advanced: change these values for specific publishers only instead of the shared default. Allowed values: "google", "facebook", "apple", "bing". Omit to update the shared details that every publisher inherits.
awaitApprovalbooleanopcional
Set true to hold this change for approval instead of applying it: nothing changes on the listing, a pending approval titled "Update listing for <location>" with the current → proposed value of every field appears in the Inbox, and approving it applies the change exactly as sent. Use it when the user asks to review/approve a listing change first. Omit (or false) to apply under the agency's normal autonomy rules.
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_location",
    "arguments": {
      "locationId": "string"
    }
  }
}
Exemplo de resposta
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.