naftiko: 1.0.0-alpha2 info: label: Reddit Data API — Search description: 'Reddit Data API — Search. 2 operations. Lead operation: Search Submissions. Self-contained Naftiko capability covering one Reddit business surface.' tags: - Reddit - Search created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: REDDIT_API_KEY: REDDIT_API_KEY capability: consumes: - type: http namespace: data-search baseUri: https://oauth.reddit.com description: Reddit Data API — Search business capability. Self-contained, no shared references. resources: - name: r-subreddit-search path: /r/{subreddit}/search operations: - name: search method: GET description: Search Submissions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: The search query string. required: true - name: sort in: query type: string description: The sorting method for search results. - name: restrict_sr in: query type: boolean description: Whether to restrict the search to the specified subreddit. - name: type in: query type: string description: The type of results to return. - name: subreddits-search path: /subreddits/search operations: - name: searchsubreddits method: GET description: Search Subreddits outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: The search query string. required: true authentication: type: bearer token: '{{env.REDDIT_API_KEY}}' exposes: - type: rest namespace: data-search-rest port: 8080 description: REST adapter for Reddit Data API — Search. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/r/{subreddit}/search name: r-subreddit-search description: REST surface for r-subreddit-search. operations: - method: GET name: search description: Search Submissions call: data-search.search with: q: rest.q sort: rest.sort restrict_sr: rest.restrict_sr type: rest.type outputParameters: - type: object mapping: $. - path: /v1/subreddits/search name: subreddits-search description: REST surface for subreddits-search. operations: - method: GET name: searchsubreddits description: Search Subreddits call: data-search.searchsubreddits with: q: rest.q outputParameters: - type: object mapping: $. - type: mcp namespace: data-search-mcp port: 9090 transport: http description: MCP adapter for Reddit Data API — Search. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: search-submissions description: Search Submissions hints: readOnly: true destructive: false idempotent: true call: data-search.search with: q: tools.q sort: tools.sort restrict_sr: tools.restrict_sr type: tools.type outputParameters: - type: object mapping: $. - name: search-subreddits description: Search Subreddits hints: readOnly: true destructive: false idempotent: true call: data-search.searchsubreddits with: q: tools.q outputParameters: - type: object mapping: $.