---
title: "Gate risky tool calls with Weka"
description: "Evaluate a proposed command against user intent, reversibility, and external effects before allowing an autonomous tool call."
slug: "models/weka/use-cases/gate-risky-tool-calls-with-weka"
sidebar:
  label: "Gate risky tool calls"
seo:
  canonical: "https://autohand.ai/use-cases/gate-risky-tool-calls-with-weka/"
---
Gate risky tool calls with Weka is a Weka typed-decision workflow that evaluate a proposed command against user intent, reversibility, and external effects before allowing an autonomous tool call. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.

## At a glance

| Question | Answer |
| --- | --- |
| Best for | Check intent and side effects before an agent acts |
| Input | Minimal JSON state built from observable evidence |
| Weka returns | A typed allow, review, or block decision that a tool runner can enforce. Available through the Weka API, Autohand SDK, and Console Playground. |
| Policy boundary | Your code owns thresholds, permissions, retries, audit logs, and the final action |

Put Weka between an autonomous agent&#039;s proposed action and the tool runner. Weka is in Public Preview and is available only through the Autohand API, SDK, and Console Playground.

## Compare the action with intent

Send the user&#039;s stated goal, the exact proposed command or operation, the target resources, reversibility, external side effects, and any existing authorization. Do not ask Weka to execute the tool.

## Ask for an enforceable branch

```json
{
  "model": "weka",
  "state": {
    "user_intent": "Clean generated build output",
    "tool": "shell",
    "command": "git reset --hard origin/main",
    "destructive": true,
    "external_effect": false
  },
  "questions": {
    "tool_action": {
      "type": "choice",
      "instructions": "Choose how the runtime should handle this call",
      "criteria": {
        "allow": "Authorized, scoped, and reversible",
        "review": "Aligned but materially risky",
        "block": "Conflicts with intent or lacks authority"
      }
    }
  }
}
```

## Keep the tool boundary authoritative

The runner enforces the returned branch and its own hard controls. Require review for low-confidence answers, retain explicit denylists for impossible actions, and log the decision state without secrets.

## Review before accepting

Test aligned, ambiguous, destructive, and prompt-injected calls. A model answer must never expand the agent&#039;s permissions.

## Source and validation signals

Autohand AI maintains this page as first-party Weka product guidance. Verify the current request contract in the [Weka model guide](/models/weka) and build application flows with the [Autohand SDK](https://autohand.ai/code/sdk/). Community patterns from the [AY Automate Jev builds index](https://www.ayautomate.com/jev-builds) and [dabit3/jev-experiments](https://github.com/dabit3/jev-experiments) informed the use-case taxonomy. Their measurements describe their own Jev implementations and are not Weka benchmarks.

## Frequently asked questions

**What is Gate risky tool calls with Weka?**

Gate risky tool calls with Weka is a Weka typed-decision workflow that evaluate a proposed command against user intent, reversibility, and external effects before allowing an autonomous tool call. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.

**When should a team use Gate risky tool calls with Weka?**

Check intent and side effects before an agent acts. Use it when the next software step needs one bounded decision and the application can preserve the evidence, probability, and policy outcome.

**What does Weka return for this workflow?**

A typed allow, review, or block decision that a tool runner can enforce. Available through the Weka API, Autohand SDK, and Console Playground.

**Does Weka take the final action?**

No. Weka evaluates the state and returns a typed answer. Application code remains responsible for authorization, thresholds, deterministic safety rules, logging, retries, and the final action.

## Related resources

**[Guide: Weka model guide](/models/weka)**

Design typed choices and keep final policy enforcement in code.

**[Playground: Console Playground](https://console.autohand.ai/playground/)**

Explore allow, review, and block criteria with real tool-call state.

**[SDK: Autohand SDK](https://autohand.ai/code/sdk/)**

Put a Weka decision step inside an agent tool runner.

**[Samples: Weka samples on GitHub](https://github.com/autohandai/weka-samples)**

Run typed release, CI, patch, data, research, and Code Agent SDK examples.

## API request starter

```text
POST /v1/decisions with model "weka", user intent and tool-call state, and an allow, review, or block choice question
```
