Skip to main content
Glama

Add a location

create_location

Add one location, or many in a single call. A plain address is geocoded automatically, so lat and lng are only needed to override the result. Pass locations with an array to add a batch: adding ten showrooms is one call, not ten, and the reply says exactly which ones landed. Counts against the plan's location allowance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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.
locationsNoSeveral locations to add in one call (at most 50). Use this instead of the top-level fields when adding more than one; each entry takes the same fields.
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. Changed4 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."
    • changedInput schema / properties / locations / items / 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 / locations / items / 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. Changed5 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 / locations
      Added value: +{
      +  "description": "Several locations to add in one call (at most 50). Use this instead of the top-level fields when adding more than one; each entry takes the same fields.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "address": {
      +        "description": "Full address as a person would write it. Geocoded automatically unless lat and lng are supplied.",
      +        "type": "string"
      +      },
      +      "addressLine1": {
      +        "description": "Street line, when the address is structured.",
      +        "type": "string"
      +      },
      +      "city": {
      +        "type": "string"
      +      },
      +      "countryCode": {
      +        "description": "Two-letter ISO country code.",
      +        "type": "string"
      +      },
      +      "customFields": {
      +        "description": "Extra 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.",
      +        "type": "object"
      +      },
      +      "description": {
      +        "type": "string"
      +      },
      +      "email": {
      +        "type": "string"
      +      },
      +      "hours": {
      +        "description": "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.",
      +        "type": "object"
      +      },
      +      "hoursPatch": {
      +        "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"
      +      },
      +      "imageUrl": {
      +        "type": "string"
      +      },
      +      "lat": {
      +        "description": "Latitude. Supplying lat and lng skips geocoding.",
      +        "type": "number"
      +      },
      +      "lng": {
      +        "description": "Longitude.",
      +        "type": "number"
      +      },
      +      "locationType": {
      +        "description": "point is a physical address, service_area covers a radius, online is a stockist with no address.",
      +        "enum": [
      +          "point",
      +          "service_area",
      +          "online"
      +        ],
      +        "type": "string"
      +      },
      +      "markerColor": {
      +        "description": "Hex colour for this location's map marker.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Business or store name.",
      +        "type": "string"
      +      },
      +      "onlineRegions": {
      +        "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"
      +      },
      +      "phone": {
      +        "type": "string"
      +      },
      +      "postalCode": {
      +        "type": "string"
      +      },
      +      "priority": {
      +        "description": "Higher sorts first when there is no visitor position.",
      +        "type": "number"
      +      },
      +      "serviceAreaCircleVisible": {
      +        "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"
      +        ]
      +      },
      +      "serviceRadiusKm": {
      +        "description": "Radius in km, for a service_area location.",
      +        "type": "number"
      +      },
      +      "state": {
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "description": "IANA timezone, for example America/Chicago.",
      +        "type": "string"
      +      },
      +      "visibility": {
      +        "description": "hidden keeps the location in the account but off the public locator.",
      +        "enum": [
      +          "visible",
      +          "hidden"
      +        ],
      +        "type": "string"
      +      },
      +      "website": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • 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"
      +  ]
      +}
    • removedInput schema / required
      Removed value: -[
      -  "name"
      -]
  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. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The description goes beyond the minimal annotations by disclosing that geocoding is automatic, that the reply reports exactly which batch items landed, and that the operation counts against the plan's location allowance. These are meaningful behavioral details not present in the annotations.

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

Conciseness4/5

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

The description is short, front-loaded with the core action, and each sentence contributes a useful operational fact. The batch point is slightly repeated, but the overall structure is efficient and scannable.

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

Completeness3/5

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

For a complex 26-parameter create tool with no output schema and sparse annotations, the description provides key context such as batching, geocoding, response confirmation, and quota impact. It does not address duplicate behavior, authentication/permissions, or detailed error/return shapes, but the schema covers most parameter-level semantics.

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

Parameters3/5

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

The description reinforces the geocoding override behavior and the batch semantics of locations, but the input schema already documents these details in its parameter-level descriptions. With 69% schema description coverage, the description adds some value without fully compensating for the less-covered parameters.

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?

The description opens with a precise verb and resource: 'Add one location, or many in a single call.' This clearly distinguishes create_location from the sibling update_location and delete_location tools and makes the batch capability explicit.

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

Usage Guidelines3/5

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

It gives useful in-tool guidance, such as using the locations array for batching and only supplying lat/lng to override geocoding. However, it does not explicitly say when to prefer create_location over update_location/delete_location or state any when-not-to-use conditions, so usage remains mostly implied.

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