naftiko: 1.0.0-alpha2 info: label: elastic.io Platform REST API — Contracts description: 'elastic.io Platform REST API — Contracts. 5 operations. Lead operation: Elastic.io List contracts. Self-contained Naftiko capability covering one Elastic Io business surface.' tags: - Elastic Io - Contracts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ELASTIC_IO_API_KEY: ELASTIC_IO_API_KEY capability: consumes: - type: http namespace: platform-contracts baseUri: https://api.elastic.io/v2 description: elastic.io Platform REST API — Contracts business capability. Self-contained, no shared references. resources: - name: contracts path: /contracts operations: - name: listcontracts method: GET description: Elastic.io List contracts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: contracts-contract_id path: /contracts/{contract_id} operations: - name: getcontract method: GET description: Elastic.io Get a contract outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecontract method: PATCH description: Elastic.io Update a contract outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: contracts-contract_id-members path: /contracts/{contract_id}/members operations: - name: listcontractmembers method: GET description: Elastic.io List contract members outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addcontractmember method: POST description: Elastic.io Add a contract member outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ELASTIC_IO_API_KEY}}' exposes: - type: rest namespace: platform-contracts-rest port: 8080 description: REST adapter for elastic.io Platform REST API — Contracts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contracts name: contracts description: REST surface for contracts. operations: - method: GET name: listcontracts description: Elastic.io List contracts call: platform-contracts.listcontracts outputParameters: - type: object mapping: $. - path: /v1/contracts/{contract-id} name: contracts-contract-id description: REST surface for contracts-contract_id. operations: - method: GET name: getcontract description: Elastic.io Get a contract call: platform-contracts.getcontract outputParameters: - type: object mapping: $. - method: PATCH name: updatecontract description: Elastic.io Update a contract call: platform-contracts.updatecontract with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/contracts/{contract-id}/members name: contracts-contract-id-members description: REST surface for contracts-contract_id-members. operations: - method: GET name: listcontractmembers description: Elastic.io List contract members call: platform-contracts.listcontractmembers outputParameters: - type: object mapping: $. - method: POST name: addcontractmember description: Elastic.io Add a contract member call: platform-contracts.addcontractmember with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-contracts-mcp port: 9090 transport: http description: MCP adapter for elastic.io Platform REST API — Contracts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: elastic-io-list-contracts description: Elastic.io List contracts hints: readOnly: true destructive: false idempotent: true call: platform-contracts.listcontracts outputParameters: - type: object mapping: $. - name: elastic-io-get-contract description: Elastic.io Get a contract hints: readOnly: true destructive: false idempotent: true call: platform-contracts.getcontract outputParameters: - type: object mapping: $. - name: elastic-io-update-contract description: Elastic.io Update a contract hints: readOnly: false destructive: false idempotent: true call: platform-contracts.updatecontract with: body: tools.body outputParameters: - type: object mapping: $. - name: elastic-io-list-contract-members description: Elastic.io List contract members hints: readOnly: true destructive: false idempotent: true call: platform-contracts.listcontractmembers outputParameters: - type: object mapping: $. - name: elastic-io-add-contract-member description: Elastic.io Add a contract member hints: readOnly: false destructive: false idempotent: false call: platform-contracts.addcontractmember with: body: tools.body outputParameters: - type: object mapping: $.