naftiko: 1.0.0-alpha2 info: label: ServiceNow Table API — Table Records description: 'ServiceNow Table API — Table Records. 6 operations. Lead operation: Servicenow List Records From a Table. Self-contained Naftiko capability covering one Servicenow business surface.' tags: - Servicenow - Table Records created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SERVICENOW_API_KEY: SERVICENOW_API_KEY capability: consumes: - type: http namespace: table-table-records baseUri: https://{instance}.service-now.com/api/now description: ServiceNow Table API — Table Records business capability. Self-contained, no shared references. resources: - name: table-tableName path: /table/{tableName} operations: - name: listrecords method: GET description: Servicenow List Records From a Table outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createrecord method: POST description: Servicenow Create a Record in a Table outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: table-tableName-sys_id path: /table/{tableName}/{sys_id} operations: - name: getrecord method: GET description: Servicenow Retrieve a Single Record outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updaterecord method: PUT description: Servicenow Update a Record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: patchrecord method: PATCH description: Servicenow Patch a Record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleterecord method: DELETE description: Servicenow Delete a Record outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SERVICENOW_API_KEY}}' exposes: - type: rest namespace: table-table-records-rest port: 8080 description: REST adapter for ServiceNow Table API — Table Records. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/table/{tablename} name: table-tablename description: REST surface for table-tableName. operations: - method: GET name: listrecords description: Servicenow List Records From a Table call: table-table-records.listrecords outputParameters: - type: object mapping: $. - method: POST name: createrecord description: Servicenow Create a Record in a Table call: table-table-records.createrecord with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/table/{tablename}/{sys-id} name: table-tablename-sys-id description: REST surface for table-tableName-sys_id. operations: - method: GET name: getrecord description: Servicenow Retrieve a Single Record call: table-table-records.getrecord outputParameters: - type: object mapping: $. - method: PUT name: updaterecord description: Servicenow Update a Record call: table-table-records.updaterecord with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: patchrecord description: Servicenow Patch a Record call: table-table-records.patchrecord with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleterecord description: Servicenow Delete a Record call: table-table-records.deleterecord outputParameters: - type: object mapping: $. - type: mcp namespace: table-table-records-mcp port: 9090 transport: http description: MCP adapter for ServiceNow Table API — Table Records. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: servicenow-list-records-table description: Servicenow List Records From a Table hints: readOnly: true destructive: false idempotent: true call: table-table-records.listrecords outputParameters: - type: object mapping: $. - name: servicenow-create-record-table description: Servicenow Create a Record in a Table hints: readOnly: false destructive: false idempotent: false call: table-table-records.createrecord with: body: tools.body outputParameters: - type: object mapping: $. - name: servicenow-retrieve-single-record description: Servicenow Retrieve a Single Record hints: readOnly: true destructive: false idempotent: true call: table-table-records.getrecord outputParameters: - type: object mapping: $. - name: servicenow-update-record description: Servicenow Update a Record hints: readOnly: false destructive: false idempotent: true call: table-table-records.updaterecord with: body: tools.body outputParameters: - type: object mapping: $. - name: servicenow-patch-record description: Servicenow Patch a Record hints: readOnly: false destructive: false idempotent: true call: table-table-records.patchrecord with: body: tools.body outputParameters: - type: object mapping: $. - name: servicenow-delete-record description: Servicenow Delete a Record hints: readOnly: false destructive: true idempotent: true call: table-table-records.deleterecord outputParameters: - type: object mapping: $.