---
title: "Update Agent Tool Policy"
method: PUT
path: "/agents/{agent_id}/tool-policy"
tags: ["agents"]
---

# Update Agent Tool Policy

`PUT /agents/{agent_id}/tool-policy`

Update the agent's default tool policy.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- AgentToolPolicyUpdate — Update an agent's default tool policy.
  - `default_tool_policy` ToolPolicy, required — Tool access policy — controls which tools an agent can use in a given context. Resolution order: agent default_tool_policy -> channel tool_policy -> session override.
    - `mode` 'all' | 'allowlist' | 'denylist' | 'inherit' — How the tool policy restricts available tools.
    - `tools` string[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
