FIWARE · Capability

ETSI ISG CIM / NGSI-LD API — Context Information

ETSI ISG CIM / NGSI-LD API — Context Information. 8 operations. Lead operation: Context Information. Self-contained Naftiko capability covering one Fiware business surface.

Run with Naftiko FiwareContext Information

What You Can Do

GET
Queryentities — Retrieve a set of entities which matches a specific query from an NGSI-LD system
/v1/entities
POST
Createentity — Create a new Entity within an NGSI-LD system
/v1/entities
GET
Retrieveentitybyid — Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be retrieved by using query parameters
/v1/entities/{entityid}
DELETE
Removeentitybyid — Removes an specific Entity from an NGSI-LD system
/v1/entities/{entityid}
POST
Appendentityattrs — Append new Entity attributes to an existing Entity within an NGSI-LD system
/v1/entities/{entityid}/attrs
PATCH
Updateentityattrs — Update existing Entity attributes within an NGSI-LD system
/v1/entities/{entityid}/attrs
PATCH
Partialattrupdate — Update existing Entity attributes within an NGSI-LD system
/v1/entities/{entityid}/attrs/{attrid}
DELETE
Removeentityattr — Removes an existing Entity attribute within an NGSI-LD system
/v1/entities/{entityid}/attrs/{attrid}

MCP Tools

retrieve-set-entities-which-matches

Retrieve a set of entities which matches a specific query from an NGSI-LD system

read-only idempotent
create-new-entity-within-ngsi

Create a new Entity within an NGSI-LD system

retrieve-specific-entity-ngsi-ld

Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be retrieved by using query parameters

read-only idempotent
removes-specific-entity-ngsi-ld

Removes an specific Entity from an NGSI-LD system

idempotent
append-new-entity-attributes-existing

Append new Entity attributes to an existing Entity within an NGSI-LD system

update-existing-entity-attributes-within

Update existing Entity attributes within an NGSI-LD system

idempotent
update-existing-entity-attributes-within-2

Update existing Entity attributes within an NGSI-LD system

idempotent
removes-existing-entity-attribute-within

Removes an existing Entity attribute within an NGSI-LD system

idempotent

Capability Spec

ngsi-ld-context-information.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ETSI ISG CIM / NGSI-LD API — Context Information
  description: 'ETSI ISG CIM / NGSI-LD API — Context Information. 8 operations. Lead operation: Context Information. Self-contained
    Naftiko capability covering one Fiware business surface.'
  tags:
  - Fiware
  - Context Information
  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-information
    baseUri: ''
    description: ETSI ISG CIM / NGSI-LD API — Context Information business capability. Self-contained, no shared references.
    resources:
    - name: entities
      path: /entities/
      operations:
      - name: queryentities
        method: GET
        description: Retrieve a set of entities which matches a specific query from an NGSI-LD system
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createentity
        method: POST
        description: Create a new Entity 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: entities-entityId
      path: /entities/{entityId}
      operations:
      - name: retrieveentitybyid
        method: GET
        description: Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to
          be retrieved by using query parameters
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: removeentitybyid
        method: DELETE
        description: Removes an specific Entity from an NGSI-LD system
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: entities-entityId-attrs
      path: /entities/{entityId}/attrs/
      operations:
      - name: appendentityattrs
        method: POST
        description: Append new Entity attributes to an existing Entity 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: updateentityattrs
        method: PATCH
        description: Update existing Entity attributes 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: entities-entityId-attrs-attrId
      path: /entities/{entityId}/attrs/{attrId}
      operations:
      - name: partialattrupdate
        method: PATCH
        description: Update existing Entity attributes 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: removeentityattr
        method: DELETE
        description: Removes an existing Entity attribute within an NGSI-LD system
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: ngsi-ld-context-information-rest
    port: 8080
    description: REST adapter for ETSI ISG CIM / NGSI-LD API — Context Information. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/entities
      name: entities
      description: REST surface for entities.
      operations:
      - method: GET
        name: queryentities
        description: Retrieve a set of entities which matches a specific query from an NGSI-LD system
        call: ngsi-ld-context-information.queryentities
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createentity
        description: Create a new Entity within an NGSI-LD system
        call: ngsi-ld-context-information.createentity
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/entities/{entityid}
      name: entities-entityid
      description: REST surface for entities-entityId.
      operations:
      - method: GET
        name: retrieveentitybyid
        description: Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to
          be retrieved by using query parameters
        call: ngsi-ld-context-information.retrieveentitybyid
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeentitybyid
        description: Removes an specific Entity from an NGSI-LD system
        call: ngsi-ld-context-information.removeentitybyid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/entities/{entityid}/attrs
      name: entities-entityid-attrs
      description: REST surface for entities-entityId-attrs.
      operations:
      - method: POST
        name: appendentityattrs
        description: Append new Entity attributes to an existing Entity within an NGSI-LD system
        call: ngsi-ld-context-information.appendentityattrs
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateentityattrs
        description: Update existing Entity attributes within an NGSI-LD system
        call: ngsi-ld-context-information.updateentityattrs
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/entities/{entityid}/attrs/{attrid}
      name: entities-entityid-attrs-attrid
      description: REST surface for entities-entityId-attrs-attrId.
      operations:
      - method: PATCH
        name: partialattrupdate
        description: Update existing Entity attributes within an NGSI-LD system
        call: ngsi-ld-context-information.partialattrupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeentityattr
        description: Removes an existing Entity attribute within an NGSI-LD system
        call: ngsi-ld-context-information.removeentityattr
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ngsi-ld-context-information-mcp
    port: 9090
    transport: http
    description: MCP adapter for ETSI ISG CIM / NGSI-LD API — Context Information. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: retrieve-set-entities-which-matches
      description: Retrieve a set of entities which matches a specific query from an NGSI-LD system
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ngsi-ld-context-information.queryentities
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-entity-within-ngsi
      description: Create a new Entity within an NGSI-LD system
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ngsi-ld-context-information.createentity
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-specific-entity-ngsi-ld
      description: Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be
        retrieved by using query parameters
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ngsi-ld-context-information.retrieveentitybyid
      outputParameters:
      - type: object
        mapping: $.
    - name: removes-specific-entity-ngsi-ld
      description: Removes an specific Entity from an NGSI-LD system
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: ngsi-ld-context-information.removeentitybyid
      outputParameters:
      - type: object
        mapping: $.
    - name: append-new-entity-attributes-existing
      description: Append new Entity attributes to an existing Entity within an NGSI-LD system
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ngsi-ld-context-information.appendentityattrs
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-existing-entity-attributes-within
      description: Update existing Entity attributes within an NGSI-LD system
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ngsi-ld-context-information.updateentityattrs
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-existing-entity-attributes-within-2
      description: Update existing Entity attributes within an NGSI-LD system
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ngsi-ld-context-information.partialattrupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: removes-existing-entity-attribute-within
      description: Removes an existing Entity attribute within an NGSI-LD system
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: ngsi-ld-context-information.removeentityattr
      outputParameters:
      - type: object
        mapping: $.