Aligned News · Capability

Aligned News REST API — Reports

Aligned News REST API — Reports. 2 operations. Lead operation: List Reports. Self-contained Naftiko capability covering one Aligned News business surface.

Run with Naftiko Aligned NewsReports

What You Can Do

GET
Listreports — List Reports
/v1/reports
GET
Getreport — Get Report
/v1/reports/{id}

MCP Tools

list-reports

List Reports

read-only idempotent
get-report

Get Report

read-only idempotent

Capability Spec

aligned-news-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Aligned News REST API — Reports
  description: 'Aligned News REST API — Reports. 2 operations. Lead operation: List Reports. Self-contained Naftiko capability
    covering one Aligned News business surface.'
  tags:
  - Aligned News
  - Reports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ALIGNED_NEWS_API_KEY: ALIGNED_NEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: aligned-news-reports
    baseUri: https://alignednews.com/v1
    description: Aligned News REST API — Reports business capability. Self-contained, no shared references.
    resources:
    - name: reports
      path: /reports
      operations:
      - name: listreports
        method: GET
        description: List Reports
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Maximum number of reports to return (default 20, max 100).
    - name: reports-id
      path: /reports/{id}
      operations:
      - name: getreport
        method: GET
        description: Get Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ALIGNED_NEWS_API_KEY}}'
  exposes:
  - type: rest
    namespace: aligned-news-reports-rest
    port: 8080
    description: REST adapter for Aligned News REST API — Reports. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/reports
      name: reports
      description: REST surface for reports.
      operations:
      - method: GET
        name: listreports
        description: List Reports
        call: aligned-news-reports.listreports
        with:
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/reports/{id}
      name: reports-id
      description: REST surface for reports-id.
      operations:
      - method: GET
        name: getreport
        description: Get Report
        call: aligned-news-reports.getreport
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aligned-news-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Aligned News REST API — Reports. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-reports
      description: List Reports
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aligned-news-reports.listreports
      with:
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-report
      description: Get Report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aligned-news-reports.getreport
      outputParameters:
      - type: object
        mapping: $.