naftiko: 1.0.0-alpha2 info: label: Reddit Ads API — Accounts description: 'Reddit Ads API — Accounts. 1 operations. Lead operation: Get Account Details. Self-contained Naftiko capability covering one Reddit business surface.' tags: - Reddit - Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: REDDIT_API_KEY: REDDIT_API_KEY capability: consumes: - type: http namespace: ads-accounts baseUri: https://ads-api.reddit.com/api/v3 description: Reddit Ads API — Accounts business capability. Self-contained, no shared references. resources: - name: accounts-account_id path: /accounts/{account_id} operations: - name: getaccount method: GET description: Get Account Details outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.REDDIT_API_KEY}}' exposes: - type: rest namespace: ads-accounts-rest port: 8080 description: REST adapter for Reddit Ads API — Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{account-id} name: accounts-account-id description: REST surface for accounts-account_id. operations: - method: GET name: getaccount description: Get Account Details call: ads-accounts.getaccount outputParameters: - type: object mapping: $. - type: mcp namespace: ads-accounts-mcp port: 9090 transport: http description: MCP adapter for Reddit Ads API — Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-account-details description: Get Account Details hints: readOnly: true destructive: false idempotent: true call: ads-accounts.getaccount outputParameters: - type: object mapping: $.