Trimble Agriculture · Capability

Trimble Agriculture Data API — Farms

Trimble Agriculture Data API — Farms. 5 operations. Lead operation: List Farms. Self-contained Naftiko capability covering one Trimble Agriculture business surface.

Run with Naftiko Trimble AgricultureFarms

What You Can Do

GET
Listfarms — List Farms
/v1/organizations/{organizationid}/farms
POST
Createfarm — Create Farm
/v1/organizations/{organizationid}/farms
GET
Getfarmbyid — Get Farm
/v1/organizations/{organizationid}/farms/{farmid}
PUT
Updatefarm — Update Farm
/v1/organizations/{organizationid}/farms/{farmid}
DELETE
Deletefarm — Delete Farm
/v1/organizations/{organizationid}/farms/{farmid}

MCP Tools

list-farms

List Farms

read-only idempotent
create-farm

Create Farm

get-farm

Get Farm

read-only idempotent
update-farm

Update Farm

idempotent
delete-farm

Delete Farm

idempotent

Capability Spec

trimble-agriculture-farms.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Trimble Agriculture Data API — Farms
  description: 'Trimble Agriculture Data API — Farms. 5 operations. Lead operation: List Farms. Self-contained Naftiko capability
    covering one Trimble Agriculture business surface.'
  tags:
  - Trimble Agriculture
  - Farms
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRIMBLE_AGRICULTURE_API_KEY: TRIMBLE_AGRICULTURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: trimble-agriculture-farms
    baseUri: https://cloud.api.trimble.com/Trimble-Ag-Software/externalApi/3.0
    description: Trimble Agriculture Data API — Farms business capability. Self-contained, no shared references.
    resources:
    - name: organizations-organizationId-farms
      path: /organizations/{organizationId}/farms
      operations:
      - name: listfarms
        method: GET
        description: List Farms
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          required: true
      - name: createfarm
        method: POST
        description: Create Farm
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: organizations-organizationId-farms-farmId
      path: /organizations/{organizationId}/farms/{farmId}
      operations:
      - name: getfarmbyid
        method: GET
        description: Get Farm
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          required: true
        - name: farmId
          in: path
          type: string
          required: true
      - name: updatefarm
        method: PUT
        description: Update Farm
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          required: true
        - name: farmId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletefarm
        method: DELETE
        description: Delete Farm
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          required: true
        - name: farmId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.TRIMBLE_AGRICULTURE_API_KEY}}'
  exposes:
  - type: rest
    namespace: trimble-agriculture-farms-rest
    port: 8080
    description: REST adapter for Trimble Agriculture Data API — Farms. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations/{organizationid}/farms
      name: organizations-organizationid-farms
      description: REST surface for organizations-organizationId-farms.
      operations:
      - method: GET
        name: listfarms
        description: List Farms
        call: trimble-agriculture-farms.listfarms
        with:
          organizationId: rest.organizationId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createfarm
        description: Create Farm
        call: trimble-agriculture-farms.createfarm
        with:
          organizationId: rest.organizationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organizationid}/farms/{farmid}
      name: organizations-organizationid-farms-farmid
      description: REST surface for organizations-organizationId-farms-farmId.
      operations:
      - method: GET
        name: getfarmbyid
        description: Get Farm
        call: trimble-agriculture-farms.getfarmbyid
        with:
          organizationId: rest.organizationId
          farmId: rest.farmId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefarm
        description: Update Farm
        call: trimble-agriculture-farms.updatefarm
        with:
          organizationId: rest.organizationId
          farmId: rest.farmId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletefarm
        description: Delete Farm
        call: trimble-agriculture-farms.deletefarm
        with:
          organizationId: rest.organizationId
          farmId: rest.farmId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trimble-agriculture-farms-mcp
    port: 9090
    transport: http
    description: MCP adapter for Trimble Agriculture Data API — Farms. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-farms
      description: List Farms
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trimble-agriculture-farms.listfarms
      with:
        organizationId: tools.organizationId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-farm
      description: Create Farm
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: trimble-agriculture-farms.createfarm
      with:
        organizationId: tools.organizationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-farm
      description: Get Farm
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trimble-agriculture-farms.getfarmbyid
      with:
        organizationId: tools.organizationId
        farmId: tools.farmId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-farm
      description: Update Farm
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: trimble-agriculture-farms.updatefarm
      with:
        organizationId: tools.organizationId
        farmId: tools.farmId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-farm
      description: Delete Farm
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: trimble-agriculture-farms.deletefarm
      with:
        organizationId: tools.organizationId
        farmId: tools.farmId
      outputParameters:
      - type: object
        mapping: $.