Tool Use (also known as Function Calling) is the mechanism by which a Large Language Model (LLM) transcends static text generation to perform deterministic actions in the physical or digital world. It transforms the model from a chatbot into a reasoning engine capable of orchestrating complex workflows.
The interaction follows a structured Observe-Reason-Act loop. In the Wikantik ecosystem, this is facilitated by the Model Context Protocol (MCP).
Tools are defined using JSON Schema, which acts as the contract between the model and the code.
McpTool interface, which provides a definition() method returning a structured McpSchema.Tool object.Developing new capabilities for Wikantik agents involves extending the MCP surface.
Every tool must implement the com.wikantik.mcp.tools.McpTool interface:
public interface McpTool {
String name(); // The snake_case name used by the agent
McpSchema.Tool definition(); // The JSON schema description and arguments
McpSchema.CallToolResult execute(Map<String, Object> arguments); // The implementation logic
}
wikantik-knowledge and focus on retrieval.wikantik-admin-mcp and handle edits.For a deep dive into the 36+ tools available and how to wire them, see MCP Integration.
verify_pages call is more efficient than the agent calling check_link forty times.Effective tool use requires the agent to be "MCP-aware"—knowing which tools to reach for and when.
get_page_for_agent instead of get_page for initial research. It provides a token-budgeted summary and metadata without pulling the full Markdown body.retrieve_context for natural language queries and search_knowledge for structured entity lookups.list_pages_by_filter or traverse_relations to move through the wiki's hierarchy.A robust agentic loop does not crash on a malformed tool call; it uses the error as feedback.
For high-stakes environments, mutating tools require explicit user approval. The orchestrator pauses the execution, presents the proposed arguments to the human, and only proceeds upon confirmation.
See Also: