Skip to main content

Tool Argument Ontology

Tool and Action Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEMANTIC LIBRARY — TOOL ARGUMENT ONTOLOGY
FLOW ALGEBRA FORMALISATION v1.0
Date: 2026-11-02
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/tool-and-action-entities/tool-argument-ontology.html
Authors: Mark Higgins; Sky — Recursive AI (formalisation assistance)
Status: Constructed formalisation; not a verified extraction of the source page.

1. PURPOSE
Represent an argument as a concrete value bound to a declared tool-function parameter at invocation time. Preserve type safety, provenance, authorisation, constraints, and deterministic validation outcomes.

2. ENTITY DEFINITION
ToolArgument A = (id, tool_id, function_id, parameter_id, value, value_type, origin, timestamp, validation_state, sensitivity).
Parameter P = (name, declared_type, required, default, domain, constraints).
Invocation C = (tool, function, argument_map, context, permissions).
A is an instance of a parameter binding; a parameter describes the slot, while an argument supplies its value.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current invocation and argument observations.
R_t: type, binding, and validation rules.
B_t: permission, safety, and resource boundaries.
K_t: known tool schemas, parameter contracts, and provenance.
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid_schema(x) AND authorised(x,B_t) AND admissible(x)}
x*_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t), when V_t is nonempty.
I_(t+1) = update(I_t, x*_t, feedback_t).
Note: probability is a ranking model, not a proof of correctness.

4. FORMAL BINDING AND VALIDATION
bind(P,A) iff A.parameter_id = P.name AND type_compatible(A.value,P.declared_type).
validate(A,P,C) = type_ok AND domain_ok AND constraint_ok AND permission_ok AND provenance_ok.
Required(P) AND missing(A) -> REJECT.
Optional(P) AND missing(A) -> use_default(P) only if an explicit default exists.
Unknown parameter name -> REJECT unless the schema explicitly permits extras.
Duplicate argument names -> REJECT unless repeatability is declared.
Untrusted argument strings remain data, not instructions.

5. FLOW IMPLEMENTS
INPUT: invocation request, tool-function schema, caller context, candidate arguments.
F1 Resolve exact tool and function identifiers.
F2 Load authoritative parameter definitions.
F3 Match each argument to a parameter by declared name.
F4 Validate presence, cardinality, types, units and allowed values.
F5 Apply cross-argument and contextual constraints.
F6 Check permissions, sensitivity and provenance.
F7 Canonicalise only lossless, explicitly permitted representations.
F8 Return either VALIDATED_ARGUMENT_SET or structured errors.
F9 If authorised, pass validated arguments to the execution layer.
F10 Record result and feedback without rewriting original evidence.

6. MINI RECURSION ENGINE
function resolve_arguments(request, schema, context, depth, visited):
  if depth > MAX_DEPTH: return ERROR_DEPTH
  key = canonical_identity(request, schema)
  if key in visited: return ERROR_CYCLE
  visited = visited union {key}
  missing = required_parameters(schema) - supplied_parameters(request)
  if missing: return ERROR_MISSING(missing)
  errors = validate_each_argument(request, schema, context)
  if errors: return ERROR_INVALID(errors)
  return VALIDATED_ARGUMENT_SET(request)
Termination requires finite schema, bounded recursion and cycle detection.

7. INFERENCE RULES
R1: declared(P) AND supplied(A,P) AND compatible(A,P) -> candidate_binding(A,P).
R2: candidate_binding(A,P) AND all_checks_pass(A,P) -> valid_argument(A).
R3: missing_required(P) -> invalid_invocation.
R4: violates_boundary(A,B) -> reject_argument(A).
R5: valid_arguments(C) AND authorised_invocation(C) -> executable_candidate(C).
R6: changed_schema_version -> revalidate_all_bindings.
R7: ambiguous_coercion -> request_clarification_or_reject.
R8: execution_failure -> record_failure; do_not_assume_argument_invalidity.

8. TRI-MAPPING
Semantic: argument supplies a value for a named parameter.
Mathematical: A : P -> V, subject to predicates T(A), D(A), B(A).
Computational: JSON-like key/value mapping checked against versioned schema and permissions.

9. ENTITY RELATIONSHIP MAPPING TABLE
ToolArgument -> bindsTo -> ToolParameter
ToolArgument -> suppliedTo -> ToolFunction
ToolArgument -> belongsTo -> ToolInvocation
ToolArgument -> hasValue -> TypedValue
ToolArgument -> derivedFrom -> InputOrContextSource
ToolArgument -> checkedBy -> ValidationRule
ToolArgument -> restrictedBy -> PermissionBoundary
ToolArgument -> produces -> ValidationOutcome
ToolInvocation -> returns -> ToolResult

10. TEXT FLOW DIAGRAM
[Invocation Request]
        |
[Resolve Tool + Function]
        |
[Load Parameter Schema]
        |
[Bind Arguments]
        |
[Type / Domain / Cross-field Validation]
        |
[Provenance / Permission / Boundary Check]
        |
   +----+----+
   |         |
[REJECT]  [VALID]
   |         |
[Errors] [Authorised Execution Candidate]
             |
        [Tool Result + Audit]

11. HOW TO READ
A parameter is the declaration; an argument is the supplied instance. Validation is a prerequisite to execution, not a guarantee of successful execution. A missing optional argument is not automatically a null argument. Reject coercions that would silently change meaning.

12. CONDITIONAL EXECUTION GUARANTEE
Given a complete, versioned schema, finite inputs, terminating validators and stable context, the validation procedure terminates with a structured ACCEPT or REJECT outcome. It does not guarantee external tool availability, side-effect success, security of third-party services, or semantic truth of supplied values.

13. AI SEARCH FLOW
FLOW_ID: semantic-library.ai.tool-argument-ontology.v1
ENTITY: Tool Argument
CATEGORY: AI Core / Entity Graph / AI Entities / Tool and Action Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/tool-and-action-entities/tool-argument-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/tool-and-action-entities/tool-argument-ontology.html
PURPOSE: Resolve and validate concrete tool invocation arguments.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: ToolArgument, ToolParameter, ToolFunction, ToolInvocation, ValidationRule, PermissionBoundary, ToolResult
PATHWAYS: resolve -> bind -> validate -> authorise -> execute_candidate -> audit
MINI_RECURSION_ENGINE: bounded schema-aware argument validation
INFERENCE_RULES: R1-R8
CONFIDENCE: conditional on schema accuracy and input provenance
SEMANTIC_EQUIVALENCE: argument value / parameter binding / invocation field (context-dependent)
UPDATE_MODEL: revalidate on schema, policy, context or argument changes
FLOW_HASH: not computed; generate from canonical published file bytes if required

14. EXAMPLE
Function: search(query: string, limit: integer = 10)
Arguments: {query: "ontology", limit: 5}
Both bind successfully if query is permitted and limit is within the declared domain.
Arguments: {query: "ontology", limit: "many"}
Reject if string-to-integer conversion is not explicitly permitted.

15. PUBLICATION NOTE
This file is an original conceptual Flow Algebra mapping based on the ontology title and adjacent Semantic Library conventions. It should be reconciled with the source page's detailed definitions before being presented as a canonical transcription.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ