Amazon · Capability

Amazon Selling Partner API — Reports

Amazon Selling Partner API — Reports. 4 operations. Lead operation: Amazon Get Report Document. Self-contained Naftiko capability covering one Amazon business surface.

Run with Naftiko AmazonReports

What You Can Do

GET
Getreportdocument — Amazon Get Report Document
/v1/reports/2021-06-30/documents/{reportdocumentid}
GET
Getreports — Amazon List Reports
/v1/reports/2021-06-30/reports
POST
Createreport — Amazon Create a Report
/v1/reports/2021-06-30/reports
GET
Getreport — Amazon Get Report
/v1/reports/2021-06-30/reports/{reportid}

MCP Tools

amazon-get-report-document

Amazon Get Report Document

read-only idempotent
amazon-list-reports

Amazon List Reports

read-only idempotent
amazon-create-report

Amazon Create a Report

amazon-get-report

Amazon Get Report

read-only idempotent

Capability Spec

selling-partner-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Selling Partner API — Reports
  description: 'Amazon Selling Partner API — Reports. 4 operations. Lead operation: Amazon Get Report Document. Self-contained
    Naftiko capability covering one Amazon business surface.'
  tags:
  - Amazon
  - Reports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_API_KEY: AMAZON_API_KEY
capability:
  consumes:
  - type: http
    namespace: selling-partner-reports
    baseUri: https://sellingpartnerapi-na.amazon.com
    description: Amazon Selling Partner API — Reports business capability. Self-contained, no shared references.
    resources:
    - name: reports-2021-06-30-documents-reportDocumentId
      path: /reports/2021-06-30/documents/{reportDocumentId}
      operations:
      - name: getreportdocument
        method: GET
        description: Amazon Get Report Document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: reportDocumentId
          in: path
          type: string
          required: true
    - name: reports-2021-06-30-reports
      path: /reports/2021-06-30/reports
      operations:
      - name: getreports
        method: GET
        description: Amazon List Reports
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: reportTypes
          in: query
          type: array
        - name: processingStatuses
          in: query
          type: array
        - name: pageSize
          in: query
          type: integer
        - name: nextToken
          in: query
          type: string
      - name: createreport
        method: POST
        description: Amazon Create a Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: reports-2021-06-30-reports-reportId
      path: /reports/2021-06-30/reports/{reportId}
      operations:
      - name: getreport
        method: GET
        description: Amazon Get Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: reportId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.AMAZON_API_KEY}}'
  exposes:
  - type: rest
    namespace: selling-partner-reports-rest
    port: 8080
    description: REST adapter for Amazon Selling Partner API — Reports. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/reports/2021-06-30/documents/{reportdocumentid}
      name: reports-2021-06-30-documents-reportdocumentid
      description: REST surface for reports-2021-06-30-documents-reportDocumentId.
      operations:
      - method: GET
        name: getreportdocument
        description: Amazon Get Report Document
        call: selling-partner-reports.getreportdocument
        with:
          reportDocumentId: rest.reportDocumentId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/reports/2021-06-30/reports
      name: reports-2021-06-30-reports
      description: REST surface for reports-2021-06-30-reports.
      operations:
      - method: GET
        name: getreports
        description: Amazon List Reports
        call: selling-partner-reports.getreports
        with:
          reportTypes: rest.reportTypes
          processingStatuses: rest.processingStatuses
          pageSize: rest.pageSize
          nextToken: rest.nextToken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreport
        description: Amazon Create a Report
        call: selling-partner-reports.createreport
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/reports/2021-06-30/reports/{reportid}
      name: reports-2021-06-30-reports-reportid
      description: REST surface for reports-2021-06-30-reports-reportId.
      operations:
      - method: GET
        name: getreport
        description: Amazon Get Report
        call: selling-partner-reports.getreport
        with:
          reportId: rest.reportId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: selling-partner-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Selling Partner API — Reports. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-get-report-document
      description: Amazon Get Report Document
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: selling-partner-reports.getreportdocument
      with:
        reportDocumentId: tools.reportDocumentId
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-list-reports
      description: Amazon List Reports
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: selling-partner-reports.getreports
      with:
        reportTypes: tools.reportTypes
        processingStatuses: tools.processingStatuses
        pageSize: tools.pageSize
        nextToken: tools.nextToken
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-create-report
      description: Amazon Create a Report
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: selling-partner-reports.createreport
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-get-report
      description: Amazon Get Report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: selling-partner-reports.getreport
      with:
        reportId: tools.reportId
      outputParameters:
      - type: object
        mapping: $.