Free Law Project · Capability

Free Law Project / CourtListener REST API — Alerts

Free Law Project / CourtListener REST API — Alerts. 2 operations. Lead operation: List alerts. Self-contained Naftiko capability covering one Free Law Project business surface.

Run with Naftiko Free Law ProjectAlerts

What You Can Do

GET
Listalerts — List alerts
/v1/alerts
POST
Createalert — Create an alert
/v1/alerts

MCP Tools

list-alerts

List alerts

read-only idempotent
create-alert

Create an alert

Capability Spec

free-law-project-alerts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Free Law Project / CourtListener REST API — Alerts
  description: 'Free Law Project / CourtListener REST API — Alerts. 2 operations. Lead operation: List alerts. Self-contained
    Naftiko capability covering one Free Law Project business surface.'
  tags:
  - Free Law Project
  - Alerts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FREE_LAW_PROJECT_API_KEY: FREE_LAW_PROJECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: free-law-project-alerts
    baseUri: https://www.courtlistener.com/api/rest/v4
    description: Free Law Project / CourtListener REST API — Alerts business capability. Self-contained, no shared references.
    resources:
    - name: alerts
      path: /alerts/
      operations:
      - name: listalerts
        method: GET
        description: List alerts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createalert
        method: POST
        description: Create an alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.FREE_LAW_PROJECT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: free-law-project-alerts-rest
    port: 8080
    description: REST adapter for Free Law Project / CourtListener REST API — Alerts. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/alerts
      name: alerts
      description: REST surface for alerts.
      operations:
      - method: GET
        name: listalerts
        description: List alerts
        call: free-law-project-alerts.listalerts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createalert
        description: Create an alert
        call: free-law-project-alerts.createalert
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: free-law-project-alerts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Free Law Project / CourtListener REST API — Alerts. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-alerts
      description: List alerts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: free-law-project-alerts.listalerts
      outputParameters:
      - type: object
        mapping: $.
    - name: create-alert
      description: Create an alert
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: free-law-project-alerts.createalert
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.