Deel · Capability

Endpoints — subpackage_terminations

Endpoints — subpackage_terminations. 2 operations. Lead operation: Delete Contract Termination Request. Self-contained Naftiko capability covering one Deel business surface.

Run with Naftiko Deelsubpackage_terminations

What You Can Do

DELETE
Deletecontracttermination — Delete Contract Termination Request
/v1/contracts/{contract-id}/terminations
POST
Createcontracttermination — Terminate contract
/v1/contracts/{contract-id}/terminations

MCP Tools

delete-contract-termination-request

Delete Contract Termination Request

idempotent
terminate-contract

Terminate contract

Capability Spec

contracts-endpoints-subpackage-terminations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Endpoints — subpackage_terminations
  description: 'Endpoints — subpackage_terminations. 2 operations. Lead operation: Delete Contract Termination Request. Self-contained
    Naftiko capability covering one Deel business surface.'
  tags:
  - Deel
  - subpackage_terminations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DEEL_API_KEY: DEEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: contracts-endpoints-subpackage-terminations
    baseUri: https://api.letsdeel.com/rest/v2
    description: Endpoints — subpackage_terminations business capability. Self-contained, no shared references.
    resources:
    - name: contracts-contract_id-terminations
      path: /contracts/{contract_id}/terminations
      operations:
      - name: deletecontracttermination
        method: DELETE
        description: Delete Contract Termination Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: contract_id
          in: path
          type: string
          description: Unique identifier for the contract
          required: true
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
      - name: createcontracttermination
        method: POST
        description: Terminate contract
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: contract_id
          in: path
          type: string
          description: The unique identifier of the contractor contract
          required: true
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.DEEL_API_KEY}}'
  exposes:
  - type: rest
    namespace: contracts-endpoints-subpackage-terminations-rest
    port: 8080
    description: REST adapter for Endpoints — subpackage_terminations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/contracts/{contract-id}/terminations
      name: contracts-contract-id-terminations
      description: REST surface for contracts-contract_id-terminations.
      operations:
      - method: DELETE
        name: deletecontracttermination
        description: Delete Contract Termination Request
        call: contracts-endpoints-subpackage-terminations.deletecontracttermination
        with:
          contract_id: rest.contract_id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcontracttermination
        description: Terminate contract
        call: contracts-endpoints-subpackage-terminations.createcontracttermination
        with:
          contract_id: rest.contract_id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: contracts-endpoints-subpackage-terminations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Endpoints — subpackage_terminations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: delete-contract-termination-request
      description: Delete Contract Termination Request
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: contracts-endpoints-subpackage-terminations.deletecontracttermination
      with:
        contract_id: tools.contract_id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: terminate-contract
      description: Terminate contract
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: contracts-endpoints-subpackage-terminations.createcontracttermination
      with:
        contract_id: tools.contract_id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.