tool management

Update Tool Policy

Set the input_policy and/or output_policy for a tool (global), or block for a specific team/key (override).

Parameters:

  • tool_name: str - The tool to update
  • input_policy: optional - "trusted" | "untrusted" | "blocked"
  • output_policy: optional - "trusted" | "untrusted"
  • team_id: optional - if set, create/update override for this team only
  • key_hash: optional - if set, create/update override for this key only
post/v1/tool/policy

Request

  • Base URL: https://apiclaw.biz (the document declares no server; this is the origin it was published from)
  • URL: https://apiclaw.biz/v1/tool/policy
  • Auth: API key in header x-litellm-api-key

Request body

tool_namestring required
input_policy'trusted' | 'untrusted' | 'blocked' nullable
output_policy'trusted' | 'untrusted' nullable
team_idstring nullable
key_hashstring nullable
key_aliasstring nullable

Response

Successful Response

tool_namestring required
input_policy'trusted' | 'untrusted' | 'blocked' nullable
output_policy'trusted' | 'untrusted' nullable
updatedboolean required
team_idstring nullable
key_hashstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.