Skip to content
Hexel StudioDocs

Create a new tool

POST/titan/tools/tools

Create a new tool in a toolkit the caller may write: its organization's own toolkit, or a system toolkit when the caller is the system tools organization. The tool is owned through its toolkit. A tool's slug and version are unique within its toolkit: a second create of the same pair is 409 TOOL_EXISTS. An organization's tool created published counts against its published tools limit (409 PUBLISHED_TOOLS_LIMIT). Requires permission tool-gateway:tool:write.

Headers

Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

X-Workspace-Idoptional string

Workspace scope used by permission checks, if applicable.

X-Environment-Idoptional string

Optional environment scope.

Body parameters

available_versionsarray of string

AvailableVersions lists the tool's versions; send [] or [version] (an omitted list is refused by the database).

backend_configoptional HTTPBackendConfig or MCPBackendConfig

BackendConfig is the HTTPBackendConfig of an http tool or the MCPBackendConfig of an mcp tool.

cacheable_secondsoptional integer

CacheableSeconds, when set, lets a result be cached that long.

capability_tagsarray of string

CapabilityTags label the tool (policy tags); send [] for none (an omitted list is refused by the database).

descriptionoptional string

Description is shown to agents choosing the tool.

ExecutionBackend selects how the tool runs and the shape of backend_config: "http" (an HTTP or GraphQL API call) or "mcp" (a tools/call on an MCP server).

One of: "http", "mcp"

idempotency_requiredoptional boolean

IdempotencyRequired requires an idempotency key on every execution.

InputSchema is the JSON Schema of the tool's arguments: it needs a "type", and an object schema needs "properties".

is_side_effectingoptional boolean

IsSideEffecting marks a tool that changes state at the destination.

lifecycleoptional string

Lifecycle is "draft" (the default) or "published". A tool created published must pass the publish lint (400 TOOL_LINT_FAILED) and counts against its organization's published tools limit.

One of: "draft", "published"

max_retriesoptional integer

MaxRetries defaults to 3 when omitted or 0.

namestring

OutputSchema is the JSON Schema of the tool's result, with the same rules as input_schema.

required_scopesarray of string

RequiredScopes lists the provider scopes the tool needs; send [] for none (an omitted list is refused by the database).

requires_authoptional boolean

RequiresAuth says the tool needs a connected account of its toolkit.

slugstring

Slug identifies the tool within its toolkit (with version).

timeout_secondsoptional integer

TimeoutSeconds defaults to 30 when omitted or 0.

toolkit_idoptional stringuuid

ToolkitID names the toolkit by id; it takes precedence over toolkit_slug.

toolkit_slugoptional string

ToolkitSlug names the toolkit; give it or toolkit_id.

versionstring

Returns

201CreatedTool

authoptional ToolAuthV1
available_versionsoptional array of string
backend_configoptional object
cacheable_secondsoptional integer
capabilitiesoptional array of string
capability_tagsoptional array of string
created_atoptional string
deprecated_atoptional string
descriptionoptional string
endpointoptional string
execution_backendoptional string
idempotencyoptional boolean
idempotency_requiredoptional boolean
input_schemaoptional object
is_side_effectingoptional boolean
lifecycleoptional string

draft, published, deprecated, retired

max_retriesoptional integer
nameoptional string
output_schemaoptional object
owner_organization_idoptional string

OwnerOrganizationID is the owner of the tool's toolkit, absent for a system tool. Read-only.

policy_tagsoptional array of string
published_atoptional string
rate_limitoptional ToolRateLimitV1
required_scopesoptional array of string
requires_authoptional boolean
retired_atoptional string
slugoptional string
streamingoptional boolean
timeout_msoptional integer
timeout_secondsoptional integer
tool_idoptional string
toolkit_idoptional string
toolkit_slugoptional string

For discovery/auth resolution

updated_atoptional string
versionoptional string

Errors

  • 400Bad Request
  • 401Unauthenticated: token missing or rejected at the edge
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 500Internal Server Error