MCP Control
Расчёт выплат · Чтение

Расчёт выплат · Просмотр · Профили · История

payroll_get_profile_history
Кассовый чек, калькулятор и монеты

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

Получить данные
  1. Вы указываетеProfileid
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Расчёт выплат / Просмотр / Профили / История» выполни чтение по выбранной записи (profileId). Выведи кратко: profileId, snapshotRevision.
Что искать в ответе
profileId
Поле ответа
snapshotRevision
Поле ответа
history
Поле ответа
Задать параметры
  1. Вы указываетеProfileid
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Расчёт выплат / Просмотр / Профили / История» на учебном примере с limit = 3. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
limit
3
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Расчёт выплат / Просмотр / Профили / История» объясни profileId, snapshotRevision. Отметь отсутствующие значения.
Поля для проверки
profileId
Поле ответа
snapshotRevision
Поле ответа
history
Поле ответа
Как работает действие

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

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

Traverse payroll configuration revisions without using current header values as historical metadata. The native manager retains only its latest 100 metadata rows per read; older revisions still provide verified immutable revision/hash with metadataAvailable=false. Never edits or restores a version.

Параметры запроса
profileId
Exact payroll profile UUID. обязательно по схеме · string
snapshotRevision
Copy the first page snapshotRevision to keep pagination anchored while newer versions are added. необязательно · integer · минимум 1 · максимум 9007199254740991
beforeRevision
Copy nextBeforeRevision from the preceding page. Requires snapshotRevision. необязательно · integer · минимум 1 · максимум 9007199254740991
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 5 · минимум 1 · максимум 10
Что вернёт команда
profileId
Requested profile UUID. обязательно по схеме · string
snapshotRevision
Latest configuration revision when this traversal began. обязательно по схеме · integer · минимум 1 · максимум 9007199254740991
history
Immutable revisions in descending order. Outside the native latest-100 metadata window only revision/hash are available. обязательно по схеме · array · до элементов 10
hasMore
Есть ли ещё одна страница результата. обязательно по схеме · boolean
nextBeforeRevision
Copy as beforeRevision with the same snapshotRevision, or null when complete. обязательно по схеме · integer / null
Поля и технические схемы
Входные поля и поля ответа payroll_get_profile_history
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profileId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Exact payroll profile UUID."
    },
    "snapshotRevision": {
      "description": "Copy the first page snapshotRevision to keep pagination anchored while newer versions are added.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "beforeRevision": {
      "description": "Copy nextBeforeRevision from the preceding page. Requires snapshotRevision.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 5,
      "description": "Maximum immutable revisions returned, 1 to 10.",
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": [
    "profileId",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profileId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Requested profile UUID."
    },
    "snapshotRevision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "Latest configuration revision when this traversal began."
    },
    "history": {
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "versionId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Immutable native version UUID, or null outside the native historical metadata window."
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "Immutable configuration revision."
          },
          "configurationHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Native SHA256 for this immutable configuration."
          },
          "metadataAvailable": {
            "type": "boolean",
            "description": "Whether the native latest-100 history window included the historical metadata. False never substitutes current header values."
          },
          "supersedesRevision": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "Earlier revision superseded by this snapshot, when available."
          },
          "effectiveFrom": {
            "anyOf": [
              {
                "$ref": "#/$defs/_mcp0"
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical effective start date, or null when metadata is outside the native history window."
          },
          "effectiveTo": {
            "anyOf": [
              {
                "$ref": "#/$defs/_mcp0"
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical end date, or null when open-ended or metadata unavailable."
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical currency, when metadata is available."
          },
          "payrollPeriod": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical payroll period, when metadata is available."
          },
          "employmentType": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical employment type, when metadata is available."
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical version creation timestamp, when available."
          },
          "createdBy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical version actor, when available."
          }
        },
        "required": [
          "versionId",
          "revision",
          "configurationHash",
          "metadataAvailable",
          "supersedesRevision",
          "effectiveFrom",
          "effectiveTo",
          "currency",
          "payrollPeriod",
          "employmentType",
          "createdAt",
          "createdBy"
        ],
        "additionalProperties": false
      },
      "description": "Immutable revisions in descending order. Outside the native latest-100 metadata window only revision/hash are available."
    },
    "hasMore": {
      "type": "boolean",
      "description": "Whether older immutable revisions remain."
    },
    "nextBeforeRevision": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Copy as beforeRevision with the same snapshotRevision, or null when complete."
    }
  },
  "required": [
    "profileId",
    "snapshotRevision",
    "history",
    "hasMore",
    "nextBeforeRevision"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "format": "date",
      "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])))$"
    }
  }
}