naftiko: 1.0.0-alpha2 info: label: Freshworks Freshdesk API — Roles description: 'Freshworks Freshdesk API — Roles. 2 operations. Lead operation: List all roles. Self-contained Naftiko capability covering one Freshworks business surface.' tags: - Freshworks - Roles created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FRESHWORKS_API_KEY: FRESHWORKS_API_KEY capability: consumes: - type: http namespace: freshdesk-roles baseUri: https://{domain}.freshdesk.com/api/v2 description: Freshworks Freshdesk API — Roles business capability. Self-contained, no shared references. resources: - name: roles path: /roles operations: - name: listroles method: GET description: List all roles outputRawFormat: json outputParameters: - name: result type: object value: $. - name: roles-role_id path: /roles/{role_id} operations: - name: getrole method: GET description: View a role outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: role_id in: path type: integer description: The ID of the role to retrieve. required: true authentication: type: basic username: '{{env.FRESHWORKS_USER}}' password: '{{env.FRESHWORKS_PASS}}' exposes: - type: rest namespace: freshdesk-roles-rest port: 8080 description: REST adapter for Freshworks Freshdesk API — Roles. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/roles name: roles description: REST surface for roles. operations: - method: GET name: listroles description: List all roles call: freshdesk-roles.listroles outputParameters: - type: object mapping: $. - path: /v1/roles/{role-id} name: roles-role-id description: REST surface for roles-role_id. operations: - method: GET name: getrole description: View a role call: freshdesk-roles.getrole with: role_id: rest.role_id outputParameters: - type: object mapping: $. - type: mcp namespace: freshdesk-roles-mcp port: 9090 transport: http description: MCP adapter for Freshworks Freshdesk API — Roles. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-roles description: List all roles hints: readOnly: true destructive: false idempotent: true call: freshdesk-roles.listroles outputParameters: - type: object mapping: $. - name: view-role description: View a role hints: readOnly: true destructive: false idempotent: true call: freshdesk-roles.getrole with: role_id: tools.role_id outputParameters: - type: object mapping: $.