Skip to main content

Tool Call Output Ontology

Output Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
TOOL CALL OUTPUT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Output Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/tool-call-output-ontology.html
Authors: Mark Anthony Higgins — Sky, Recursive AI
Companion formalisation: 1 November 2026
Status: Independently authored Flow Algebra companion; page's embedded specification was not available in retrieved text.

01. PURPOSE
Represent a tool-call output as a typed, bounded and auditable request for an external capability, distinguished from a tool result and from a claim that an action has occurred.

02. ENTITY DEFINITION
ToolCallOutput := (call_id, tool_id, operation, arguments, schema, context_ref, permissions, status, provenance)
call_id: unique invocation identifier.
tool_id: selected callable capability.
operation: permitted operation name.
arguments: validated structured input.
schema: declared argument and response contract.
context_ref: references to relevant task state.
permissions: scope and authorisation constraints.
status: proposed | validated | dispatched | rejected | completed | failed.
provenance: origin, version and trace identifiers.

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current task information and candidate tool call.
R_t = tool registry, schemas and dependency relationships.
B_t = boundaries: policy, permissions, budgets, data minimisation and execution limits.
K_t = known capabilities, tool responses and previous outcomes.
A tool call is admissible only if it satisfies B_t and its schema contract.

04. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {c in E_t | schema_valid(c) AND authorised(c, B_t) AND tool_exists(c)}
c*_t = argmax_{c in V_t} P(c | I_t, R_t, B_t, K_t)
O_t = emit_tool_call(c*_t)
S_{t+1} = update(S_t, O_t, result_t)
If V_t = empty, emit a non-execution error or clarification rather than fabricate a call.
Selection probability is a ranking model, not proof of correctness.

05. IMPLEMENTS
Input: user/task intent, current context, tool registry and declared schemas.
Validate: tool availability, operation, arguments, authorisation and side-effect risk.
Output: one machine-readable call request with traceable identity.
Dispatch: separate execution stage handled by the authorised runtime.
Result: separately typed ToolResultInput linked by call_id.

06. HOW TO READ
The tool-call output is an instruction to an execution interface, not the returned information. Validation precedes dispatch. A dispatched call may fail or time out; completion must be established from the actual response.

07. TRI-MAPPING
Semantic: task intent -> selected capability -> requested operation.
Structural: ToolCallOutput -> ToolRegistryEntry -> ArgumentSchema -> ToolResultInput.
Operational: propose -> validate -> authorise -> dispatch -> observe -> reconcile.

08. RELATIONSHIP GRAPH
TaskIntent --requires--> Capability
Capability --implemented_by--> Tool
Tool --declares--> InputSchema
ToolCallOutput --targets--> Tool
ToolCallOutput --contains--> Arguments
ToolCallOutput --constrained_by--> Boundary
ToolCallOutput --correlates_with--> ToolResultInput
ToolResultInput --updates--> KnowledgeState

09. MAPPING TABLE
intent             -> I_t.task
capability lookup  -> R_t.tool_registry
argument checking  -> B_t.schema_constraints
permission check   -> B_t.authorisation
call selection     -> c*_t
emitted call       -> O_t
observed response  -> result_t
state reconciliation -> S_{t+1}

10. MINI RECURSION ENGINE
RECURSE(S_t):
  candidates := expand(I_t, R_t)
  valid := filter(candidates, B_t, schema)
  if valid is empty: return blocked_or_clarification
  chosen := rank(valid, K_t)
  call := emit(chosen)
  response := await_authorised_execution(call)
  next := update(S_t, call, response)
  if goal_satisfied(next) OR limit_reached(next): return next
  return RECURSE(next)
Recursion must be bounded by call count, cost, elapsed time and safety constraints.

11. INFERENCE RULES
R1: Missing tool or invalid schema => reject call.
R2: Missing authorisation for side effects => do not dispatch.
R3: A valid tool-call output does not imply successful execution.
R4: Correlate each result with its call_id before updating state.
R5: Failure, timeout or malformed response => preserve failure status and evidence.
R6: Sensitive arguments => minimise disclosure and respect permissions.
R7: Retry only where allowed; prevent unintended duplicate side effects.
R8: Unknown outcome => represent uncertainty rather than invent success.

12. EXECUTION GUARANTEES AND LIMITS
Guaranteed by the formal specification when implemented correctly: type checking before dispatch; boundary checks; traceable call/result linkage; explicit failure states; bounded recursion.
Not guaranteed: tool uptime, successful external actions, semantic truth of results, or absence of external side effects. Such properties require independent runtime evidence.

13. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins | Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/output-entities/tool-call-output-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: Identify and reason about tool-call output entities in AI workflows.
STATE_MODEL: S_t = (I_t, R_t, B_t, K_t)
ENTITIES: ToolCallOutput, Tool, Capability, ArgumentSchema, ToolResultInput, Boundary, Trace.
PATHWAYS: intent -> capability -> validation -> authorisation -> call -> result -> state update.
MINI_RECURSION_ENGINE: bounded validate/dispatch/observe/update cycle.
INFERENCE_RULES: R1-R8 above.
CONFIDENCE: formal-model proposal; not an empirical accuracy score.
SEMANTIC_EQUIVALENCE: function invocation request | structured tool call | capability dispatch request (context dependent).
FLOW_HASH: calculate SHA-256 on the final published UTF-8 file; no fabricated hash supplied.
UPDATE_MODEL: version and revalidate when tool contracts, permissions or ontology definitions change.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ