LangSmith · Capability

LangSmith — alert_rules

LangSmith — alert_rules. 5 operations. Lead operation: Create an alert rule. Self-contained Naftiko capability covering one Langsmith business surface.

Run with Naftiko Langsmithalert_rules

What You Can Do

POST
Post — Create an alert rule
/v1/v1/platform/alerts/{session-id}
POST
Post — Test an alert action to determine if configuration is valid
/v1/v1/platform/alerts/{session-id}/test
GET
Get — Get an alert rule
/v1/v1/platform/alerts/{session-id}/{alert-rule-id}
DELETE
Delete — Delete an alert rule
/v1/v1/platform/alerts/{session-id}/{alert-rule-id}
PATCH
Patch — Update an alert rule
/v1/v1/platform/alerts/{session-id}/{alert-rule-id}

MCP Tools

create-alert-rule

Create an alert rule

test-alert-action-determine-if

Test an alert action to determine if configuration is valid

read-only
get-alert-rule

Get an alert rule

read-only idempotent
delete-alert-rule

Delete an alert rule

idempotent
update-alert-rule

Update an alert rule

idempotent

Capability Spec

langsmith-alert-rules.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LangSmith — alert_rules
  description: 'LangSmith — alert_rules. 5 operations. Lead operation: Create an alert rule. Self-contained Naftiko capability
    covering one Langsmith business surface.'
  tags:
  - Langsmith
  - alert_rules
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LANGSMITH_API_KEY: LANGSMITH_API_KEY
capability:
  consumes:
  - type: http
    namespace: langsmith-alert-rules
    baseUri: ''
    description: LangSmith — alert_rules business capability. Self-contained, no shared references.
    resources:
    - name: v1-platform-alerts-session_id
      path: /v1/platform/alerts/{session_id}
      operations:
      - name: post
        method: POST
        description: Create an alert rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_id
          in: path
          type: string
          description: Session ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-platform-alerts-session_id-test
      path: /v1/platform/alerts/{session_id}/test
      operations:
      - name: post
        method: POST
        description: Test an alert action to determine if configuration is valid
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_id
          in: path
          type: string
          description: Session ID
          required: true
        - name: alert_rule_id
          in: path
          type: string
          description: Alert rule ID
          required: true
    - name: v1-platform-alerts-session_id-alert_rule_id
      path: /v1/platform/alerts/{session_id}/{alert_rule_id}
      operations:
      - name: get
        method: GET
        description: Get an alert rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_id
          in: path
          type: string
          description: Session ID
          required: true
        - name: alert_rule_id
          in: path
          type: string
          description: Alert rule ID
          required: true
      - name: delete
        method: DELETE
        description: Delete an alert rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_id
          in: path
          type: string
          description: Session ID
          required: true
        - name: alert_rule_id
          in: path
          type: string
          description: Alert rule ID
          required: true
      - name: patch
        method: PATCH
        description: Update an alert rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_id
          in: path
          type: string
          description: Session ID
          required: true
        - name: alert_rule_id
          in: path
          type: string
          description: Alert rule ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LANGSMITH_API_KEY}}'
  exposes:
  - type: rest
    namespace: langsmith-alert-rules-rest
    port: 8080
    description: REST adapter for LangSmith — alert_rules. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/platform/alerts/{session-id}
      name: v1-platform-alerts-session-id
      description: REST surface for v1-platform-alerts-session_id.
      operations:
      - method: POST
        name: post
        description: Create an alert rule
        call: langsmith-alert-rules.post
        with:
          session_id: rest.session_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/platform/alerts/{session-id}/test
      name: v1-platform-alerts-session-id-test
      description: REST surface for v1-platform-alerts-session_id-test.
      operations:
      - method: POST
        name: post
        description: Test an alert action to determine if configuration is valid
        call: langsmith-alert-rules.post
        with:
          session_id: rest.session_id
          alert_rule_id: rest.alert_rule_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/platform/alerts/{session-id}/{alert-rule-id}
      name: v1-platform-alerts-session-id-alert-rule-id
      description: REST surface for v1-platform-alerts-session_id-alert_rule_id.
      operations:
      - method: GET
        name: get
        description: Get an alert rule
        call: langsmith-alert-rules.get
        with:
          session_id: rest.session_id
          alert_rule_id: rest.alert_rule_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete an alert rule
        call: langsmith-alert-rules.delete
        with:
          session_id: rest.session_id
          alert_rule_id: rest.alert_rule_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: Update an alert rule
        call: langsmith-alert-rules.patch
        with:
          session_id: rest.session_id
          alert_rule_id: rest.alert_rule_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: langsmith-alert-rules-mcp
    port: 9090
    transport: http
    description: MCP adapter for LangSmith — alert_rules. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-alert-rule
      description: Create an alert rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: langsmith-alert-rules.post
      with:
        session_id: tools.session_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: test-alert-action-determine-if
      description: Test an alert action to determine if configuration is valid
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: langsmith-alert-rules.post
      with:
        session_id: tools.session_id
        alert_rule_id: tools.alert_rule_id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-alert-rule
      description: Get an alert rule
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: langsmith-alert-rules.get
      with:
        session_id: tools.session_id
        alert_rule_id: tools.alert_rule_id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-alert-rule
      description: Delete an alert rule
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: langsmith-alert-rules.delete
      with:
        session_id: tools.session_id
        alert_rule_id: tools.alert_rule_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-alert-rule
      description: Update an alert rule
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: langsmith-alert-rules.patch
      with:
        session_id: tools.session_id
        alert_rule_id: tools.alert_rule_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.