CNH · Capability

CNH FieldOps API — Operations

CNH FieldOps API — Operations. 1 operations. Lead operation: List operations by vehicle. Self-contained Naftiko capability covering one Cnh business surface.

Run with Naftiko CnhOperations

What You Can Do

GET
Listoperationsbyvehicle — List operations by vehicle
/v1/operations/by-vehicle/{vehicleid}

MCP Tools

list-operations-vehicle

List operations by vehicle

read-only idempotent

Capability Spec

fieldops-operations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CNH FieldOps API — Operations
  description: 'CNH FieldOps API — Operations. 1 operations. Lead operation: List operations by vehicle. Self-contained Naftiko
    capability covering one Cnh business surface.'
  tags:
  - Cnh
  - Operations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CNH_API_KEY: CNH_API_KEY
capability:
  consumes:
  - type: http
    namespace: fieldops-operations
    baseUri: https://api.fieldops.cnh.com
    description: CNH FieldOps API — Operations business capability. Self-contained, no shared references.
    resources:
    - name: operations-by-vehicle-vehicleId
      path: /operations/by-vehicle/{vehicleId}
      operations:
      - name: listoperationsbyvehicle
        method: GET
        description: List operations by vehicle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: vehicleId
          in: path
          type: string
          required: true
        - name: startDate
          in: query
          type: string
        - name: endDate
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.CNH_API_KEY}}'
  exposes:
  - type: rest
    namespace: fieldops-operations-rest
    port: 8080
    description: REST adapter for CNH FieldOps API — Operations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/operations/by-vehicle/{vehicleid}
      name: operations-by-vehicle-vehicleid
      description: REST surface for operations-by-vehicle-vehicleId.
      operations:
      - method: GET
        name: listoperationsbyvehicle
        description: List operations by vehicle
        call: fieldops-operations.listoperationsbyvehicle
        with:
          vehicleId: rest.vehicleId
          startDate: rest.startDate
          endDate: rest.endDate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fieldops-operations-mcp
    port: 9090
    transport: http
    description: MCP adapter for CNH FieldOps API — Operations. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-operations-vehicle
      description: List operations by vehicle
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fieldops-operations.listoperationsbyvehicle
      with:
        vehicleId: tools.vehicleId
        startDate: tools.startDate
        endDate: tools.endDate
      outputParameters:
      - type: object
        mapping: $.