Change an Oliver tool's settings.
PATCH/api/v1/oliver-tools/{oliver_tool_id}oliver:write
Switches a tool off or on for the organisation, chooses whether its long results are summarised, and which model summarises them (an id from list_oliver_models; null goes back to the organisation's default). For a tool that is not built in it also changes name, description, category and the input and output schemas; a built-in tool answers 403 when one of those changes. Needs Edit Oliver Tools.
| Scope | oliver:write (sensitive) |
| Asynchronous | No |
| MCP tool | update_oliver_tool |
| Portal permissions | edit_oliver_tools |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
oliver_tool_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | OliverToolPatchInput |
application/merge-patch+json | OliverToolPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json OliverTool or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
OliverTool
| Field | Type | Required | Description |
|---|---|---|---|
category | string or null | Required | |
char_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) or null | Required | |
description | string or null | Required | |
input_schema | string or null | Required | The JSON schema of the tool's input, as text. |
is_builtin | boolean | Required | True for a tool the Portal ships: its name, description, category and schemas cannot be changed and it cannot be deleted. |
is_enabled | boolean | Required | Whether agents may be given the tool. |
name | string | Required | |
oliver_tool_id | string | Required | |
output_schema | string or null | Required | The JSON schema of the tool's output, as text. |
slug | string | Required | The name an agent configuration's allowed_tools takes. |
summarise_oliver_model_id | string or null | Required | The model that condenses the results; null for the organisation's default. |
summarise_results | boolean | Required | Whether long results are condensed by a cheaper model first. |
token_count | integer | Required | The approximate size of the tool's text in tokens. ≥ -2147483648; ≤ 2147483647 |
updated_at | string (date-time) or null | Required |
OliverToolPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
category | string or null | Optional | Not for a built-in tool; null clears it. |
char_count | integer or null | Optional | |
created_at | string (date-time) or null | Optional | |
description | string or null | Optional | Not for a built-in tool; null empties it. |
input_schema | string or null | Optional | Not for a built-in tool; JSON text; null clears it. |
is_builtin | boolean or null | Optional | |
is_enabled | boolean or null | Optional | |
name | string or null | Optional | Not for a built-in tool. |
oliver_tool_id | string or null | Optional | |
output_schema | string or null | Optional | Not for a built-in tool; JSON text; null clears it. |
slug | string or null | Optional | |
summarise_oliver_model_id | string or null | Optional | |
summarise_results | boolean or null | Optional | |
token_count | integer or null | Optional | |
updated_at | string (date-time) or null | Optional |