Create an Oliver tool catalogue entry.
POST/api/v1/oliver-toolsoliver:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | oliver:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | create_oliver_tool |
| Portal の権限 | create_oliver_tools |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverToolCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json OliverTool または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
OliverTool
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
category | string または null | 必須 | |
char_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) または null | 必須 | |
description | string または null | 必須 | |
input_schema | string または null | 必須 | The JSON schema of the tool's input, as text. |
is_builtin | boolean | 必須 | True for a tool the Portal ships: its name, description, category and schemas cannot be changed and it cannot be deleted. |
is_enabled | boolean | 必須 | Whether agents may be given the tool. |
name | string | 必須 | |
oliver_tool_id | string | 必須 | |
output_schema | string または null | 必須 | The JSON schema of the tool's output, as text. |
slug | string | 必須 | The name an agent configuration's allowed_tools takes. |
summarise_oliver_model_id | string または null | 必須 | The model that condenses the results; null for the organisation's default. |
summarise_results | boolean | 必須 | Whether long results are condensed by a cheaper model first. |
token_count | integer | 必須 | The approximate size of the tool's text in tokens. ≥ -2147483648; ≤ 2147483647 |
updated_at | string (date-time) または null | 必須 |
OliverToolCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
category | string または null | 任意 | The group the Tools tab lists the tool under. |
description | string または null | 任意 | |
input_schema | string または null | 任意 | The JSON schema of the tool's input, as JSON text. |
is_enabled | boolean または null | 任意 | Whether agents may be given the tool; default true. |
name | string | 必須 | The name the Tools tab shows. |
output_schema | string または null | 任意 | The JSON schema of the tool's output, as JSON text. |
slug | string | 必須 | The tool's slug: it must be a tool the server implements, which no other catalogue entry already has. |
summarise_oliver_model_id | string または null | 任意 | The model that condenses the results (an id from list_oliver_models); omit for the organisation's default. |
summarise_results | boolean または null | 任意 | Whether long results are condensed by a cheaper model first; default false. |