> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adstellar.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dry-run a rule against the team's current synced Meta data: how many entities it evaluates, which would match right now (and why), and near misses. Pass ruleId for a saved rule OR rule for an unsaved draft. Changes nothing.

> Dry-run a rule against the team's current synced Meta data: how many entities it evaluates, which would match right now (and why), and near misses. Pass ruleId for a saved rule OR rule for an unsaved draft. Changes nothing.



## OpenAPI

````yaml /openapi.json post /tools/preview_automation_rule
openapi: 3.1.0
info:
  title: AdStellar API
  version: 1.0.0
  description: >-
    Public REST API for AdStellar — creative generation, video generation,
    campaign management, and analytics. Every endpoint maps 1:1 to an AdStellar
    MCP tool.
servers:
  - url: https://app.adstellar.ai/api/v1
security: []
paths:
  /tools/preview_automation_rule:
    post:
      summary: >-
        Dry-run a rule against the team's current synced Meta data: how many
        entities it evaluates, which would match right now (and why), and near
        misses. Pass ruleId for a saved rule OR rule for an unsaved draft.
        Changes nothing.
      description: >-
        Dry-run a rule against the team's current synced Meta data: how many
        entities it evaluates, which would match right now (and why), and near
        misses. Pass ruleId for a saved rule OR rule for an unsaved draft.
        Changes nothing.
      operationId: preview_automation_rule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                ruleId:
                  description: Saved rule id from list_automation_rules.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                rule:
                  description: Unsaved rule object (see get_automation_rule_schema).
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                workspaceId:
                  description: >-
                    Workspace to act in (must be granted to this credential).
                    Omit for the primary workspace.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              additionalProperties: false
      responses:
        '200':
          description: Tool result
        '401':
          description: Missing or invalid API key
        '403':
          description: Missing required scope
        '429':
          description: Rate limit exceeded
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: AdStellar API key (ast_live_...)

````