naftiko: 1.0.0-alpha2 info: label: PTC ThingWorx REST API — Events description: 'PTC ThingWorx REST API — Events. 2 operations. Lead operation: Query event history. Self-contained Naftiko capability covering one Ptc Thingworx business surface.' tags: - Ptc Thingworx - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PTC_THINGWORX_API_KEY: PTC_THINGWORX_API_KEY capability: consumes: - type: http namespace: rest-events baseUri: https://{host}/Thingworx description: PTC ThingWorx REST API — Events business capability. Self-contained, no shared references. resources: - name: Things-thingName-EventHistory path: /Things/{thingName}/EventHistory operations: - name: geteventhistory method: GET description: Query event history outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: startDate in: query type: integer - name: endDate in: query type: integer - name: maxItems in: query type: integer - name: Things-thingName-Events path: /Things/{thingName}/Events operations: - name: getthingevents method: GET description: List thing events outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PTC_THINGWORX_API_KEY}}' exposes: - type: rest namespace: rest-events-rest port: 8080 description: REST adapter for PTC ThingWorx REST API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/things/{thingname}/eventhistory name: things-thingname-eventhistory description: REST surface for Things-thingName-EventHistory. operations: - method: GET name: geteventhistory description: Query event history call: rest-events.geteventhistory with: startDate: rest.startDate endDate: rest.endDate maxItems: rest.maxItems outputParameters: - type: object mapping: $. - path: /v1/things/{thingname}/events name: things-thingname-events description: REST surface for Things-thingName-Events. operations: - method: GET name: getthingevents description: List thing events call: rest-events.getthingevents outputParameters: - type: object mapping: $. - type: mcp namespace: rest-events-mcp port: 9090 transport: http description: MCP adapter for PTC ThingWorx REST API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: query-event-history description: Query event history hints: readOnly: true destructive: false idempotent: true call: rest-events.geteventhistory with: startDate: tools.startDate endDate: tools.endDate maxItems: tools.maxItems outputParameters: - type: object mapping: $. - name: list-thing-events description: List thing events hints: readOnly: true destructive: false idempotent: true call: rest-events.getthingevents outputParameters: - type: object mapping: $.