naftiko: 1.0.0-alpha2 info: label: NASA Astronomy Picture of the Day (APOD) API — Planetary description: 'NASA Astronomy Picture of the Day (APOD) API — Planetary. 1 operations. Lead operation: NASA Get Astronomy Picture of the Day. Self-contained Naftiko capability covering one Nasa business surface.' tags: - Nasa - Planetary created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NASA_API_KEY: NASA_API_KEY capability: consumes: - type: http namespace: apod-planetary baseUri: https://api.nasa.gov description: NASA Astronomy Picture of the Day (APOD) API — Planetary business capability. Self-contained, no shared references. resources: - name: planetary-apod path: /planetary/apod operations: - name: getapod method: GET description: NASA Get Astronomy Picture of the Day outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: api_key in: query type: string description: API key for authentication. Use DEMO_KEY for testing. required: true - name: date in: query type: string description: The date of the APOD image to retrieve (YYYY-MM-DD). - name: start_date in: query type: string description: The start of a date range for multiple APOD images. - name: end_date in: query type: string description: The end of a date range. Defaults to today. - name: count in: query type: integer description: Return a specified number of random APOD images. - name: thumbs in: query type: boolean description: Return URL of video thumbnail if media type is video. exposes: - type: rest namespace: apod-planetary-rest port: 8080 description: REST adapter for NASA Astronomy Picture of the Day (APOD) API — Planetary. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/planetary/apod name: planetary-apod description: REST surface for planetary-apod. operations: - method: GET name: getapod description: NASA Get Astronomy Picture of the Day call: apod-planetary.getapod with: api_key: rest.api_key date: rest.date start_date: rest.start_date end_date: rest.end_date count: rest.count thumbs: rest.thumbs outputParameters: - type: object mapping: $. - type: mcp namespace: apod-planetary-mcp port: 9090 transport: http description: MCP adapter for NASA Astronomy Picture of the Day (APOD) API — Planetary. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: nasa-get-astronomy-picture-day description: NASA Get Astronomy Picture of the Day hints: readOnly: true destructive: false idempotent: true call: apod-planetary.getapod with: api_key: tools.api_key date: tools.date start_date: tools.start_date end_date: tools.end_date count: tools.count thumbs: tools.thumbs outputParameters: - type: object mapping: $.