Tool
Stability: beta -- This resource kind ships with
orloj.dev/v1and is suitable for production use, but its schema may evolve with migration guidance in future minor releases.
spec
type(string): tool type. Allowed values:http,external,grpc,webhook-callback,queue,mcp. Unknown values are rejected at apply time.endpoint(string): tool endpoint URL (orhost:portfor gRPC).description(string): human-readable description of the tool. Passed to model gateways for richer tool definitions. Auto-populated for MCP-generated tools.input_schema(object): JSON Schema for tool parameters. Passed to model gateways for structured parameter definitions. Auto-populated for MCP-generated tools.mcp_server_ref(string): name of the McpServer that provides this tool. Required whentype=mcp.mcp_tool_name(string): the tool name as reported by the MCP server'stools/list. Required whentype=mcp.capabilities([]string): declared operations.operation_classes([]string): operation class annotations. Allowed values:read,write,delete,admin. Used byToolPermission.operation_rulesfor per-class policy verdicts.risk_level(string):low,medium,high,critical.runtime(object):timeout(duration string)isolation_mode:none,sandboxed,container,wasmretry.max_attempts(int)retry.backoff(duration string)retry.max_backoff(duration string)retry.jitter:none,full,equal
auth(object):profile(string): auth profile. Allowed values:bearer,api_key_header,basic,oauth2_client_credentials. Defaults tobearerwhensecretRefis set.secretRef(string): namespaced secret reference. Required whenprofileis set.headerName(string): custom header name. Required whenprofile=api_key_header.tokenURL(string): OAuth2 token endpoint. Required whenprofile=oauth2_client_credentials.scopes([]string): OAuth2 scopes.
Defaults and Validation
typedefaults tohttp. Unknown types are rejected with a validation error.mcptype tools are typically auto-generated by the McpServer controller; see Connect an MCP Server.auth.profiledefaults tobearerwhensecretRefis set. Unknown profiles are rejected.auth.headerNameis required whenprofile=api_key_header.auth.tokenURLis required whenprofile=oauth2_client_credentials.capabilitiesare trimmed and deduplicated (case-insensitive).operation_classesare trimmed, lowercased, and deduplicated. Invalid values are rejected. Defaults to["read"]forlow/mediumrisk,["write"]forhigh/criticalrisk.risk_leveldefaults tolow.runtime.timeoutdefaults to30sand must parse as duration.runtime.isolation_modedefaults to:sandboxedforhigh/criticalrisknoneforlow/mediumrisk
runtime.retrydefaults:max_attempts->1backoff->0smax_backoff->30sjitter->none
status
phase,lastError,observedGeneration
Examples:
examples/resources/tools/*.yamlexamples/resources/tools/wasm-reference/wasm_echo_tool.yaml
See also: Tool concepts.