naftiko: 1.0.0-alpha2 info: label: PostHog API — evaluations description: 'PostHog API — evaluations. 7 operations. Lead operation: evaluations. Self-contained Naftiko capability covering one Posthog business surface.' tags: - Posthog - evaluations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTHOG_API_KEY: POSTHOG_API_KEY capability: consumes: - type: http namespace: posthog-evaluations baseUri: '' description: PostHog API — evaluations business capability. Self-contained, no shared references. resources: - name: api-environments-project_id-evaluations path: /api/environments/{project_id}/evaluations/ operations: - name: evaluationslist method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: enabled in: query type: boolean description: Filter by enabled status - name: id__in in: query type: array description: Multiple values may be separated by commas. - name: limit in: query type: integer description: Number of results to return per page. - name: offset in: query type: integer description: The initial index from which to return the results. - name: order_by in: query type: array description: Ordering - name: search in: query type: string description: Search in name or description - name: evaluationscreate method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-environments-project_id-evaluations-test_hog path: /api/environments/{project_id}/evaluations/test_hog/ operations: - name: evaluationstesthogcreate method: POST description: Test Hog evaluation code against sample events without saving. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-environments-project_id-evaluations-id path: /api/environments/{project_id}/evaluations/{id}/ operations: - name: evaluationsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this evaluation. required: true - name: evaluationsupdate method: PUT description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this evaluation. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: evaluationspartialupdate method: PATCH description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this evaluation. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: evaluationsdestroy method: DELETE description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this evaluation. required: true authentication: type: bearer token: '{{env.POSTHOG_API_KEY}}' exposes: - type: rest namespace: posthog-evaluations-rest port: 8080 description: REST adapter for PostHog API — evaluations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/environments/{project-id}/evaluations name: api-environments-project-id-evaluations description: REST surface for api-environments-project_id-evaluations. operations: - method: GET name: evaluationslist description: evaluationslist call: posthog-evaluations.evaluationslist with: enabled: rest.enabled id__in: rest.id__in limit: rest.limit offset: rest.offset order_by: rest.order_by search: rest.search outputParameters: - type: object mapping: $. - method: POST name: evaluationscreate description: evaluationscreate call: posthog-evaluations.evaluationscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{project-id}/evaluations/test-hog name: api-environments-project-id-evaluations-test-hog description: REST surface for api-environments-project_id-evaluations-test_hog. operations: - method: POST name: evaluationstesthogcreate description: Test Hog evaluation code against sample events without saving. call: posthog-evaluations.evaluationstesthogcreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{project-id}/evaluations/{id} name: api-environments-project-id-evaluations-id description: REST surface for api-environments-project_id-evaluations-id. operations: - method: GET name: evaluationsretrieve description: evaluationsretrieve call: posthog-evaluations.evaluationsretrieve with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: evaluationsupdate description: evaluationsupdate call: posthog-evaluations.evaluationsupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: evaluationspartialupdate description: evaluationspartialupdate call: posthog-evaluations.evaluationspartialupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: evaluationsdestroy description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true call: posthog-evaluations.evaluationsdestroy with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: posthog-evaluations-mcp port: 9090 transport: http description: MCP adapter for PostHog API — evaluations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: evaluationslist description: evaluationslist hints: readOnly: true destructive: false idempotent: true call: posthog-evaluations.evaluationslist with: enabled: tools.enabled id__in: tools.id__in limit: tools.limit offset: tools.offset order_by: tools.order_by search: tools.search outputParameters: - type: object mapping: $. - name: evaluationscreate description: evaluationscreate hints: readOnly: false destructive: false idempotent: false call: posthog-evaluations.evaluationscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: test-hog-evaluation-code-against description: Test Hog evaluation code against sample events without saving. hints: readOnly: true destructive: false idempotent: false call: posthog-evaluations.evaluationstesthogcreate with: body: tools.body outputParameters: - type: object mapping: $. - name: evaluationsretrieve description: evaluationsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-evaluations.evaluationsretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: evaluationsupdate description: evaluationsupdate hints: readOnly: false destructive: false idempotent: true call: posthog-evaluations.evaluationsupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: evaluationspartialupdate description: evaluationspartialupdate hints: readOnly: false destructive: false idempotent: true call: posthog-evaluations.evaluationspartialupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: hard-delete-this-model-is description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true hints: readOnly: false destructive: true idempotent: true call: posthog-evaluations.evaluationsdestroy with: id: tools.id outputParameters: - type: object mapping: $.