naftiko: 1.0.0-alpha2 info: label: FIWARE-NGSI v2 Specification — Attributes description: 'FIWARE-NGSI v2 Specification — Attributes. 3 operations. Lead operation: Get attribute data. Self-contained Naftiko capability covering one Fiware business surface.' tags: - Fiware - Attributes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FIWARE_API_KEY: FIWARE_API_KEY capability: consumes: - type: http namespace: ngsiv2-attributes baseUri: http://orion.lab.fiware.org description: FIWARE-NGSI v2 Specification — Attributes business capability. Self-contained, no shared references. resources: - name: v2-entities-entityId-attrs-attrName path: /v2/entities/{entityId}/attrs/{attrName} operations: - name: getattributedata method: GET description: Get attribute data outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: entityId in: path type: string description: Id of the entity required: true - name: attrName in: path type: string description: Name of the attribute to be retrieved. required: true - name: type in: query type: string description: Entity type, to avoid ambiguity in case there are several - name: metadata in: query type: string description: A list of metadata names to include in the response. - name: updateattributedata method: PUT description: Update Attribute Data outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: entityId in: path type: string description: Id of the entity to update required: true - name: attrName in: path type: string description: Attribute name required: true - name: Content-Type in: header type: string required: true - name: body in: body type: string required: true - name: type in: query type: string description: Entity type, to avoid ambiguity in case there are several - name: removeasingleattribute method: DELETE description: Remove a Single Attribute outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: entityId in: path type: string description: Id of the entity. required: true - name: attrName in: path type: string description: Attribute name. required: true - name: type in: query type: string description: Entity type, to avoid ambiguity in case there are several exposes: - type: rest namespace: ngsiv2-attributes-rest port: 8080 description: REST adapter for FIWARE-NGSI v2 Specification — Attributes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/entities/{entityid}/attrs/{attrname} name: v2-entities-entityid-attrs-attrname description: REST surface for v2-entities-entityId-attrs-attrName. operations: - method: GET name: getattributedata description: Get attribute data call: ngsiv2-attributes.getattributedata with: entityId: rest.entityId attrName: rest.attrName type: rest.type metadata: rest.metadata outputParameters: - type: object mapping: $. - method: PUT name: updateattributedata description: Update Attribute Data call: ngsiv2-attributes.updateattributedata with: entityId: rest.entityId attrName: rest.attrName Content-Type: rest.Content-Type body: rest.body type: rest.type outputParameters: - type: object mapping: $. - method: DELETE name: removeasingleattribute description: Remove a Single Attribute call: ngsiv2-attributes.removeasingleattribute with: entityId: rest.entityId attrName: rest.attrName type: rest.type outputParameters: - type: object mapping: $. - type: mcp namespace: ngsiv2-attributes-mcp port: 9090 transport: http description: MCP adapter for FIWARE-NGSI v2 Specification — Attributes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-attribute-data description: Get attribute data hints: readOnly: true destructive: false idempotent: true call: ngsiv2-attributes.getattributedata with: entityId: tools.entityId attrName: tools.attrName type: tools.type metadata: tools.metadata outputParameters: - type: object mapping: $. - name: update-attribute-data description: Update Attribute Data hints: readOnly: false destructive: false idempotent: true call: ngsiv2-attributes.updateattributedata with: entityId: tools.entityId attrName: tools.attrName Content-Type: tools.Content-Type body: tools.body type: tools.type outputParameters: - type: object mapping: $. - name: remove-single-attribute description: Remove a Single Attribute hints: readOnly: false destructive: true idempotent: true call: ngsiv2-attributes.removeasingleattribute with: entityId: tools.entityId attrName: tools.attrName type: tools.type outputParameters: - type: object mapping: $.