naftiko: 1.0.0-alpha2 info: label: Telnyx API — CDR Reports description: 'Telnyx API — CDR Reports. 5 operations. Lead operation: Get all CDR report requests. Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - CDR Reports created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TELNYX_API_KEY: TELNYX_API_KEY capability: consumes: - type: http namespace: telnyx-cdr-reports baseUri: https://api.telnyx.com/v2 description: Telnyx API — CDR Reports business capability. Self-contained, no shared references. resources: - name: legacy-reporting-batch_detail_records-voice path: /legacy/reporting/batch_detail_records/voice operations: - name: getcdrrequests method: GET description: Get all CDR report requests outputRawFormat: json outputParameters: - name: result type: object value: $. - name: submitcdrrequest method: POST description: Create a new CDR report request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: legacy-reporting-batch_detail_records-voice-fields path: /legacy/reporting/batch_detail_records/voice/fields operations: - name: getcdrsavailablefields method: GET description: Get available CDR report fields outputRawFormat: json outputParameters: - name: result type: object value: $. - name: legacy-reporting-batch_detail_records-voice-id path: /legacy/reporting/batch_detail_records/voice/{id} operations: - name: deletecdrrequest method: DELETE description: Delete a CDR report request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: getcdrrequest method: GET description: Get a specific CDR report request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true authentication: type: bearer token: '{{env.TELNYX_API_KEY}}' exposes: - type: rest namespace: telnyx-cdr-reports-rest port: 8080 description: REST adapter for Telnyx API — CDR Reports. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/legacy/reporting/batch-detail-records/voice name: legacy-reporting-batch-detail-records-voice description: REST surface for legacy-reporting-batch_detail_records-voice. operations: - method: GET name: getcdrrequests description: Get all CDR report requests call: telnyx-cdr-reports.getcdrrequests outputParameters: - type: object mapping: $. - method: POST name: submitcdrrequest description: Create a new CDR report request call: telnyx-cdr-reports.submitcdrrequest with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/legacy/reporting/batch-detail-records/voice/fields name: legacy-reporting-batch-detail-records-voice-fields description: REST surface for legacy-reporting-batch_detail_records-voice-fields. operations: - method: GET name: getcdrsavailablefields description: Get available CDR report fields call: telnyx-cdr-reports.getcdrsavailablefields outputParameters: - type: object mapping: $. - path: /v1/legacy/reporting/batch-detail-records/voice/{id} name: legacy-reporting-batch-detail-records-voice-id description: REST surface for legacy-reporting-batch_detail_records-voice-id. operations: - method: DELETE name: deletecdrrequest description: Delete a CDR report request call: telnyx-cdr-reports.deletecdrrequest with: id: rest.id outputParameters: - type: object mapping: $. - method: GET name: getcdrrequest description: Get a specific CDR report request call: telnyx-cdr-reports.getcdrrequest with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-cdr-reports-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — CDR Reports. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-cdr-report-requests description: Get all CDR report requests hints: readOnly: true destructive: false idempotent: true call: telnyx-cdr-reports.getcdrrequests outputParameters: - type: object mapping: $. - name: create-new-cdr-report-request description: Create a new CDR report request hints: readOnly: false destructive: false idempotent: false call: telnyx-cdr-reports.submitcdrrequest with: body: tools.body outputParameters: - type: object mapping: $. - name: get-available-cdr-report-fields description: Get available CDR report fields hints: readOnly: true destructive: false idempotent: true call: telnyx-cdr-reports.getcdrsavailablefields outputParameters: - type: object mapping: $. - name: delete-cdr-report-request description: Delete a CDR report request hints: readOnly: false destructive: true idempotent: true call: telnyx-cdr-reports.deletecdrrequest with: id: tools.id outputParameters: - type: object mapping: $. - name: get-specific-cdr-report-request description: Get a specific CDR report request hints: readOnly: true destructive: false idempotent: true call: telnyx-cdr-reports.getcdrrequest with: id: tools.id outputParameters: - type: object mapping: $.