MCP Control
Доставка · Чтение

Доставка · Маршруты · Поиск

delivery_routes_search
Посылки на упаковочном столе

Попробуйте три запроса

Получить данные
  1. Вы указываетеСтрока поиска
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Доставка / Маршруты / Поиск» выполни чтение по выбранной записи (строка поиска). Выведи кратко: список позиций, следующая страница.
Что искать в ответе
items
Список позиций
nextCursor
Следующая страница
Следующая страница
  1. Вы указываетеПредыдущий ответ
  2. ПомощникПродолжение
  3. Вы получаетеСледующая страница
Запрос в чат
Продолжи «Доставка / Маршруты / Поиск» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Как листать выдачу
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Доставка / Маршруты / Поиск» объясни список позиций, следующая страница. Отметь отсутствующие значения.
Поля для проверки
items
Список позиций
nextCursor
Следующая страница
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.

Описание разработчика

List stored delivery route plans and progress for accessible establishments. Distances and times are existing stored values; this action does not optimize routes, assign couriers or change orders.

Параметры запроса
query
Поисковое выражение для этой операции. необязательно · string · до символов 120
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
cursor
Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string · до символов 236
Что вернёт команда
items
Записи, которые вернул этот запрос. обязательно по схеме · array
nextCursor
Курсор для получения следующей страницы. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа delivery_routes_search
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "description": "Case-insensitive name or text filter within the paginated result. Continue using nextCursor to search later records.",
      "type": "string",
      "maxLength": 120
    },
    "limit": {
      "default": 20,
      "description": "Maximum matching records returned, from 1 to 50. Large records may produce a shorter page; continue with nextCursor.",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "description": "Opaque continuation cursor returned by this same action and workspace. Do not construct one.",
      "type": "string",
      "maxLength": 236
    }
  },
  "required": [
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "routeId": {
            "type": "string",
            "description": "Canonical company DeliveryRoutes document identifier."
          },
          "locationId": {
            "type": "string",
            "description": "Canonical route EstablishmentID."
          },
          "courierId": {
            "description": "Assigned canonical courier user identifier.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "description": "Stored delivery route status."
          },
          "currentStopIndex": {
            "description": "Current stored stop index, or null when unset.",
            "type": [
              "number",
              "null"
            ]
          },
          "orderIds": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Canonical company order identifier."
            },
            "description": "Orders assigned to this route."
          },
          "distanceMeters": {
            "description": "Stored planned route distance in meters.",
            "type": [
              "number",
              "null"
            ]
          },
          "plannedStartAt": {
            "$ref": "#/$defs/_mcp1"
          },
          "plannedFinishAt": {
            "$ref": "#/$defs/_mcp1"
          }
        },
        "required": [
          "routeId",
          "locationId",
          "courierId",
          "status",
          "currentStopIndex",
          "orderIds",
          "distanceMeters",
          "plannedStartAt",
          "plannedFinishAt"
        ],
        "additionalProperties": false
      },
      "description": "Accessible matching records in this page; tenant and location restrictions have already been applied."
    },
    "nextCursor": {
      "description": "Continuation cursor, or null when no later records remain. An empty page can still have a cursor because inaccessible records are omitted.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp1": {
      "anyOf": [
        {
          "$ref": "#/$defs/_mcp0"
        },
        {
          "type": "null"
        }
      ],
      "description": "Stored event time represented in UTC, or null when absent."
    },
    "_mcp0": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    }
  }
}