naftiko: 1.0.0-alpha2 info: label: Leaf Agriculture Leaf API — API Reference > Irrigation description: 'Leaf Agriculture Leaf API — API Reference > Irrigation. 5 operations. Lead operation: Leaf Agriculture Get all irrigation equipment. Self-contained Naftiko capability covering one Leaf Agriculture business surface.' tags: - Leaf Agriculture - API Reference > Irrigation 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-irrigation baseUri: '' description: Leaf Agriculture Leaf API — API Reference > Irrigation business capability. Self-contained, no shared references. resources: - name: services-irrigation-api-users-leaf_user_id-irrigation-equipment path: /services/irrigation/api/users/{leaf_user_id}/irrigation-equipment/ operations: - name: get method: GET description: Leaf Agriculture Get all irrigation equipment 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: services-irrigation-api-users-leaf_user_id-irrigation-equipment-equipment_id path: /services/irrigation/api/users/{leaf_user_id}/irrigation-equipment/{equipment_id} operations: - name: get method: GET description: Leaf Agriculture Get an irrigation equipment 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: equipment_id in: path type: string required: true - name: services-irrigation-api-users-leaf_user_id-irrigation-applied-irrigation path: /services/irrigation/api/users/{leaf_user_id}/irrigation/applied-irrigation operations: - name: get method: GET description: Leaf Agriculture Get as-applied irrigation 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: services-irrigation-api-users-leaf_user_id-irrigation-fields path: /services/irrigation/api/users/{leaf_user_id}/irrigation/fields operations: - name: get method: GET description: Leaf Agriculture Get all irrigated fields 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: services-irrigation-api-users-leaf_user_id-irrigation-fields-field_id path: /services/irrigation/api/users/{leaf_user_id}/irrigation/fields/{field_id} operations: - name: get method: GET description: Leaf Agriculture Get an irrigated 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 exposes: - type: rest namespace: leaf-agriculture-api-reference-irrigation-rest port: 8080 description: REST adapter for Leaf Agriculture Leaf API — API Reference > Irrigation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/irrigation/api/users/{leaf-user-id}/irrigation-equipment name: services-irrigation-api-users-leaf-user-id-irrigation-equipment description: REST surface for services-irrigation-api-users-leaf_user_id-irrigation-equipment. operations: - method: GET name: get description: Leaf Agriculture Get all irrigation equipment call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id outputParameters: - type: object mapping: $. - path: /v1/services/irrigation/api/users/{leaf-user-id}/irrigation-equipment/{equipment-id} name: services-irrigation-api-users-leaf-user-id-irrigation-equipment-equipment-id description: REST surface for services-irrigation-api-users-leaf_user_id-irrigation-equipment-equipment_id. operations: - method: GET name: get description: Leaf Agriculture Get an irrigation equipment call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id equipment_id: rest.equipment_id outputParameters: - type: object mapping: $. - path: /v1/services/irrigation/api/users/{leaf-user-id}/irrigation/applied-irrigation name: services-irrigation-api-users-leaf-user-id-irrigation-applied-irrigation description: REST surface for services-irrigation-api-users-leaf_user_id-irrigation-applied-irrigation. operations: - method: GET name: get description: Leaf Agriculture Get as-applied irrigation call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id outputParameters: - type: object mapping: $. - path: /v1/services/irrigation/api/users/{leaf-user-id}/irrigation/fields name: services-irrigation-api-users-leaf-user-id-irrigation-fields description: REST surface for services-irrigation-api-users-leaf_user_id-irrigation-fields. operations: - method: GET name: get description: Leaf Agriculture Get all irrigated fields call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id outputParameters: - type: object mapping: $. - path: /v1/services/irrigation/api/users/{leaf-user-id}/irrigation/fields/{field-id} name: services-irrigation-api-users-leaf-user-id-irrigation-fields-field-id description: REST surface for services-irrigation-api-users-leaf_user_id-irrigation-fields-field_id. operations: - method: GET name: get description: Leaf Agriculture Get an irrigated field call: leaf-agriculture-api-reference-irrigation.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: $. - type: mcp namespace: leaf-agriculture-api-reference-irrigation-mcp port: 9090 transport: http description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Irrigation. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: leaf-agriculture-get-all-irrigation description: Leaf Agriculture Get all irrigation equipment hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-irrigation-equipment description: Leaf Agriculture Get an irrigation equipment hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id equipment_id: tools.equipment_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-applied-irrigation description: Leaf Agriculture Get as-applied irrigation hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-all-irrigated description: Leaf Agriculture Get all irrigated fields hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-irrigation.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-irrigated-field description: Leaf Agriculture Get an irrigated field hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-irrigation.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: $.