Litelead-mcp

getOrderLocations

Retrieve the list of configured order locations.

Input Schema

None

Output Schema

{
  "locations": [
    {
      "label": {
        "en-US": "New York Office",
        "de-DE": "Büro New York"
      },
      "value": "loc_123"
    }
  ]
}

Example Usage

const result = await client.getOrderLocations({});
console.log(result.locations);

Field naming

The underlying Firestore document Accounts/{accountId}/Configs/OrderLocations stores its array on a field named value (the same convention used by Configs/OrderResponsibles, surfaced via getOrderResponsibles). The MCP response renames this array to locations for clarity to AI consumers. If you query the raw Firestore document directly (outside this MCP server), read data.value — not data.locations.