---
title: "oz0 tenant tool-policy load"
description: "Usage and flags for oz0 tenant tool-policy load."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/tenant/tool-policy/load"
---
# oz0 tenant tool-policy load

> Usage and flags for oz0 tenant tool-policy load.

For: Operators and developers looking up a command.

How many approval prompts per day each rule of the tool policy that asks a person (Ask: action approve) would give,
counted from the tenant's tool calls of the last days (at most 30) whose function the rule matches and no earlier
rule without conditions decides. A rule with a condition (when, callers, kinds, other_plugins) shows an upper bound,
since the audit trail keeps no call's arguments outside its private part.

--policy-file counts for a draft policy (the
JSON tool-policy show --json prints) before you set it. The counts are per rule, never per person.

## Usage

```bash
oz0 tenant tool-policy load [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --days
      </code>
    </td>
    
    <td>
      int
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      how many days back to count, 1 to 30
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --policy-file
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      count for this draft tool policy (JSON) instead of the tenant's
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
