Skip to main content
Glama

Update a location, or many at once

update_location
DestructiveIdempotent

Change one or more fields on an existing location. Only the fields you send are touched. Changing the address re-geocodes it. Pass ids instead of id to apply the same fields to many locations in one call, for example hiding a batch or setting priority across a region; address, coordinates and name stay one-at-a-time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoLocation id.
idsNoSeveral location ids, to apply the same change to all of them in one call (at most 200). Use either id or ids.
latNoLatitude. Supplying lat and lng skips geocoding.
lngNoLongitude.
cityNo
nameNoBusiness or store name.
emailNo
hoursNoOpening hours keyed by ISO weekday, 1 = Monday. Each value is ONE {open, close} in 24h HH:MM, or null for closed — not a list, and a list is rejected. Example: {"1": {"open": "09:00", "close": "17:00"}, "7": null}. REPLACES the whole week: any day left out is cleared. To change one day without restating the rest, use hoursPatch.
phoneNo
stateNo
addressNoFull address as a person would write it. Geocoded automatically unless lat and lng are supplied.
websiteNo
imageUrlNo
priorityNoHigher sorts first when there is no visitor position.
timezoneNoIANA timezone, for example America/Chicago.
hoursPatchNoChange only the days named, leaving every other day exactly as it is. Same shape as hours but partial: {"7": {"open": "10:00", "close": "16:00"}} changes Sunday alone, and {"7": null} closes it. Use this to edit hours; it cannot silently revert a day you did not mention. Ignored if hours is also sent.
postalCodeNo
visibilityNohidden keeps the location in the account but off the public locator.
countryCodeNoTwo-letter ISO country code.
descriptionNo
markerColorNoHex colour for this location's map marker.
addressLine1NoStreet line, when the address is structured.
customFieldsNoExtra fields, keyed by the label shown to visitors. The value is either a plain string, or an object {value, color, icon, style} where `value` is the URL or text. There is no `label` or `url` key: the label is the key, and the URL goes in `value`. Example: {"Book a table": {"value": "https://example.com/book", "color": "#C2540E"}}. Never use this for tags or categories; use the categories field instead.
locationTypeNopoint is a physical address, service_area covers a radius, online is a stockist with no address.
onlineRegionsNoFor an online location: two-letter country codes it ships to or serves, e.g. ["us", "ca"]. Empty means every visitor sees it.
serviceRadiusKmNoRadius in km, for a service_area location.
serviceAreaCircleVisibleNoFor a service_area location: whether to draw its coverage circle. Null (the default) follows the locator's serviceAreaCircleVisible setting. False draws the pin without the circle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / hours / description
      Previous value: -"Opening hours keyed by ISO weekday, 1 = Monday. Each value is a list of {open, close} in 24h HH:MM, or null for closed. REPLACES the whole week: any day left out is cleared. To change one day without restating the rest, use hoursPatch."New value: +"Opening hours keyed by ISO weekday, 1 = Monday. Each value is ONE {open, close} in 24h HH:MM, or null for closed — not a list, and a list is rejected. Example: {\"1\": {\"open\": \"09:00\", \"close\": \"17:00\"}, \"7\": null}. REPLACES the whole week: any day left out is cleared. To change one day without restating the rest, use hoursPatch."
    • changedInput schema / properties / hoursPatch / description
      Previous value: -"Change only the days named, leaving every other day exactly as it is. Same shape as hours but partial: {\"7\": [{\"open\": \"10:00\", \"close\": \"16:00\"}]} changes Sunday alone. Use this to edit hours; it cannot silently revert a day you did not mention. Ignored if hours is also sent."New value: +"Change only the days named, leaving every other day exactly as it is. Same shape as hours but partial: {\"7\": {\"open\": \"10:00\", \"close\": \"16:00\"}} changes Sunday alone, and {\"7\": null} closes it. Use this to edit hours; it cannot silently revert a day you did not mention. Ignored if hours is also sent."
  2. Changed3 schema fields changed
    • changedInput schema / properties / hours / description
      Previous value: -"Opening hours keyed by ISO weekday, 1 = Monday. Each value is a list of {open, close} in 24h HH:MM, or null for closed."New value: +"Opening hours keyed by ISO weekday, 1 = Monday. Each value is a list of {open, close} in 24h HH:MM, or null for closed. REPLACES the whole week: any day left out is cleared. To change one day without restating the rest, use hoursPatch."
    • addedInput schema / properties / hoursPatch
      Added value: +{
      +  "description": "Change only the days named, leaving every other day exactly as it is. Same shape as hours but partial: {\"7\": [{\"open\": \"10:00\", \"close\": \"16:00\"}]} changes Sunday alone. Use this to edit hours; it cannot silently revert a day you did not mention. Ignored if hours is also sent.",
      +  "type": "object"
      +}
    • addedInput schema / properties / serviceAreaCircleVisible
      Added value: +{
      +  "description": "For a service_area location: whether to draw its coverage circle. Null (the default) follows the locator's serviceAreaCircleVisible setting. False draws the pin without the circle.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / onlineRegions
      Added value: +{
      +  "description": "For an online location: two-letter country codes it ships to or serves, e.g. [\"us\", \"ca\"]. Empty means every visitor sees it.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "Several location ids, to apply the same change to all of them in one call (at most 200). Use either id or ids.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 200,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already supply the safety profile (destructiveHint=true, idempotentHint=true, readOnlyHint=false). The description adds real value on top: partial-update semantics ('only the fields you send are touched'), the re-geocoding side effect of an address change, and the constraint that address/coordinates/name are not batchable. It does not flag the destructive capacity of bulk updates explicitly, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four compact sentences, front-loaded with the core operation, then side effects, then batch mechanics. No filler and no restatement of the tool name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 27-parameter mutation tool with no output schema, the description covers the operation model, batch path, and key side effects, while annotations carry the safety profile and the schema carries per-field detail. Coverage of the many optional fields is left entirely to the schema, which is acceptable but leaves the description slightly thin overall.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 70% and the schema descriptions are already detailed, so the baseline would be 3. The description goes beyond it by defining the id/ids mutual exclusivity and the per-field batching restriction (address, coordinates, name stay one-at-a-time), which is not stated in the schema itself.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Change one or more fields on an existing location') and immediately covers both single and bulk modes. An agent can distinguish this from create_location/delete_location without opening the schema, and the batch variant is called out in the title and body.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells the agent when to use `ids` vs `id` and gives concrete batch scenarios (hiding a batch, setting priority across a region). It stops short of naming alternatives like create_location or delete_location, but 'existing location' frames the intended context clearly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources