Popular starting points. Use Tab or arrow keys to browse results.

Skip to content
Aten SecurityThoth docs

Govern your first agent

Connect an agent, confirm what its tools do, choose a profile, and see decisions, without writing a rule.

Thoth governs an agent from its first call. You don't write rules to get started: you tell Thoth what each tool does, and a profile turns that into decisions. This page takes one agent from first call to a confirmed policy.

Open Workspace to use the setup cards. The navigation has Workspace, Agents, Activity, Approvals, Evidence and Settings. Trials use setup cards or Claude Code or Cursor; the hosted assistant is available on paid plans.

1. Connect the agent

Instrument the agent with an SDK or the MCP proxy, as in Instrument your own agent. Every tool call now goes through Thoth before it runs.

Until you confirm a tool's effects, Thoth treats it as unconfirmed and holds each call for an approver (STEP_UP). Unconfirmed never means allowed.

2. Review the tools Thoth found

When the agent starts, the SDK or proxy reports its tools: names, descriptions and input-schema structure. Thoth proposes what each tool does, from MCP annotations such as readOnlyHint and from the tool's name and arguments.

Proposals are suggestions, not permissions. A tool that describes itself as read-only is still held until a person confirms it. Set THOTH_TOOL_INVENTORY=off in the agent's environment to stop reporting tools.

In Workspace, open Confirm what your tools do to review the reported inventory. Reported descriptions are untrusted data. You can also list the tools and their proposals:

thothctl tools list

Recommendations for each tool

Workspace admins also get, for each tool, a recommendation from names, schemas and observed decisions: risk flags (command execution, file writes, network access, email or publishing, credentials, bulk or destructive actions, sensitive data sources, instruction-like text in the description), a risk level, the action classes it suggests, whether to hold (STEP_UP) or block it, the reasons, and a draft policy rule you can preview with preview_policy_rule. The GET tool-inventory response and the MCP list_tool_inventory tool return them.

Tools that Claude Code runs through the hook, such as mcp__metabase__run_query, are not reported to the inventory. Thoth finds them by counting recorded decisions per tool name (last 30 days: calls, allow, hold and block counts, last seen, distinct agents). It reads only the tool name, agent, decision and time from those records, never arguments, paths, hosts or commands. The server name is parsed from the mcp__<server>__<tool> name.

Limits:

  • Recommendations are conservative suggestions from untrusted metadata, never an allow-list. Nothing writes a class, creates a rule or changes a decision until a person confirms a declaration or commits a previewed rule.
  • A name that reads as read-only, or a readOnlyHint annotation, is only a reason: the tool wrote it, so the recommendation stays STEP_UP ("looks read-only by its own metadata (unverified)"). Thoth recommends allowing a tool only after an admin has declared it read, and a command, URL, credential or similar argument in its schema or description is never softened.
  • They rest on keywords in names, schema keys and descriptions. A harmless tool with an alarming name is flagged, and a risky tool with a neutral name is not. Tools that match nothing are recommended STEP_UP.
  • A tool seen only through the hook has no description or schema, so its recommendation rests on its name and observed behaviour. It is not matched to an inventory row by tool name alone, because the same name on another server is another tool.
  • Descriptions are untrusted and are never repeated in a recommendation. A description with instruction-like phrasing sets a flag and names its category (for example instruction override), nothing more.
  • The draft rule matches the tool by name. Its action_class in [...] condition applies once the tool's classes are declared.
  • Tools seen only in decision records appear in thothctl tools list, thothctl tools recommend and the thoth_tool_inventory Terraform data source, not yet in the dashboard.

Read the recommendations from code

Each of these reads the same recommendations and writes nothing:

# Per tool: class, decision, risk and the reasons. Add --format json for scripts,
# --server <name> for one MCP server, --show-rules to print each draft rule.
thothctl tools recommend --server metabase
data "thoth_tool_inventory" "unclassified" {
  needs_classification = true
}
 
output "tool_recommendations" {
  value = jsondecode(data.thoth_tool_inventory.unclassified.data_json)
}

The MCP list_tool_inventory tool returns them too. thothctl tools list shows a suggested decision beside each tool.

thothctl tools recommend --apply-classes --tool <name> declares classes for that one tool. There is no bulk form: one tool per run. A declared class can relax a tool, and the recommendation comes from names and schemas that agents and tool authors write, so it only declares classes the shipped profiles hold for approval (execute, delete, bulk_operation, export, external_call, credential_access). read, write and sensitive_data_access are allowed by the shipped profiles and are never declared from a recommendation; declare them yourself with thothctl tools confirm after looking at the tool. Before declaring, it prints the expected effect (for example "declaring execute moves the tool from STEP_UP to STEP_UP under the shipped profiles"; it says "effect unknown" for a class it cannot describe, and it does not check policy rules you added) and asks you to confirm. Pass --yes to confirm without a prompt; with no terminal and no --yes it refuses. It uses the same flow as thothctl tools confirm, so the same checks apply (an admin with a recent second factor). It never applies a rule: a draft rule is only printed. Add --dry-run to see the effect without sending anything. Preview and commit a rule with thothctl governance policies or the MCP preview_policy_rule.

What these recommendations are not

They recommend; they do not detect, verify or secure anything. They are advisory, admin-only suggestions built from tool names, reported schemas and observed decisions, all written by agents or tool authors. They can raise caution but never lower it, never replace a person's review, and never allow a tool by themselves. A tool seen only through the hook rests on its name and observed decisions. The draft rule matches a tool by name until the enforcer evaluates by declared class.

  • At 1,000 tools a signed-in admin's report drops the longest-unseen tools with no declared class. An agent's own key can displace only tools that agent alone reported, so one agent cannot push out another's. A tool with a declared class is never dropped. Trials keep their hard limit of 100 tools.

3. Confirm what each tool does

Confirming records the tool's effects as a declaration. Only a tenant admin can confirm, or an approver when the tenant has no admin. A confirmation applies to the next decision. Cards show a server-generated preview, its affected agents and diff. Read it, then select Confirm this change. Completion requires a verified readback; a stale or expired preview needs a new review and confirm click.

thothctl tools confirm orders.list --classes read
thothctl tools confirm orders.delete --classes delete

The same declarations in Terraform:

resource "thoth_tool_classification" "read_orders" {
  tool_name = "orders.list"
  classes   = ["read"]
}
 
resource "thoth_tool_classification" "delete_order" {
  tool_name = "orders.delete"
  classes   = ["delete"]
}

A tool can have more than one class. Thoth applies the most restrictive outcome among them. See Profiles and action classes for the classes and what each means.

4. Choose a profile

Every agent starts on safe-default: confirmed reads and writes are allowed, deletes, external calls and other high-impact actions need an approver, and sensitive data cannot leave your system. Choose a profile that adds rules for your kind of agent:

ProfileAdds
coding-agentApproved Git remotes, production releases, secrets files
finance-operationsVendor bank details, large payments, new payees
customer-supportLarge refunds, customer data leaving, account deletion

Choose Choose one workspace profile in Workspace, at trial signup, or with the CLI or Terraform:

thothctl init --agent-id my-agent --profile coding-agent
resource "thoth_pack_assignment" "my_agent" {
  agent_id        = "my-agent"
  pack_id         = "coding-agent"
  profile_version = "1.0.0"
}

A trial uses one profile for the whole workspace. On a paid plan, each agent can use its own profile, and admins can change its parameters, such as the payment approval amount.

5. See the decisions

Call each tool. With coding-agent and the declarations above:

CallDecision
orders.list (read)ALLOW
orders.delete (delete)STEP_UP: an approver decides
A tool you haven't confirmedSTEP_UP

Each decision names the rule that matched, and the profile and version, in its reason, its signed receipt and Activity. Open a decision to read its rule, approval resolution and separately recorded execution. An approval alone does not mean the tool ran. Use /v1/explain for a plain-language explanation of any refusal.

What changes later

  • Profile versions are pinned. When a profile improves, your agents stay on their current version until an admin approves the update.
  • Removing a profile returns the agent to safe-default. safe-default itself can't be removed.
  • If model scoring is unavailable, confirmed profile ALLOW decisions still apply where your deployment enables it, and unconfirmed tools still need an approver.

On this page