naftiko: 1.0.0-alpha2 info: label: ETSI ISG CIM / NGSI-LD API — Context Sources description: 'ETSI ISG CIM / NGSI-LD API — Context Sources. 9 operations. Lead operation: Context Sources. Self-contained Naftiko capability covering one Fiware business surface.' tags: - Fiware - Context Sources created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FIWARE_API_KEY: FIWARE_API_KEY capability: consumes: - type: http namespace: ngsi-ld-context-sources baseUri: '' description: ETSI ISG CIM / NGSI-LD API — Context Sources business capability. Self-contained, no shared references. resources: - name: csourceRegistrations path: /csourceRegistrations/ operations: - name: querycsources method: GET description: Retrieve a set of context sources which matches a specific query from an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. - name: registercsource method: POST description: Registers a new context source within an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: csourceRegistrations-registrationId path: /csourceRegistrations/{registrationId} operations: - name: retrievecsource method: GET description: Retrieves a specific context source registration from an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. - name: removecsource method: DELETE description: Removes an specific context source registration within an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. - name: csourceSubscriptions path: /csourceSubscriptions/ operations: - name: retrievecsourcesubscriptions method: GET description: Retrieves the context source discovery subscriptions available in an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcsourcesubscription method: POST description: Creates a context source discovery Subscription within an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: csourceSubscriptions-subscriptionId path: /csourceSubscriptions/{subscriptionId} operations: - name: retrievecsourcesubscriptionsbyid method: GET description: Retrieves a specific Subscription from an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecsourcesubscription method: PATCH description: Updates a specific context source discovery Subscription within an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: removecsourcesubscription method: DELETE description: Removes a specific Context Source Subscription from an NGSI-LD system outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: ngsi-ld-context-sources-rest port: 8080 description: REST adapter for ETSI ISG CIM / NGSI-LD API — Context Sources. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/csourceregistrations name: csourceregistrations description: REST surface for csourceRegistrations. operations: - method: GET name: querycsources description: Retrieve a set of context sources which matches a specific query from an NGSI-LD system call: ngsi-ld-context-sources.querycsources outputParameters: - type: object mapping: $. - method: POST name: registercsource description: Registers a new context source within an NGSI-LD system call: ngsi-ld-context-sources.registercsource with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/csourceregistrations/{registrationid} name: csourceregistrations-registrationid description: REST surface for csourceRegistrations-registrationId. operations: - method: GET name: retrievecsource description: Retrieves a specific context source registration from an NGSI-LD system call: ngsi-ld-context-sources.retrievecsource outputParameters: - type: object mapping: $. - method: DELETE name: removecsource description: Removes an specific context source registration within an NGSI-LD system call: ngsi-ld-context-sources.removecsource outputParameters: - type: object mapping: $. - path: /v1/csourcesubscriptions name: csourcesubscriptions description: REST surface for csourceSubscriptions. operations: - method: GET name: retrievecsourcesubscriptions description: Retrieves the context source discovery subscriptions available in an NGSI-LD system call: ngsi-ld-context-sources.retrievecsourcesubscriptions outputParameters: - type: object mapping: $. - method: POST name: createcsourcesubscription description: Creates a context source discovery Subscription within an NGSI-LD system call: ngsi-ld-context-sources.createcsourcesubscription with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/csourcesubscriptions/{subscriptionid} name: csourcesubscriptions-subscriptionid description: REST surface for csourceSubscriptions-subscriptionId. operations: - method: GET name: retrievecsourcesubscriptionsbyid description: Retrieves a specific Subscription from an NGSI-LD system call: ngsi-ld-context-sources.retrievecsourcesubscriptionsbyid outputParameters: - type: object mapping: $. - method: PATCH name: updatecsourcesubscription description: Updates a specific context source discovery Subscription within an NGSI-LD system call: ngsi-ld-context-sources.updatecsourcesubscription with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removecsourcesubscription description: Removes a specific Context Source Subscription from an NGSI-LD system call: ngsi-ld-context-sources.removecsourcesubscription outputParameters: - type: object mapping: $. - type: mcp namespace: ngsi-ld-context-sources-mcp port: 9090 transport: http description: MCP adapter for ETSI ISG CIM / NGSI-LD API — Context Sources. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-set-context-sources-which description: Retrieve a set of context sources which matches a specific query from an NGSI-LD system hints: readOnly: true destructive: false idempotent: true call: ngsi-ld-context-sources.querycsources outputParameters: - type: object mapping: $. - name: registers-new-context-source-within description: Registers a new context source within an NGSI-LD system hints: readOnly: false destructive: false idempotent: false call: ngsi-ld-context-sources.registercsource with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieves-specific-context-source-registration description: Retrieves a specific context source registration from an NGSI-LD system hints: readOnly: true destructive: false idempotent: true call: ngsi-ld-context-sources.retrievecsource outputParameters: - type: object mapping: $. - name: removes-specific-context-source-registration description: Removes an specific context source registration within an NGSI-LD system hints: readOnly: false destructive: true idempotent: true call: ngsi-ld-context-sources.removecsource outputParameters: - type: object mapping: $. - name: retrieves-context-source-discovery-subscriptions description: Retrieves the context source discovery subscriptions available in an NGSI-LD system hints: readOnly: true destructive: false idempotent: true call: ngsi-ld-context-sources.retrievecsourcesubscriptions outputParameters: - type: object mapping: $. - name: creates-context-source-discovery-subscription description: Creates a context source discovery Subscription within an NGSI-LD system hints: readOnly: false destructive: false idempotent: false call: ngsi-ld-context-sources.createcsourcesubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieves-specific-subscription-ngsi-ld description: Retrieves a specific Subscription from an NGSI-LD system hints: readOnly: true destructive: false idempotent: true call: ngsi-ld-context-sources.retrievecsourcesubscriptionsbyid outputParameters: - type: object mapping: $. - name: updates-specific-context-source-discovery description: Updates a specific context source discovery Subscription within an NGSI-LD system hints: readOnly: false destructive: false idempotent: true call: ngsi-ld-context-sources.updatecsourcesubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: removes-specific-context-source-subscription description: Removes a specific Context Source Subscription from an NGSI-LD system hints: readOnly: false destructive: true idempotent: true call: ngsi-ld-context-sources.removecsourcesubscription outputParameters: - type: object mapping: $.