naftiko: 1.0.0-alpha2 info: label: Moody's Data Buffet API — Baskets description: 'Moody''s Data Buffet API — Baskets. 5 operations. Lead operation: Moody''s List All Baskets. Self-contained Naftiko capability covering one Moodys business surface.' tags: - Moodys - Baskets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MOODYS_API_KEY: MOODYS_API_KEY capability: consumes: - type: http namespace: data-buffet-baskets baseUri: https://api.economy.com/data/v1 description: Moody's Data Buffet API — Baskets business capability. Self-contained, no shared references. resources: - name: baskets path: /baskets operations: - name: listbaskets method: GET description: Moody's List All Baskets outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createbasket method: POST description: Moody's Create a New Basket outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: baskets-basketId path: /baskets/{basketId} operations: - name: getbasket method: GET description: Moody's Retrieve a Specific Basket outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatebasket method: PUT description: Moody's Update an Existing Basket outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletebasket method: DELETE description: Moody's Delete a Basket outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MOODYS_API_KEY}}' exposes: - type: rest namespace: data-buffet-baskets-rest port: 8080 description: REST adapter for Moody's Data Buffet API — Baskets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/baskets name: baskets description: REST surface for baskets. operations: - method: GET name: listbaskets description: Moody's List All Baskets call: data-buffet-baskets.listbaskets outputParameters: - type: object mapping: $. - method: POST name: createbasket description: Moody's Create a New Basket call: data-buffet-baskets.createbasket with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/baskets/{basketid} name: baskets-basketid description: REST surface for baskets-basketId. operations: - method: GET name: getbasket description: Moody's Retrieve a Specific Basket call: data-buffet-baskets.getbasket outputParameters: - type: object mapping: $. - method: PUT name: updatebasket description: Moody's Update an Existing Basket call: data-buffet-baskets.updatebasket with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletebasket description: Moody's Delete a Basket call: data-buffet-baskets.deletebasket outputParameters: - type: object mapping: $. - type: mcp namespace: data-buffet-baskets-mcp port: 9090 transport: http description: MCP adapter for Moody's Data Buffet API — Baskets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: moody-s-list-all-baskets description: Moody's List All Baskets hints: readOnly: true destructive: false idempotent: true call: data-buffet-baskets.listbaskets outputParameters: - type: object mapping: $. - name: moody-s-create-new-basket description: Moody's Create a New Basket hints: readOnly: false destructive: false idempotent: false call: data-buffet-baskets.createbasket with: body: tools.body outputParameters: - type: object mapping: $. - name: moody-s-retrieve-specific-basket description: Moody's Retrieve a Specific Basket hints: readOnly: true destructive: false idempotent: true call: data-buffet-baskets.getbasket outputParameters: - type: object mapping: $. - name: moody-s-update-existing-basket description: Moody's Update an Existing Basket hints: readOnly: false destructive: false idempotent: true call: data-buffet-baskets.updatebasket with: body: tools.body outputParameters: - type: object mapping: $. - name: moody-s-delete-basket description: Moody's Delete a Basket hints: readOnly: false destructive: true idempotent: true call: data-buffet-baskets.deletebasket outputParameters: - type: object mapping: $.