メインコンテンツまでスキップ

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-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonOliverToolCreateInput

応答​

ステータス説明本文
201Success.application/json OliverTool または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

OliverTool​

フィールド型必須説明
categorystring または null必須
char_countinteger必須≥ -2147483648; ≤ 2147483647
created_atstring (date-time) または null必須
descriptionstring または null必須
input_schemastring または null必須The JSON schema of the tool's input, as text.
is_builtinboolean必須True for a tool the Portal ships: its name, description, category and schemas cannot be changed and it cannot be deleted.
is_enabledboolean必須Whether agents may be given the tool.
namestring必須
oliver_tool_idstring必須
output_schemastring または null必須The JSON schema of the tool's output, as text.
slugstring必須The name an agent configuration's allowed_tools takes.
summarise_oliver_model_idstring または null必須The model that condenses the results; null for the organisation's default.
summarise_resultsboolean必須Whether long results are condensed by a cheaper model first.
token_countinteger必須The approximate size of the tool's text in tokens. ≥ -2147483648; ≤ 2147483647
updated_atstring (date-time) または null必須

OliverToolCreateInput​

フィールド型必須説明
categorystring または null任意The group the Tools tab lists the tool under.
descriptionstring または null任意
input_schemastring または null任意The JSON schema of the tool's input, as JSON text.
is_enabledboolean または null任意Whether agents may be given the tool; default true.
namestring必須The name the Tools tab shows.
output_schemastring または null任意The JSON schema of the tool's output, as JSON text.
slugstring必須The tool's slug: it must be a tool the server implements, which no other catalogue entry already has.
summarise_oliver_model_idstring または null任意The model that condenses the results (an id from list_oliver_models); omit for the organisation's default.
summarise_resultsboolean または null任意Whether long results are condensed by a cheaper model first; default false.