Google Cloud Chronicle · Capability

Google Cloud Chronicle API — Rules

Google Cloud Chronicle API — Rules. 5 operations. Lead operation: Google Cloud Chronicle List detection rules. Self-contained Naftiko capability covering one Google Cloud Chronicle business surface.

Run with Naftiko Google Cloud ChronicleRules

What You Can Do

GET
Listrules — Google Cloud Chronicle List detection rules
/v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules
POST
Createrule — Google Cloud Chronicle Create a detection rule
/v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules
GET
Getrule — Google Cloud Chronicle Get a detection rule
/v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules/{ruleid}
PATCH
Updaterule — Google Cloud Chronicle Update a detection rule
/v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules/{ruleid}
DELETE
Deleterule — Google Cloud Chronicle Delete a detection rule
/v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules/{ruleid}

MCP Tools

google-cloud-chronicle-list-detection

Google Cloud Chronicle List detection rules

read-only idempotent
google-cloud-chronicle-create-detection

Google Cloud Chronicle Create a detection rule

google-cloud-chronicle-get-detection

Google Cloud Chronicle Get a detection rule

read-only idempotent
google-cloud-chronicle-update-detection

Google Cloud Chronicle Update a detection rule

idempotent
google-cloud-chronicle-delete-detection

Google Cloud Chronicle Delete a detection rule

idempotent

Capability Spec

chronicle-rules.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud Chronicle API — Rules
  description: 'Google Cloud Chronicle API — Rules. 5 operations. Lead operation: Google Cloud Chronicle List detection rules.
    Self-contained Naftiko capability covering one Google Cloud Chronicle business surface.'
  tags:
  - Google Cloud Chronicle
  - Rules
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_CHRONICLE_API_KEY: GOOGLE_CLOUD_CHRONICLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: chronicle-rules
    baseUri: https://chronicle.googleapis.com/v1alpha
    description: Google Cloud Chronicle API — Rules business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-locations-location-instances-instanceId-rules
      path: /projects/{projectId}/locations/{location}/instances/{instanceId}/rules
      operations:
      - name: listrules
        method: GET
        description: Google Cloud Chronicle List detection rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createrule
        method: POST
        description: Google Cloud Chronicle Create a detection rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectId-locations-location-instances-instanceId-rules-ruleId
      path: /projects/{projectId}/locations/{location}/instances/{instanceId}/rules/{ruleId}
      operations:
      - name: getrule
        method: GET
        description: Google Cloud Chronicle Get a detection rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updaterule
        method: PATCH
        description: Google Cloud Chronicle Update a detection rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleterule
        method: DELETE
        description: Google Cloud Chronicle Delete a detection rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_CHRONICLE_API_KEY}}'
  exposes:
  - type: rest
    namespace: chronicle-rules-rest
    port: 8080
    description: REST adapter for Google Cloud Chronicle API — Rules. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules
      name: projects-projectid-locations-location-instances-instanceid-rules
      description: REST surface for projects-projectId-locations-location-instances-instanceId-rules.
      operations:
      - method: GET
        name: listrules
        description: Google Cloud Chronicle List detection rules
        call: chronicle-rules.listrules
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createrule
        description: Google Cloud Chronicle Create a detection rule
        call: chronicle-rules.createrule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/locations/{location}/instances/{instanceid}/rules/{ruleid}
      name: projects-projectid-locations-location-instances-instanceid-rules-ruleid
      description: REST surface for projects-projectId-locations-location-instances-instanceId-rules-ruleId.
      operations:
      - method: GET
        name: getrule
        description: Google Cloud Chronicle Get a detection rule
        call: chronicle-rules.getrule
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updaterule
        description: Google Cloud Chronicle Update a detection rule
        call: chronicle-rules.updaterule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterule
        description: Google Cloud Chronicle Delete a detection rule
        call: chronicle-rules.deleterule
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: chronicle-rules-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud Chronicle API — Rules. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-cloud-chronicle-list-detection
      description: Google Cloud Chronicle List detection rules
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: chronicle-rules.listrules
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-chronicle-create-detection
      description: Google Cloud Chronicle Create a detection rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: chronicle-rules.createrule
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-chronicle-get-detection
      description: Google Cloud Chronicle Get a detection rule
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: chronicle-rules.getrule
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-chronicle-update-detection
      description: Google Cloud Chronicle Update a detection rule
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: chronicle-rules.updaterule
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-chronicle-delete-detection
      description: Google Cloud Chronicle Delete a detection rule
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: chronicle-rules.deleterule
      outputParameters:
      - type: object
        mapping: $.