Split · Capability
Split Evaluator API — Events
Split Evaluator API — Events. 2 operations. Lead operation: Track an event. Self-contained Naftiko capability covering one Split business surface.
What You Can Do
GET
Trackevent
— Track an event
/v1/client/track
POST
Trackeventwithproperties
— Track an event with properties
/v1/client/track
MCP Tools
track-event
Track an event
read-only
idempotent
track-event-properties
Track an event with properties
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Split Evaluator API — Events
description: 'Split Evaluator API — Events. 2 operations. Lead operation: Track an event. Self-contained Naftiko capability
covering one Split business surface.'
tags:
- Split
- Events
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
SPLIT_API_KEY: SPLIT_API_KEY
capability:
consumes:
- type: http
namespace: evaluator-events
baseUri: http://localhost:7548
description: Split Evaluator API — Events business capability. Self-contained, no shared references.
resources:
- name: client-track
path: /client/track
operations:
- name: trackevent
method: GET
description: Track an event
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: key
in: query
type: string
description: The customer key associated with the event
required: true
- name: traffic-type
in: query
type: string
description: The traffic type for the event
required: true
- name: event-type
in: query
type: string
description: The type of event being tracked (e.g., purchase, click, signup)
required: true
- name: value
in: query
type: number
description: Optional numeric value associated with the event
- name: properties
in: query
type: string
description: JSON string with up to 15 key-value pairs of event properties. Values must be boolean, string, number,
or null.
- name: trackeventwithproperties
method: POST
description: Track an event with properties
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: key
in: query
type: string
description: The customer key associated with the event
required: true
- name: traffic-type
in: query
type: string
description: The traffic type for the event
required: true
- name: event-type
in: query
type: string
description: The type of event being tracked
required: true
- name: value
in: query
type: number
description: Optional numeric value associated with the event
- name: body
in: body
type: object
description: Request body (JSON).
required: false
exposes:
- type: rest
namespace: evaluator-events-rest
port: 8080
description: REST adapter for Split Evaluator API — Events. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/client/track
name: client-track
description: REST surface for client-track.
operations:
- method: GET
name: trackevent
description: Track an event
call: evaluator-events.trackevent
with:
key: rest.key
traffic-type: rest.traffic-type
event-type: rest.event-type
value: rest.value
properties: rest.properties
outputParameters:
- type: object
mapping: $.
- method: POST
name: trackeventwithproperties
description: Track an event with properties
call: evaluator-events.trackeventwithproperties
with:
key: rest.key
traffic-type: rest.traffic-type
event-type: rest.event-type
value: rest.value
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: evaluator-events-mcp
port: 9090
transport: http
description: MCP adapter for Split Evaluator API — Events. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: track-event
description: Track an event
hints:
readOnly: true
destructive: false
idempotent: true
call: evaluator-events.trackevent
with:
key: tools.key
traffic-type: tools.traffic-type
event-type: tools.event-type
value: tools.value
properties: tools.properties
outputParameters:
- type: object
mapping: $.
- name: track-event-properties
description: Track an event with properties
hints:
readOnly: false
destructive: false
idempotent: false
call: evaluator-events.trackeventwithproperties
with:
key: tools.key
traffic-type: tools.traffic-type
event-type: tools.event-type
value: tools.value
body: tools.body
outputParameters:
- type: object
mapping: $.