naftiko: 1.0.0-alpha2 info: label: USDA FoodData Central API — Food Search description: 'USDA FoodData Central API — Food Search. 2 operations. Lead operation: Search Foods by Keywords. Self-contained Naftiko capability covering one Usda Agricultural Research Service Ars business surface.' tags: - Usda Agricultural Research Service Ars - Food Search created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: USDA_AGRICULTURAL_RESEARCH_SERVICE_ARS_API_KEY: USDA_AGRICULTURAL_RESEARCH_SERVICE_ARS_API_KEY capability: consumes: - type: http namespace: usda-ars-fooddata-central-food-search baseUri: https://api.nal.usda.gov/fdc/v1 description: USDA FoodData Central API — Food Search business capability. Self-contained, no shared references. resources: - name: foods-search path: /foods/search operations: - name: searchfoodsget method: GET description: Search Foods by Keywords outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string description: One or more keywords to search for required: true - name: dataType in: query type: array description: Filter by data type(s) - name: pageSize in: query type: integer description: Number of results per page (max 200) - name: pageNumber in: query type: integer - name: sortBy in: query type: string - name: sortOrder in: query type: string - name: brandOwner in: query type: string description: Filter by brand owner (Branded Foods only) - name: api_key in: query type: string - name: searchfoodspost method: POST description: Search Foods by Keywords (POST) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: apikey key: api_key value: '{{env.USDA_AGRICULTURAL_RESEARCH_SERVICE_ARS_API_KEY}}' placement: query exposes: - type: rest namespace: usda-ars-fooddata-central-food-search-rest port: 8080 description: REST adapter for USDA FoodData Central API — Food Search. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/foods/search name: foods-search description: REST surface for foods-search. operations: - method: GET name: searchfoodsget description: Search Foods by Keywords call: usda-ars-fooddata-central-food-search.searchfoodsget with: query: rest.query dataType: rest.dataType pageSize: rest.pageSize pageNumber: rest.pageNumber sortBy: rest.sortBy sortOrder: rest.sortOrder brandOwner: rest.brandOwner api_key: rest.api_key outputParameters: - type: object mapping: $. - method: POST name: searchfoodspost description: Search Foods by Keywords (POST) call: usda-ars-fooddata-central-food-search.searchfoodspost with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: usda-ars-fooddata-central-food-search-mcp port: 9090 transport: http description: MCP adapter for USDA FoodData Central API — Food Search. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: search-foods-keywords description: Search Foods by Keywords hints: readOnly: true destructive: false idempotent: true call: usda-ars-fooddata-central-food-search.searchfoodsget with: query: tools.query dataType: tools.dataType pageSize: tools.pageSize pageNumber: tools.pageNumber sortBy: tools.sortBy sortOrder: tools.sortOrder brandOwner: tools.brandOwner api_key: tools.api_key outputParameters: - type: object mapping: $. - name: search-foods-keywords-post description: Search Foods by Keywords (POST) hints: readOnly: true destructive: false idempotent: false call: usda-ars-fooddata-central-food-search.searchfoodspost with: body: tools.body outputParameters: - type: object mapping: $.