defineTool to declare arguments, demonstrate useful calls, and reduce the result sent back to the model. The host still owns authorization and the underlying operation.
Request a strict tool schema
This standalone definition uses local fixture data. Add the returned tool to an Agent’stools array to let the model call it.
additionalProperties: false on its schema. Provider support and accepted JSON Schema features differ; do not treat this flag as a guarantee that every provider will generate valid arguments. Agentium validates tool arguments before execution. Business rules and record access still belong in the tool or execution policy.
Show useful argument combinations
inputExamples appends serialized examples to the model-visible tool description. Use examples that distinguish meaningful options. They are prompt content, not additional validation rules.
This factory takes an application-owned search function. It performs no search until the Agent calls the tool.
Reduce the model-visible result
toModelOutput runs after execute and before the tool result is added to model context. Keep the complete business record in its authoritative store and return only the fields needed for this answer.