---
title: "Read employees"
description: "Search payroll employees or retrieve one employee. Search matches name, RFC, CURP, employee number, job title, or department."
language: en
canonical_url: "https://exac.mx/docs/en/mcp/tools/get_employees"
md_url: "https://exac.mx/docs/en/mcp/tools/get_employees.md"
---

# Read employees

Search payroll employees or retrieve one employee. Search matches name, RFC, CURP, employee number, job title, or department.

Tool: `get_employees`

## Purpose

Search or retrieve payroll employee records.

### Use when

You need an employee identifier or payroll profile.

### Do not use when

You need to create or update an employee.

| Detail | Value |
| --- | --- |
| Permissions | employees:read |
| Side effects | None |
| Idempotency | Idempotent |

## Input schema

```json
{
  "type": "object",
  "properties": {
    "input": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "search"
            },
            "query": {
              "type": "string",
              "minLength": 1
            },
            "cursor": {
              "type": "string"
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "required": [
            "operation"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "get"
            },
            "employeeId": {
              "type": "string"
            }
          },
          "required": [
            "operation",
            "employeeId"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "input"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
```

## Output schema

```json
{
  "type": "object",
  "properties": {
    "data": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "employees": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/__schema0"
              }
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "hasMore": {
              "type": "boolean"
            }
          },
          "required": [
            "employees",
            "nextCursor",
            "hasMore"
          ],
          "additionalProperties": false
        },
        {
          "$ref": "#/definitions/__schema0"
        }
      ]
    },
    "error": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "validation_error",
            "unauthenticated",
            "forbidden",
            "not_found",
            "method_not_allowed",
            "conflict",
            "idempotency_conflict",
            "operation_in_progress",
            "recovery_required",
            "rate_limited",
            "provider_unavailable",
            "internal"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "issues": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  },
                  "message": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "path",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "retryable": {
              "type": "boolean"
            },
            "retryAfterSeconds": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "object",
      "properties": {
        "employeeId": {
          "type": "string",
          "minLength": 1
        },
        "name": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "taxSystem": {
          "type": "string"
        },
        "employeeNumber": {
          "type": "string"
        },
        "curp": {
          "type": "string"
        },
        "socialSecurityNumber": {
          "type": "string"
        },
        "jobTitle": {
          "type": "string"
        },
        "department": {
          "type": "string"
        },
        "paymentFrequency": {
          "type": "string"
        },
        "employmentStartDate": {
          "type": "string"
        },
        "contractType": {
          "type": "string"
        },
        "workScheduleType": {
          "type": "string"
        },
        "regimeType": {
          "type": "string"
        },
        "rfc": {
          "type": "string"
        },
        "lastPayrollDate": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "employeeId",
        "name",
        "rfc"
      ],
      "additionalProperties": false
    }
  },
  "oneOf": [
    {
      "required": [
        "data"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
```

## Related tools

- [`save_employee`](/docs/en/mcp/tools/save_employee.md) — **Save employee**: Create or update one payroll employee. SAT catalog fields use their public business names and corresponding SAT codes.

- [`search_documents`](/docs/en/mcp/tools/search_documents.md) — **Search documents**: Search one public document family at a time. Use cfdi for income, credit-note, transfer, payroll, and payment-complement documents; use withholding, sales_receipt, quote, expense, declaration, tax_compliance_opinion, or sales_receipt_refund for the other families.

## Related workflow

[See the canonical workflows in the introduction](/docs/en.md)

## Equivalent REST operations

- [`GET /v1/employees`](/docs/en/api/catalog/employees/list-employees.md)

- [`GET /v1/employees/{employeeId}`](/docs/en/api/catalog/employees/get-employee.md)

Complete documentation: https://exac.mx/docs/en.md
Agent documentation index: https://exac.mx/docs/en/llms.txt
