MCP Control
Компания и доступ · Чтение

Доступ · Подключения · Список

access_connections_list
Папки документов

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Доступ / Подключения / Список» выполни чтение в текущей компании. Выведи кратко: companyId, uid.
Что искать в ответе
companyId
Поле ответа
uid
Поле ответа
connections
Поле ответа
Уточнить условия
  1. Вы указываетеЗадача
  2. ПомощникСхема входа
  3. Вы получаетеУсловия чтения
Запрос в чат
Для «Доступ / Подключения / Список» перечисли допустимые параметры uid, курсор продолжения. Уточни, какие значения нужны для моей задачи, до запроса данных.
Параметры примера
uid
Параметр чтения
cursor
Курсор продолжения
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Доступ / Подключения / Список» объясни companyId, uid. Отметь отсутствующие значения.
Поля для проверки
companyId
Поле ответа
uid
Поле ответа
connections
Поле ответа
Как работает действие

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

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

Page protected OAuth connections of a company member, including a previously assigned member who has been offboarded. Returns at most 50 complete connections and may return fewer to fit the response size. Follow nextCursor until null; scopes and locations are never truncated. Use exact clientId and version for connection administration. No consent or access is changed.

Параметры запроса
cursor
Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string
uid
Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
Что вернёт команда
companyId
Company resolved from the authenticated connection. обязательно по схеме · string · до символов 128
uid
Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
connections
Current page of complete company-scoped connections; the byte bound can shorten the page. обязательно по схеме · array · до элементов 50
nextCursor
Курсор для получения следующей страницы. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа access_connections_list
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "description": "Opaque cursor from the previous page.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "uid": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact Firebase account UID; must have protected membership in the connected company."
    }
  },
  "required": [
    "uid"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "$ref": "#/$defs/_mcp0"
    },
    "uid": {
      "$ref": "#/$defs/_mcp1"
    },
    "connections": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "uid": {
            "$ref": "#/$defs/_mcp1"
          },
          "companyId": {
            "$ref": "#/$defs/_mcp0"
          },
          "clientId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
            "description": "Exact registered OAuth client ID; never a display name."
          },
          "active": {
            "type": "boolean",
            "description": "Whether the protected assignment is enabled."
          },
          "blocked": {
            "default": false,
            "description": "Whether this connection is explicitly blocked.",
            "type": "boolean"
          },
          "managed": {
            "default": false,
            "description": "Whether an administrator configured this connection.",
            "type": "boolean"
          },
          "scopes": {
            "maxItems": 512,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[A-Za-z0-9_.:-]+$"
            },
            "description": "Currently consented scopes within its ceiling."
          },
          "scopeCeiling": {
            "description": "Allowed OAuth scopes; does not create user consent or enlarge existing token scopes.",
            "maxItems": 512,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[A-Za-z0-9_.:-]+$"
            }
          },
          "allLocations": {
            "type": "boolean",
            "description": "Whether all company locations are allowed; cannot exceed the caller ceiling."
          },
          "locationIds": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$"
            },
            "description": "Exact native locations within the current administrative ceiling."
          },
          "version": {
            "default": 0,
            "description": "Current optimistic concurrency version.",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "revocationVersion": {
            "default": 0,
            "description": "Monotonic revocation epoch; revoked tokens cannot revive.",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "uid",
          "companyId",
          "clientId",
          "active",
          "blocked",
          "managed",
          "scopes",
          "allLocations",
          "locationIds",
          "version",
          "revocationVersion"
        ],
        "additionalProperties": false
      },
      "description": "Current page of complete company-scoped connections; the byte bound can shorten the page."
    },
    "nextCursor": {
      "description": "Continue with this opaque cursor even if fewer than 50 rows were returned, or null at the end.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "companyId",
    "uid",
    "connections",
    "nextCursor"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Company resolved from the authenticated connection."
    },
    "_mcp1": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact Firebase account UID; must have protected membership in the connected company."
    }
  }
}