FIWARE · Capability

FIWARE-NGSI v2 Specification — Attribute Value

FIWARE-NGSI v2 Specification — Attribute Value. 2 operations. Lead operation: Get Attribute Value. Self-contained Naftiko capability covering one Fiware business surface.

Run with Naftiko FiwareAttribute Value

What You Can Do

GET
Getattributevalue — Get Attribute Value
/v1/v2/entities/{entityid}/attrs/{attrname}/value
PUT
Updateattributevalue — Update Attribute Value
/v1/v2/entities/{entityid}/attrs/{attrname}/value

MCP Tools

get-attribute-value

Get Attribute Value

read-only idempotent
update-attribute-value

Update Attribute Value

idempotent

Capability Spec

ngsiv2-attribute-value.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FIWARE-NGSI v2 Specification — Attribute Value
  description: 'FIWARE-NGSI v2 Specification — Attribute Value. 2 operations. Lead operation: Get Attribute Value. Self-contained
    Naftiko capability covering one Fiware business surface.'
  tags:
  - Fiware
  - Attribute Value
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FIWARE_API_KEY: FIWARE_API_KEY
capability:
  consumes:
  - type: http
    namespace: ngsiv2-attribute-value
    baseUri: http://orion.lab.fiware.org
    description: FIWARE-NGSI v2 Specification — Attribute Value business capability. Self-contained, no shared references.
    resources:
    - name: v2-entities-entityId-attrs-attrName-value
      path: /v2/entities/{entityId}/attrs/{attrName}/value
      operations:
      - name: getattributevalue
        method: GET
        description: Get Attribute Value
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: entityId
          in: path
          type: string
          description: Id of the entity in question
          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: updateattributevalue
        method: PUT
        description: Update Attribute Value
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: entityId
          in: path
          type: string
          description: Id of the entity to be updated.
          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
  exposes:
  - type: rest
    namespace: ngsiv2-attribute-value-rest
    port: 8080
    description: REST adapter for FIWARE-NGSI v2 Specification — Attribute Value. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v2/entities/{entityid}/attrs/{attrname}/value
      name: v2-entities-entityid-attrs-attrname-value
      description: REST surface for v2-entities-entityId-attrs-attrName-value.
      operations:
      - method: GET
        name: getattributevalue
        description: Get Attribute Value
        call: ngsiv2-attribute-value.getattributevalue
        with:
          entityId: rest.entityId
          attrName: rest.attrName
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateattributevalue
        description: Update Attribute Value
        call: ngsiv2-attribute-value.updateattributevalue
        with:
          entityId: rest.entityId
          attrName: rest.attrName
          Content-Type: rest.Content-Type
          body: rest.body
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ngsiv2-attribute-value-mcp
    port: 9090
    transport: http
    description: MCP adapter for FIWARE-NGSI v2 Specification — Attribute Value. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-attribute-value
      description: Get Attribute Value
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ngsiv2-attribute-value.getattributevalue
      with:
        entityId: tools.entityId
        attrName: tools.attrName
        type: tools.type
      outputParameters:
      - type: object
        mapping: $.
    - name: update-attribute-value
      description: Update Attribute Value
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ngsiv2-attribute-value.updateattributevalue
      with:
        entityId: tools.entityId
        attrName: tools.attrName
        Content-Type: tools.Content-Type
        body: tools.body
        type: tools.type
      outputParameters:
      - type: object
        mapping: $.