PostHog · Capability

PostHog API — web_vitals

PostHog API — web_vitals. 1 operations. Lead operation: web_vitals. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthogweb_vitals

What You Can Do

GET
Webvitalsretrieve — Get web vitals for a specific pathname.
/v1/api/environments/{project-id}/web-vitals

MCP Tools

get-web-vitals-specific-pathname

Get web vitals for a specific pathname.

read-only idempotent

Capability Spec

posthog-web-vitals.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — web_vitals
  description: 'PostHog API — web_vitals. 1 operations. Lead operation: web_vitals. Self-contained Naftiko capability covering
    one Posthog business surface.'
  tags:
  - Posthog
  - web_vitals
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-web-vitals
    baseUri: ''
    description: PostHog API — web_vitals business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-project_id-web_vitals
      path: /api/environments/{project_id}/web_vitals/
      operations:
      - name: webvitalsretrieve
        method: GET
        description: Get web vitals for a specific pathname.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pathname
          in: query
          type: string
          description: Filter web vitals by pathname
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-web-vitals-rest
    port: 8080
    description: REST adapter for PostHog API — web_vitals. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/environments/{project-id}/web-vitals
      name: api-environments-project-id-web-vitals
      description: REST surface for api-environments-project_id-web_vitals.
      operations:
      - method: GET
        name: webvitalsretrieve
        description: Get web vitals for a specific pathname.
        call: posthog-web-vitals.webvitalsretrieve
        with:
          pathname: rest.pathname
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-web-vitals-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — web_vitals. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-web-vitals-specific-pathname
      description: Get web vitals for a specific pathname.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-web-vitals.webvitalsretrieve
      with:
        pathname: tools.pathname
      outputParameters:
      - type: object
        mapping: $.