Leaf Agriculture · Capability

Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries

Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries. 4 operations. Lead operation: Leaf Agriculture Get all boundaries of a field. Self-contained Naftiko capability covering one Leaf Agriculture business surface.

Run with Naftiko Leaf AgricultureAPI Reference > Field Boundary Management > Boundaries

What You Can Do

GET
Get — Leaf Agriculture Get all boundaries of a field
/v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundaries
GET
Get — Leaf Agriculture Get a boundary of a field
/v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundaries/{boundary-id}
GET
Get — Leaf Agriculture Get active boundary of a field
/v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundary
PUT
Put — Leaf Agriculture Update active boundary
/v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundary

MCP Tools

leaf-agriculture-get-all-boundaries

Leaf Agriculture Get all boundaries of a field

read-only idempotent
leaf-agriculture-get-boundary-field

Leaf Agriculture Get a boundary of a field

read-only idempotent
leaf-agriculture-get-active-boundary

Leaf Agriculture Get active boundary of a field

read-only idempotent
leaf-agriculture-update-active-boundary

Leaf Agriculture Update active boundary

idempotent

Capability Spec

leaf-agriculture-api-reference-field-boundary-management-boundaries.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries
  description: 'Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries. 4 operations. Lead operation:
    Leaf Agriculture Get all boundaries of a field. Self-contained Naftiko capability covering one Leaf Agriculture business
    surface.'
  tags:
  - Leaf Agriculture
  - API Reference > Field Boundary Management > Boundaries
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LEAF_AGRICULTURE_API_KEY: LEAF_AGRICULTURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: leaf-agriculture-api-reference-field-boundary-management-boundaries
    baseUri: ''
    description: Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries business capability. Self-contained,
      no shared references.
    resources:
    - name: services-fields-api-users-leaf_user_id-fields-field_id-boundaries
      path: /services/fields/api/users/{leaf_user_id}/fields/{field_id}/boundaries
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get all boundaries of a field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: field_id
          in: path
          type: string
          required: true
    - name: services-fields-api-users-leaf_user_id-fields-field_id-boundaries-boundary_id
      path: /services/fields/api/users/{leaf_user_id}/fields/{field_id}/boundaries/{boundary_id}
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get a boundary of a field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: field_id
          in: path
          type: string
          required: true
        - name: boundary_id
          in: path
          type: string
          required: true
    - name: services-fields-api-users-leaf_user_id-fields-field_id-boundary
      path: /services/fields/api/users/{leaf_user_id}/fields/{field_id}/boundary
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get active boundary of a field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: field_id
          in: path
          type: string
          required: true
      - name: put
        method: PUT
        description: Leaf Agriculture Update active boundary
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: field_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: leaf-agriculture-api-reference-field-boundary-management-boundaries-rest
    port: 8080
    description: REST adapter for Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries. One
      Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundaries
      name: services-fields-api-users-leaf-user-id-fields-field-id-boundaries
      description: REST surface for services-fields-api-users-leaf_user_id-fields-field_id-boundaries.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get all boundaries of a field
        call: leaf-agriculture-api-reference-field-boundary-management-boundaries.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          field_id: rest.field_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundaries/{boundary-id}
      name: services-fields-api-users-leaf-user-id-fields-field-id-boundaries-boundary-id
      description: REST surface for services-fields-api-users-leaf_user_id-fields-field_id-boundaries-boundary_id.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get a boundary of a field
        call: leaf-agriculture-api-reference-field-boundary-management-boundaries.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          field_id: rest.field_id
          boundary_id: rest.boundary_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/fields/api/users/{leaf-user-id}/fields/{field-id}/boundary
      name: services-fields-api-users-leaf-user-id-fields-field-id-boundary
      description: REST surface for services-fields-api-users-leaf_user_id-fields-field_id-boundary.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get active boundary of a field
        call: leaf-agriculture-api-reference-field-boundary-management-boundaries.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          field_id: rest.field_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Leaf Agriculture Update active boundary
        call: leaf-agriculture-api-reference-field-boundary-management-boundaries.put
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          field_id: rest.field_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: leaf-agriculture-api-reference-field-boundary-management-boundaries-mcp
    port: 9090
    transport: http
    description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Boundaries. One tool
      per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: leaf-agriculture-get-all-boundaries
      description: Leaf Agriculture Get all boundaries of a field
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-field-boundary-management-boundaries.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        field_id: tools.field_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-boundary-field
      description: Leaf Agriculture Get a boundary of a field
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-field-boundary-management-boundaries.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        field_id: tools.field_id
        boundary_id: tools.boundary_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-active-boundary
      description: Leaf Agriculture Get active boundary of a field
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-field-boundary-management-boundaries.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        field_id: tools.field_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-update-active-boundary
      description: Leaf Agriculture Update active boundary
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-field-boundary-management-boundaries.put
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        field_id: tools.field_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.