Analyzing LLM Tool-Calling Strategies: Who Calls More, and Who Calls Better?

    This article explores the differences in Large Language Model (LLM) tool-calling strategies through an unconventional analogy. By examining the technical mechanics of tool invocation, comparing instruction-first and boundary-confirmation approaches, and outlining a scientific benchmarking methodology, we uncover how execution strategies impact application efficiency. We also highlight Token efficiency as a critical metric for evaluating AI performance in tool-driven workflows.

    1. Starting with an Interesting Question

    If two LLMs are given the same functional plugin—say, a fun plugin that simulates “generating poop records”—who will call it more frequently? This seemingly absurd question actually touches upon a core proposition in LLM application development: the differences in tool-calling strategies.

    LLMs don’t have digestive systems; a “plugin” is essentially a layer of tool-calling interfaces. The model decides whether to call the tool, how many times, and with what parameters based on user instructions, then integrates the returned results into its final response. Therefore, “who poops more” is equivalent to “who is more aggressive in tool calling.”

    A reasonable hypothesis is that models with direct instruction-following tendencies call more frequently, while models with cautious interaction styles call less but more precisely. The former might trigger the plugin multiple times upon receiving a “keep pooping” command, whereas the latter might first confirm task boundaries, explain the necessity of the call, or even refuse to execute if it deems the task meaningless.

    This isn’t a matter of capability, but a reflection of two different interaction philosophies.

    2. The Technical Essence of Tool-Calling Mechanisms

    To understand this difference, we must first look at how models call external tools. The industry-standard approach is:

    1. Tool Definition Injection: Describing available tool names, parameters, and return formats in the system prompt, usually presented as a structured JSON Schema.
    2. Model Decision: During generation, the model determines if a tool call is needed. If so, it outputs a request containing the tool name and parameters.
    3. External Execution: The application layer receives the request and actually executes the tool logic (querying a database, generating text, calling third-party services, etc.).
    4. Result Backfill: The tool’s return result is fed back into the model as context, which the model uses to generate a final answer or initiate the next call.

    A schematic pseudo-code is as follows:

    1. while not task_done:
    2. response = model.chat(messages, tools=tool_definitions)
    3. if response.tool_calls:
    4. for call in response.tool_calls:
    5. result = execute_tool(call.name, call.arguments)
    6. messages.append(tool_result(result))
    7. else:
    8. return response.text # Model considers the task done

    The key lies in Step 2: “Whether to call and when to stop is entirely decided by the model’s internal strategy.” This means that with the same plugin and prompt, different models might produce drastically different calling traces.

    3. Two Typical Calling Strategies

    1. The Instruction-First Type

    The style of these models is “do exactly what the user says.” Upon receiving the instruction “poop again,” it won’t question the meaning but will directly initiate the tool call. The advantage is high execution efficiency and a direct user experience; the risk is falling into meaningless loop calls, especially lacking termination awareness in long-loop tasks.

    2. The Boundary-Confirmation Type

    These models evaluate before executing: Is this call necessary? Where are the task boundaries? If the instruction implies infinite repetition, it might proactively ask or explain why it shouldn’t execute infinitely. The advantages are safety, controllability, and predictable resource consumption; the disadvantage is an increase in interaction rounds, which might make the model seem “verbose.”

    It must be emphasized that the above is just a generalization of common interaction styles and not a rigorously tested conclusion. True differences must be confirmed through controlled experiments.

    4. How to Conduct a Scientific Benchmark

    If we really want to determine a winner, a rigorous evaluation plan should include at least the following elements:

    • Variable Control: Both models use the exact same plugin definition, system prompt, sampling parameters (like temperature), and maximum call limits.
    • Task Design: Prepare multiple sets of prompts covering different scenarios: single calls, batch calls, fuzzy instructions, and infinite loop instructions.
    • Data Collection: Record the number of successful calls, failed retries, total output characters, and total Token consumption over a period of time (e.g., one hour).
    • Result Statistics: Exclude timeouts and exceptions, and group statistics by scenario.

    The recording table can be designed like this:

    Metric Model A Model B
    Successful call count — —
    Call failure/retry count — —
    Total input Tokens — —
    Total output Tokens — —
    Average single call latency — —

    5. A Truly Interesting Metric: Token Efficiency

    Humans consume food to poop, while AI consumes compute power to “poop.” Therefore, what deserves the most attention is not the absolute quantity, but the Token cost per unit output:

    1. Token efficiency = Valid output (characters/items) ÷ Total Token consumption

    Calling more isn’t necessarily impressive. If Model A calls the plugin 100 times, generating long, verbose explanatory text each time, while Model B calls 80 times with concise outputs each time, B’s effective efficiency might be far higher than A’s. In batch production scenarios—whether batch generating content, batch executing data operations, or batch calling business APIs—using the fewest Tokens to complete the most effective work is the true low-cost production capability.

    6. Practical Recommendations

    For developers, these insights can be transferred to real-world business scenarios:

    1. Clarify Termination Conditions: Write clear call limits or completion criteria in the prompt to prevent the model from entering loops.
    2. Compress Tool Returns: Summarize and trim tool results during backfill to reduce Token waste caused by context bloat.
    3. Tiered Strategy Design: Use instruction-first configurations for high-frequency simple tasks, and enable confirmation mechanisms for high-risk tasks involving write operations.
    4. Continuously Monitor Efficiency: Add Token consumption and call success rate metrics to your logging service or monitoring alert system to visualize costs.

    7. Conclusion

    “Who poops more” is a joke-like entry point, but the questions it raises are very serious: In the Agent era driven by tool calling, a model’s execution strategy directly determines the application’s efficiency, cost, and controllability. Rather than obsessing over which model is more “diligent,” it is better to establish a scientific evaluation and monitoring system so that every tool call is worth its cost. After all, the standard for measuring intelligence has never been sheer output quantity, but effective output per unit cost.