Memesio · Capability

Memesio API Contracts — personalization

Memesio API Contracts — personalization. 4 operations. Lead operation: List Stored Trend Feedback Actions. Self-contained Naftiko capability covering one Memesio business surface.

Run with Naftiko Memesiopersonalization

What You Can Do

GET
Get — List Stored Trend Feedback Actions
/v1/api/alerts/feedback
POST
Post — Record Trend Feedback Action and Update Preference Vector
/v1/api/alerts/feedback
GET
Get — Get Trend Preference Vector for Actor
/v1/api/alerts/preferences
POST
Post — Upsert Trend Preference Vector from Explicit Interests and Behavior Events
/v1/api/alerts/preferences

MCP Tools

list-stored-trend-feedback-actions

List Stored Trend Feedback Actions

read-only idempotent
record-trend-feedback-action-and

Record Trend Feedback Action and Update Preference Vector

get-trend-preference-vector-actor

Get Trend Preference Vector for Actor

read-only idempotent
upsert-trend-preference-vector-explicit

Upsert Trend Preference Vector from Explicit Interests and Behavior Events

Capability Spec

memesio-personalization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Memesio API Contracts — personalization
  description: 'Memesio API Contracts — personalization. 4 operations. Lead operation: List Stored Trend Feedback Actions.
    Self-contained Naftiko capability covering one Memesio business surface.'
  tags:
  - Memesio
  - personalization
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEMESIO_API_KEY: MEMESIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: memesio-personalization
    baseUri: ''
    description: Memesio API Contracts — personalization business capability. Self-contained, no shared references.
    resources:
    - name: api-alerts-feedback
      path: /api/alerts/feedback
      operations:
      - name: get
        method: GET
        description: List Stored Trend Feedback Actions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: actorId
          in: query
          type: string
        - name: limit
          in: query
          type: integer
      - name: post
        method: POST
        description: Record Trend Feedback Action and Update Preference Vector
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-alerts-preferences
      path: /api/alerts/preferences
      operations:
      - name: get
        method: GET
        description: Get Trend Preference Vector for Actor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: actorId
          in: query
          type: string
          required: true
      - name: post
        method: POST
        description: Upsert Trend Preference Vector from Explicit Interests and Behavior Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: x-developer-api-key
      value: '{{env.MEMESIO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: memesio-personalization-rest
    port: 8080
    description: REST adapter for Memesio API Contracts — personalization. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/alerts/feedback
      name: api-alerts-feedback
      description: REST surface for api-alerts-feedback.
      operations:
      - method: GET
        name: get
        description: List Stored Trend Feedback Actions
        call: memesio-personalization.get
        with:
          actorId: rest.actorId
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Record Trend Feedback Action and Update Preference Vector
        call: memesio-personalization.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/alerts/preferences
      name: api-alerts-preferences
      description: REST surface for api-alerts-preferences.
      operations:
      - method: GET
        name: get
        description: Get Trend Preference Vector for Actor
        call: memesio-personalization.get
        with:
          actorId: rest.actorId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Upsert Trend Preference Vector from Explicit Interests and Behavior Events
        call: memesio-personalization.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: memesio-personalization-mcp
    port: 9090
    transport: http
    description: MCP adapter for Memesio API Contracts — personalization. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-stored-trend-feedback-actions
      description: List Stored Trend Feedback Actions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: memesio-personalization.get
      with:
        actorId: tools.actorId
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: record-trend-feedback-action-and
      description: Record Trend Feedback Action and Update Preference Vector
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: memesio-personalization.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-trend-preference-vector-actor
      description: Get Trend Preference Vector for Actor
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: memesio-personalization.get
      with:
        actorId: tools.actorId
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-trend-preference-vector-explicit
      description: Upsert Trend Preference Vector from Explicit Interests and Behavior Events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: memesio-personalization.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.