Mistral AI · Capability

Mistral AI Mistral Moderation API — Moderation

Mistral AI Mistral Moderation API — Moderation. 2 operations. Lead operation: Mistral AI Moderate chat conversation. Self-contained Naftiko capability covering one Mistral business surface.

Run with Naftiko MistralModeration

What You Can Do

POST
Createchatmoderation — Mistral AI Moderate chat conversation
/v1/chat/moderations
POST
Createmoderation — Mistral AI Moderate text content
/v1/moderations

MCP Tools

mistral-ai-moderate-chat-conversation

Mistral AI Moderate chat conversation

mistral-ai-moderate-text-content

Mistral AI Moderate text content

Capability Spec

moderation-moderation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mistral AI Mistral Moderation API — Moderation
  description: 'Mistral AI Mistral Moderation API — Moderation. 2 operations. Lead operation: Mistral AI Moderate chat conversation.
    Self-contained Naftiko capability covering one Mistral business surface.'
  tags:
  - Mistral
  - Moderation
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MISTRAL_API_KEY: MISTRAL_API_KEY
capability:
  consumes:
  - type: http
    namespace: moderation-moderation
    baseUri: https://api.mistral.ai/v1
    description: Mistral AI Mistral Moderation API — Moderation business capability. Self-contained, no shared references.
    resources:
    - name: chat-moderations
      path: /chat/moderations
      operations:
      - name: createchatmoderation
        method: POST
        description: Mistral AI Moderate chat conversation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: moderations
      path: /moderations
      operations:
      - name: createmoderation
        method: POST
        description: Mistral AI Moderate text content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MISTRAL_API_KEY}}'
  exposes:
  - type: rest
    namespace: moderation-moderation-rest
    port: 8080
    description: REST adapter for Mistral AI Mistral Moderation API — Moderation. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/chat/moderations
      name: chat-moderations
      description: REST surface for chat-moderations.
      operations:
      - method: POST
        name: createchatmoderation
        description: Mistral AI Moderate chat conversation
        call: moderation-moderation.createchatmoderation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/moderations
      name: moderations
      description: REST surface for moderations.
      operations:
      - method: POST
        name: createmoderation
        description: Mistral AI Moderate text content
        call: moderation-moderation.createmoderation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: moderation-moderation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mistral AI Mistral Moderation API — Moderation. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: mistral-ai-moderate-chat-conversation
      description: Mistral AI Moderate chat conversation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: moderation-moderation.createchatmoderation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mistral-ai-moderate-text-content
      description: Mistral AI Moderate text content
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: moderation-moderation.createmoderation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.