Create an Oliver tool catalogue entry.
POST/api/v1/oliver-toolsoliver:write
Adds a catalogue entry for a tool the server implements, so agents can be given it. The slug must name such a tool (422 on /slug otherwise) and no entry may have it already (409). The entry is not built in, so it can be changed and deleted. Needs Create Oliver Tools.
| Scope | oliver:write (sensitive) |
| Asynchronous | No |
| MCP tool | create_oliver_tool |
| Portal permissions | create_oliver_tools |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | OliverToolCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | 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 |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | already_exists, idempotency_in_progress | 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 | idempotency_key_reused, 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 |
OliverToolCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
category | string or null | Optional | The group the Tools tab lists the tool under. |
description | string or null | Optional | |
input_schema | string or null | Optional | The JSON schema of the tool's input, as JSON text. |
is_enabled | boolean or null | Optional | Whether agents may be given the tool; default true. |
name | string | Required | The name the Tools tab shows. |
output_schema | string or null | Optional | The JSON schema of the tool's output, as JSON text. |
slug | string | Required | The tool's slug: it must be a tool the server implements, which no other catalogue entry already has. |
summarise_oliver_model_id | string or null | Optional | The model that condenses the results (an id from list_oliver_models); omit for the organisation's default. |
summarise_results | boolean or null | Optional | Whether long results are condensed by a cheaper model first; default false. |