naftiko: 1.0.0-alpha2 info: label: The New York Times Top Stories — Stories description: 'The New York Times Top Stories — Stories. 1 operations. Lead operation: The New York Times Top Stories. Self-contained Naftiko capability covering one The New York Times business surface.' tags: - The New York Times - Stories created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: THE_NEW_YORK_TIMES_API_KEY: THE_NEW_YORK_TIMES_API_KEY capability: consumes: - type: http namespace: new-york-times-top-stories-stories baseUri: https://api.nytimes.com/svc/topstories/v2 description: The New York Times Top Stories — Stories business capability. Self-contained, no shared references. resources: - name: section}.json path: /{section}.json operations: - name: get method: GET description: The New York Times Top Stories outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: section in: path type: string description: The section the story appears in. required: true authentication: type: apikey key: api-key value: '{{env.THE_NEW_YORK_TIMES_API_KEY}}' placement: query exposes: - type: rest namespace: new-york-times-top-stories-stories-rest port: 8080 description: REST adapter for The New York Times Top Stories — Stories. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/section-json name: section-json description: REST surface for section}.json. operations: - method: GET name: get description: The New York Times Top Stories call: new-york-times-top-stories-stories.get with: section: rest.section outputParameters: - type: object mapping: $. - type: mcp namespace: new-york-times-top-stories-stories-mcp port: 9090 transport: http description: MCP adapter for The New York Times Top Stories — Stories. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: new-york-times-top-stories description: The New York Times Top Stories hints: readOnly: true destructive: false idempotent: true call: new-york-times-top-stories-stories.get with: section: tools.section outputParameters: - type: object mapping: $.