naftiko: 1.0.0-alpha2 info: label: AWS X-Ray API — Traces description: 'AWS X-Ray API — Traces. 3 operations. Lead operation: AWS X-Ray Get a List of Traces by ID. Self-contained Naftiko capability covering one Aws X Ray business surface.' tags: - Aws X Ray - Traces created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AWS_X_RAY_API_KEY: AWS_X_RAY_API_KEY capability: consumes: - type: http namespace: aws-x-ray-traces baseUri: https://xray.{region}.amazonaws.com description: AWS X-Ray API — Traces business capability. Self-contained, no shared references. resources: - name: TraceGraph path: /TraceGraph operations: - name: batchgettraces method: POST description: AWS X-Ray Get a List of Traces by ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: TraceSummaries path: /TraceSummaries operations: - name: gettracesummaries method: POST description: AWS X-Ray Get Trace Summaries outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: Traces path: /Traces operations: - name: puttracesegments method: POST description: AWS X-Ray Upload Trace Segments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.AWS_X_RAY_API_KEY}}' placement: header exposes: - type: rest namespace: aws-x-ray-traces-rest port: 8080 description: REST adapter for AWS X-Ray API — Traces. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/tracegraph name: tracegraph description: REST surface for TraceGraph. operations: - method: POST name: batchgettraces description: AWS X-Ray Get a List of Traces by ID call: aws-x-ray-traces.batchgettraces with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/tracesummaries name: tracesummaries description: REST surface for TraceSummaries. operations: - method: POST name: gettracesummaries description: AWS X-Ray Get Trace Summaries call: aws-x-ray-traces.gettracesummaries with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/traces name: traces description: REST surface for Traces. operations: - method: POST name: puttracesegments description: AWS X-Ray Upload Trace Segments call: aws-x-ray-traces.puttracesegments with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: aws-x-ray-traces-mcp port: 9090 transport: http description: MCP adapter for AWS X-Ray API — Traces. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: aws-x-ray-get-list description: AWS X-Ray Get a List of Traces by ID hints: readOnly: true destructive: false idempotent: false call: aws-x-ray-traces.batchgettraces with: body: tools.body outputParameters: - type: object mapping: $. - name: aws-x-ray-get-trace description: AWS X-Ray Get Trace Summaries hints: readOnly: true destructive: false idempotent: false call: aws-x-ray-traces.gettracesummaries with: body: tools.body outputParameters: - type: object mapping: $. - name: aws-x-ray-upload-trace description: AWS X-Ray Upload Trace Segments hints: readOnly: false destructive: false idempotent: false call: aws-x-ray-traces.puttracesegments with: body: tools.body outputParameters: - type: object mapping: $.