osisoft-pi · Capability

OSIsoft PI Web API — Attributes

OSIsoft PI Web API — Attributes. 1 operations. Lead operation: List element attributes. Self-contained Naftiko capability covering one Osisoft Pi business surface.

Run with Naftiko Osisoft PiAttributes

What You Can Do

GET
Listattributes — List element attributes
/v1/elements/{webid}/attributes

MCP Tools

list-element-attributes

List element attributes

read-only idempotent

Capability Spec

web-attributes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OSIsoft PI Web API — Attributes
  description: 'OSIsoft PI Web API — Attributes. 1 operations. Lead operation: List element attributes. Self-contained Naftiko
    capability covering one Osisoft Pi business surface.'
  tags:
  - Osisoft Pi
  - Attributes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OSISOFT_PI_API_KEY: OSISOFT_PI_API_KEY
capability:
  consumes:
  - type: http
    namespace: web-attributes
    baseUri: https://{piwebapi_host}/piwebapi
    description: OSIsoft PI Web API — Attributes business capability. Self-contained, no shared references.
    resources:
    - name: elements-webId-attributes
      path: /elements/{webId}/attributes
      operations:
      - name: listattributes
        method: GET
        description: List element attributes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: nameFilter
          in: query
          type: string
        - name: selectedFields
          in: query
          type: string
    authentication:
      type: basic
      username: '{{env.OSISOFT_PI_USER}}'
      password: '{{env.OSISOFT_PI_PASS}}'
  exposes:
  - type: rest
    namespace: web-attributes-rest
    port: 8080
    description: REST adapter for OSIsoft PI Web API — Attributes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/elements/{webid}/attributes
      name: elements-webid-attributes
      description: REST surface for elements-webId-attributes.
      operations:
      - method: GET
        name: listattributes
        description: List element attributes
        call: web-attributes.listattributes
        with:
          nameFilter: rest.nameFilter
          selectedFields: rest.selectedFields
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: web-attributes-mcp
    port: 9090
    transport: http
    description: MCP adapter for OSIsoft PI Web API — Attributes. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-element-attributes
      description: List element attributes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: web-attributes.listattributes
      with:
        nameFilter: tools.nameFilter
        selectedFields: tools.selectedFields
      outputParameters:
      - type: object
        mapping: $.