naftiko: 1.0.0-alpha2 info: label: Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Farms description: 'Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Farms. 4 operations. Lead operation: Leaf Agriculture Get all farms. Self-contained Naftiko capability covering one Leaf Agriculture business surface.' tags: - Leaf Agriculture - API Reference > Field Boundary Management > Farms 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-farms baseUri: '' description: Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Farms business capability. Self-contained, no shared references. resources: - name: services-fields-api-farms path: /services/fields/api/farms operations: - name: get method: GET description: Leaf Agriculture Get all farms outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Authorization in: header type: string - name: services-fields-api-users-leaf_user_id-farms path: /services/fields/api/users/{leaf_user_id}/farms operations: - name: post method: POST description: Leaf Agriculture Create a farm outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: leaf_user_id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: services-fields-api-users-leaf_user_id-farms-farm_id path: /services/fields/api/users/{leaf_user_id}/farms/{farm_id} operations: - name: get method: GET description: Leaf Agriculture Get a farm outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: leaf_user_id in: path type: string required: true - name: farm_id in: path type: string required: true - name: put method: PUT description: Leaf Agriculture Update a farm outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: leaf_user_id in: path type: string required: true - name: farm_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-farms-rest port: 8080 description: REST adapter for Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Farms. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/fields/api/farms name: services-fields-api-farms description: REST surface for services-fields-api-farms. operations: - method: GET name: get description: Leaf Agriculture Get all farms call: leaf-agriculture-api-reference-field-boundary-management-farms.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/services/fields/api/users/{leaf-user-id}/farms name: services-fields-api-users-leaf-user-id-farms description: REST surface for services-fields-api-users-leaf_user_id-farms. operations: - method: POST name: post description: Leaf Agriculture Create a farm call: leaf-agriculture-api-reference-field-boundary-management-farms.post with: Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/services/fields/api/users/{leaf-user-id}/farms/{farm-id} name: services-fields-api-users-leaf-user-id-farms-farm-id description: REST surface for services-fields-api-users-leaf_user_id-farms-farm_id. operations: - method: GET name: get description: Leaf Agriculture Get a farm call: leaf-agriculture-api-reference-field-boundary-management-farms.get with: Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id farm_id: rest.farm_id outputParameters: - type: object mapping: $. - method: PUT name: put description: Leaf Agriculture Update a farm call: leaf-agriculture-api-reference-field-boundary-management-farms.put with: Authorization: rest.Authorization leaf_user_id: rest.leaf_user_id farm_id: rest.farm_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: leaf-agriculture-api-reference-field-boundary-management-farms-mcp port: 9090 transport: http description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Field Boundary Management > Farms. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: leaf-agriculture-get-all-farms description: Leaf Agriculture Get all farms hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-field-boundary-management-farms.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: leaf-agriculture-create-farm description: Leaf Agriculture Create a farm hints: readOnly: false destructive: false idempotent: false call: leaf-agriculture-api-reference-field-boundary-management-farms.post with: Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id body: tools.body outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-farm description: Leaf Agriculture Get a farm hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-field-boundary-management-farms.get with: Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id farm_id: tools.farm_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-update-farm description: Leaf Agriculture Update a farm hints: readOnly: false destructive: false idempotent: true call: leaf-agriculture-api-reference-field-boundary-management-farms.put with: Authorization: tools.Authorization leaf_user_id: tools.leaf_user_id farm_id: tools.farm_id body: tools.body outputParameters: - type: object mapping: $.