Skip to main content

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.

Scopeoliver:write (sensitive)
AsynchronousNo
MCP toolupdate_oliver_tool
Portal permissionsedit_oliver_tools

Parameters​

NameInTypeRequiredDescription
oliver_tool_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonOliverToolPatchInput
application/merge-patch+jsonOliverToolPatchInput

Responses​

StatusDescriptionBody
200Success.application/json OliverTool or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

OliverTool​

FieldTypeRequiredDescription
categorystring or nullRequired
char_countintegerRequired≥ -2147483648; ≤ 2147483647
created_atstring (date-time) or nullRequired
descriptionstring or nullRequired
input_schemastring or nullRequiredThe JSON schema of the tool's input, as text.
is_builtinbooleanRequiredTrue for a tool the Portal ships: its name, description, category and schemas cannot be changed and it cannot be deleted.
is_enabledbooleanRequiredWhether agents may be given the tool.
namestringRequired
oliver_tool_idstringRequired
output_schemastring or nullRequiredThe JSON schema of the tool's output, as text.
slugstringRequiredThe name an agent configuration's allowed_tools takes.
summarise_oliver_model_idstring or nullRequiredThe model that condenses the results; null for the organisation's default.
summarise_resultsbooleanRequiredWhether long results are condensed by a cheaper model first.
token_countintegerRequiredThe approximate size of the tool's text in tokens. ≥ -2147483648; ≤ 2147483647
updated_atstring (date-time) or nullRequired

OliverToolPatchInput​

FieldTypeRequiredDescription
categorystring or nullOptionalNot for a built-in tool; null clears it.
char_countinteger or nullOptional
created_atstring (date-time) or nullOptional
descriptionstring or nullOptionalNot for a built-in tool; null empties it.
input_schemastring or nullOptionalNot for a built-in tool; JSON text; null clears it.
is_builtinboolean or nullOptional
is_enabledboolean or nullOptional
namestring or nullOptionalNot for a built-in tool.
oliver_tool_idstring or nullOptional
output_schemastring or nullOptionalNot for a built-in tool; JSON text; null clears it.
slugstring or nullOptional
summarise_oliver_model_idstring or nullOptional
summarise_resultsboolean or nullOptional
token_countinteger or nullOptional
updated_atstring (date-time) or nullOptional