naftiko: 1.0.0-alpha2 info: label: ServiceNow Contact API — Contact description: 'ServiceNow Contact API — Contact. 3 operations. Lead operation: Servicenow Retrieve Contacts. Self-contained Naftiko capability covering one Servicenow business surface.' tags: - Servicenow - Contact created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SERVICENOW_API_KEY: SERVICENOW_API_KEY capability: consumes: - type: http namespace: contact-contact baseUri: https://{instance}.servicenow.com/api/now description: ServiceNow Contact API — Contact business capability. Self-contained, no shared references. resources: - name: contact path: /contact operations: - name: getcontacts method: GET description: Servicenow Retrieve Contacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sysparm_query in: query type: string description: Encoded query used to filter the result set. Supports order by using ORDERBY and ORDERBYDESC clauses. - name: sysparm_limit in: query type: integer description: Maximum number of records to return - name: sysparm_offset in: query type: integer description: Starting record index for pagination (do not pass negative numbers) - name: createcontact method: POST description: Servicenow Create a Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: contact-id path: /contact/{id} operations: - name: getcontactbyid method: GET description: Servicenow Retrieve a Specific Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Sys_id of the contact to retrieve required: true authentication: type: basic username: '{{env.SERVICENOW_USER}}' password: '{{env.SERVICENOW_PASS}}' exposes: - type: rest namespace: contact-contact-rest port: 8080 description: REST adapter for ServiceNow Contact API — Contact. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contact name: contact description: REST surface for contact. operations: - method: GET name: getcontacts description: Servicenow Retrieve Contacts call: contact-contact.getcontacts with: sysparm_query: rest.sysparm_query sysparm_limit: rest.sysparm_limit sysparm_offset: rest.sysparm_offset outputParameters: - type: object mapping: $. - method: POST name: createcontact description: Servicenow Create a Contact call: contact-contact.createcontact with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/contact/{id} name: contact-id description: REST surface for contact-id. operations: - method: GET name: getcontactbyid description: Servicenow Retrieve a Specific Contact call: contact-contact.getcontactbyid with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: contact-contact-mcp port: 9090 transport: http description: MCP adapter for ServiceNow Contact API — Contact. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: servicenow-retrieve-contacts description: Servicenow Retrieve Contacts hints: readOnly: true destructive: false idempotent: true call: contact-contact.getcontacts with: sysparm_query: tools.sysparm_query sysparm_limit: tools.sysparm_limit sysparm_offset: tools.sysparm_offset outputParameters: - type: object mapping: $. - name: servicenow-create-contact description: Servicenow Create a Contact hints: readOnly: false destructive: false idempotent: false call: contact-contact.createcontact with: body: tools.body outputParameters: - type: object mapping: $. - name: servicenow-retrieve-specific-contact description: Servicenow Retrieve a Specific Contact hints: readOnly: true destructive: false idempotent: true call: contact-contact.getcontactbyid with: id: tools.id outputParameters: - type: object mapping: $.