---
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`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/agents/{agent_id}/tool-policy`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

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.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
