Deel ACTION
Create EOR Contract
Create an EOR (employer of record) contract quote in Deel to hire a full-time employee in a country where your company doesn't have a legal entity. Use Get EOR Hiring Guide first to understand mandatory fields and compliance requirements for the target country.
employee_nationality and employment_country must be ISO 3166-1 alpha-2 codes (e.g., DE, US). employment_type must be one of: Full-time, Part-time. seniority_id is a numeric seniority level: 1=Junior, 2=Mid, 3=Senior, 4=Lead, 5=Principal/Staff, 6=Director, 7=Head of Dept, 8=VP, 9=SVP, 34=Not applicable. scope_of_work must be at least 100 characters long. See the documentation- Action
- Writes data
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Deel account once, then configure and run Create EOR Contract from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "deel-create-eor-contract",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
deel: { authProvisionId: "apn_xxxxxxx" },
clientTeamId: "Client Team ID",
clientLegalEntityId: "Client Legal Entity ID",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "deel-create-eor-contract",
"configured_props": {
"deel": { "authProvisionId": "apn_xxxxxxx" },
"clientTeamId": "Client Team ID",
"clientLegalEntityId": "Client Legal Entity ID"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "deel",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "deel-create-eor-contract",
arguments: {
clientTeamId: "Client Team ID",
clientLegalEntityId: "Client Legal Entity ID",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
clientTeamId Client Team ID | string | The ID of the client team (department) for this contract. Retrieve from your Deel organization settings. Required |
clientLegalEntityId Client Legal Entity ID | string | The ID of the client legal entity (company) for this contract. Retrieve from your Deel organization settings. Required |
jobTitle Job Title | string | The employee's job title (e.g., Paleobotanist, Software Engineer). Required |
seniorityId Seniority ID | integer | Numeric seniority level: 1=Junior, 2=Mid, 3=Senior, 4=Lead, 5=Principal/Staff, 6=Director, 7=Head of Dept, 8=VP, 9=SVP, 34=Not applicable. Optional |
employeeFirstName Employee First Name | string | The employee's first (given) name. Required |
employeeLastName Employee Last Name | string | The employee's last (family) name. Required |
employeeEmail Employee Email | string | The employee's personal email address. Required |
employeeNationality Employee Nationality | string | ISO 3166-1 alpha-2 country code of the employee's nationality (e.g., DE, US). Required |
employmentCountry Employment Country | string | ISO 3166-1 alpha-2 country code where the employee will work (e.g., DE, US). Required |
employmentType Employment Type | string | One of: Full-time, Part-time. Optional |
startDate Start Date | string | The employment start date in ISO 8601 format (e.g., 2026-09-01). Required |
scopeOfWork Scope of Work | string | Description of the employee's role and responsibilities. Must be at least 100 characters long. Required |
workVisaRequired Work Visa Required | boolean | Set to true if the employee requires a work visa. Default: false. Optional |
probationPeriodDays Probation Period (Days) | integer | Probation period in days (e.g., 0, 30, 90). Required for some countries. Optional |
compensationCurrency Compensation Currency | string | ISO 4217 currency code for compensation (e.g., EUR, USD). Required |
compensationSalary Annual Salary | string | Annual salary amount (e.g., 80000). Provide this or Hourly Rate, not both. Optional |
compensationHourlyRate Hourly Rate | string | Hourly rate amount. Provide this or Annual Salary, not both. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- deel-create-eor-contract
- Version
- 0.0.2
- App
- Deel
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗