tool management

Update Tool Policy

Set the call policy for a tool.

Parameters:

  • tool_name: str - The tool to update
  • call_policy: "trusted" | "untrusted" | "dual_llm" | "blocked"

Setting a tool to "blocked" will cause the ToolPolicyGuardrail to remove that tool_call from LLM responses before returning them to the client.

post/v1/tool/policy

Request

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

Request body

tool_namestring required
call_policy'trusted' | 'untrusted' | 'dual_llm' | 'blocked' required

Response

Successful Response

tool_namestring required
call_policy'trusted' | 'untrusted' | 'dual_llm' | 'blocked' required
updatedboolean required

Changes

No recorded changes to this operation across all 17 revisions of this API.