Skip to content

Tool Models

Inputs for the tool-scanning fields on the inbound and outbound filter endpoints. Both accept OpenAI and Anthropic formats.

ToolCallInput

A tool call to scan before execution (used by tool_call on the outbound endpoint).

{
  "id": "call_xyz",
  "type": "function",
  "function": {
    "name": "get_weather",
    "arguments": "{\"city\":\"Berlin\"}"
  }
}
{
  "name": "get_weather",
  "input": { "city": "Berlin" }
}
Field Type Description
id string OpenAI tool call ID. Accepted, not used in the scan.
type string OpenAI tool type. Accepted, not used in the scan.
function object OpenAI function definition (name, arguments).
name string Anthropic tool name.
input object Anthropic tool arguments.

Send either function, or both name and input. Anything else is answered 422. When function is present, its name and arguments are used. arguments may be a JSON string or an object.

ToolResponseInput

A tool result to scan before returning it to the LLM (used by tool_response on the inbound endpoint).

{
  "tool_call_id": "call_xyz",
  "content": "Weather is sunny."
}
{
  "tool_use_id": "toolu_xyz",
  "content": "Weather is sunny."
}
Field Type Required Description
content string Yes Tool result content.
tool_call_id string No OpenAI tool call ID.
tool_use_id string No Anthropic tool use ID.

One of tool_call_id or tool_use_id is required. A tool response with neither is answered 422.