Trust Levels

How Ask Forge keeps an AI from acting beyond what you allow: every tool has a tier, Modify and External tools wait for your confirmation, and a trust level caps the conversational agent.

By the SchemaSmith Team · Last reviewed

Ask Forge trust levels

Running a tool through execute_tool is not a way around its tier.

Tiers

Ask Forge organizes its tools into four access tiers, a safety model that controls what the AI can do:

Tier What it can do Confirmation
Tier 1: ReadOnly Read, browse, analyze and review your schema package without changing it Never required
Tier 2: Generate Produce suggestions and schemas, and manage connections Never required
Tier 3: Modify Create, rename, and change schema package files Required
Tier 4: External Run SchemaTongs, SchemaQuench, DataTongs and SchemaShears as subprocesses (the Deploy tools) Required

Tier 1 and Tier 2 tools run without confirmation, on every surface. By default, a Tier 3 or Tier 4 tool waits for your confirmation before it runs, and a dry run is no exception. How you confirm depends on where the tool runs. Over MCP, the call must carry confirm: true. On the command line, you answer a prompt. A trust level is a separate limit, and only the conversational agent applies one.

The tier that counts is the tier of the tool that actually runs. The execute_tool tool (schemasmith_execute_tool over MCP, ask-forge execute-tool on the command line) is itself Tier 1, but it runs another tool by name, so the tool it runs decides the confirmation and, where a trust level applies, the ceiling. Nesting execute_tool inside itself changes nothing: the innermost tool decides.

The tools reference gives the tier of every tool.

Modify tools write each file whole or not at all, and a tool never writes over a change made while it was waiting for your confirmation. Modification Tools has the details.

The MCP Server

The MCP server has no trust level, and it ignores the one in your settings file. It checks only the tier. A Tier 1 or Tier 2 tool runs when your AI assistant calls it. A Tier 3 or Tier 4 tool runs only when the call carries confirm: true.

Each Tier 3 and Tier 4 tool is marked in the server's tool list. Its schema has a confirm parameter, its description ends with [Requires confirm: true], and its annotations set destructiveHint to true. Apart from execute_tool, below, Tier 1 and Tier 2 tools have no confirm parameter.

A call without confirm: true runs nothing. The server answers with the tool it would have run, its tier, and where the flag goes:

This operation requires confirmation.

Tool: schemasmith_apply_change
Tier: Modify (Modifies files or creates packages)
Description: Modify schema JSON files to apply changes

To execute this tool, add 'confirm: true' to the arguments.

A dry run is no exception: a schemasmith_run_schema_quench call with dry_run: true still needs confirm: true. With the flag set, the call runs without any further question.

Tools run through execute_tool

A tool can also be run through schemasmith_execute_tool, which is how your assistant reaches the tools the server does not list. It passes the tool's name, without the schemasmith_ prefix, as tool_name. The gate follows the tool it runs, so a Tier 3 or Tier 4 target needs confirm: true on the execute_tool arguments, alongside tool_name, not inside the inner arguments JSON:

{
  "tool_name": "rename_table",
  "arguments": "{\"table\": \"Customer\", \"new_name\": \"Customers\"}",
  "confirm": true
}

The execute_tool schema always offers confirm, because the tool it will run is not known until the call arrives. A refusal names both tools, as in Tool: schemasmith_execute_tool -> rename_table.

MCP Server Setup covers confirmation from your AI assistant's side.

Direct Subcommands

On the command line, every tool is a subcommand, and by default a Modify or External subcommand asks before it runs. It prints Confirm: and what it is about to do, then waits for one of three answers:

  • Yes, this once runs it.
  • Yes, always for this session runs it, and stops asking for that tier and the tiers below it until the session ends. In the REPL, that is when you leave.
  • No, cancel runs nothing.

Dry runs ask too: ask-forge run-schema-quench asks before it previews, as well as before it applies changes. ask-forge execute-tool asks according to the tool it runs, and its prompt starts with [execute_tool -> <target>], so you can see what you are approving.

Pass --yes (or -y) to answer yes for one command. In a script, where no prompt can be shown, a subcommand that needs confirmation stops with an error and changes nothing unless you pass --yes:

ask-forge run-schema-quench --product MyProduct --templates Main --yes

The confirmation level

The confirmationLevel setting, in the agent section of your settings file, decides which subcommands ask:

Value Asks before
always Tier 3 (Modify) and Tier 4 (External) tools. This is the default.
external Tier 4 (External) tools only
never No tool
{
  "agent": {
    "confirmationLevel": "external"
  }
}

The CLI reads it from the settings file when it starts. There is no REPL command for it.

The same rules apply to a tool command you type inside the REPL. No trust level applies to subcommands, whether you run them from your shell or from the REPL.

Trust Levels

A trust level limits the conversational agent: the AI that answers the questions you ask in the REPL, or as a one-shot question on the command line. It sets the highest tier the agent may run. The MCP server and direct subcommands do not read it.

Trust level The agent may run
observer Tier 1 (ReadOnly) tools only
assistant Tier 1 (ReadOnly) and Tier 2 (Generate) tools
operator Tools of every tier, including Modify and External

The default is assistant. Out of the box, the agent can analyze and generate, but it cannot change your schema package or run the Deploy tools. Start there, and raise it to operator when you're ready to let the AI make changes.

The agent is offered only the tools its trust level allows. A tool above the ceiling is refused before it runs, and so is one the agent reaches through execute_tool, because the ceiling follows the tool that runs, not the one the agent names. The refusal names the tool, its tier and the trust level:

Tool 'execute_tool -> apply_change' requires higher trust level: tier Modify exceeds the Assistant trust level's maximum of Generate. Raising the trust level is the only way to permit it.

A confirmation prompt is not a way past it: a trust level is a limit you set, not a question you can be asked. Within the limit, the REPL still asks you before a Modify or External tool runs, and the default answer is no.

Changing the trust level

Set trustLevel in the agent section of ~/.schemasmith/askforge.json, or of the file you name with --config:

{
  "agent": {
    "trustLevel": "operator"
  }
}

Or change it from the REPL. The new level applies to the running session at once, and it is saved to the same file:

config agent trustLevel operator

There is no command-line flag and no environment variable for the trust level. In the REPL, config agent shows the level in force.

Shape. Strengthen. Succeed.

Free schema-as-code for SQL Server, PostgreSQL, MySQL, and MariaDB.

The source is on GitHub for anyone to read.

Get Started on GitHub