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

# Preview Tool Policy

> Evaluate unsaved tool selections without changing a preset.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json post /workspaces/{workspace_id}/agent/presets/tool-policy
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/presets/tool-policy:
    post:
      tags:
        - agent-presets
      summary: Preview Tool Policy
      description: Evaluate unsaved tool selections without changing a preset.
      operationId: agent-presets-preview_tool_policy
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentPresetToolPolicyPreview'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPresetToolPolicyRead'
        '400':
          description: Invalid tool policy selections
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentPresetToolPolicyPreview:
      properties:
        actions:
          items:
            type: string
          type: array
          title: Actions
        namespaces:
          items:
            type: string
          type: array
          title: Namespaces
        mcp_integrations:
          items:
            type: string
          type: array
          title: Mcp Integrations
        skill_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Skill Ids
        tool_approvals:
          additionalProperties:
            type: boolean
          type: object
          title: Tool Approvals
      type: object
      title: AgentPresetToolPolicyPreview
      description: Unsaved tool selections to evaluate using the runtime policy pipeline.
    AgentPresetToolPolicyRead:
      properties:
        actions:
          items:
            type: string
          type: array
          title: Actions
        requires_internet_access:
          type: boolean
          title: Requires Internet Access
          default: false
        has_approvals:
          type: boolean
          title: Has Approvals
          default: false
        blocked_tools:
          items:
            $ref: '#/components/schemas/PresetToolSourceRead'
          type: array
          title: Blocked Tools
        internet_sources:
          items:
            $ref: '#/components/schemas/PresetToolSourceRead'
          type: array
          title: Internet Sources
      type: object
      title: AgentPresetToolPolicyRead
      description: Non-secret effective policy for rendering preset configuration.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PresetToolSourceRead:
      properties:
        tool_id:
          type: string
          title: Tool Id
        skill_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Skill Id
        skill_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill Name
      type: object
      required:
        - tool_id
      title: PresetToolSourceRead
      description: The authored or skill origin of a policy-affected tool.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````