Why Agent Tool Design Usually Starts on the Model Side
This article examines why agent tool design ideas often emerge first from model development teams rather than from conventional product workflows. It explains a three-step method of observing where agents get stuck, inventing tools to remove those blockers, and observing again; introduces latent needs such as context economy, clarification, and execution determinism; and reviews two practices, scripted tool calls and structured proactive questioning. A product-agnostic checklist and closing takeaways help developers build a repeatable observe-invent-observe loop.
1. Introduction: Tool Design Is Not Complex, Yet It Often Starts on the Model Side
In agent engineering practice, a pattern keeps recurring: many tool design ideas look straightforward in hindsight, yet they are usually proposed and shipped first by model development teams. A developer of an AI coding tool once published a widely read article sharing hands-on lessons, whose central point was to “look at problems like an agent.” The phrase sounds abstract, but the meaning is direct: observe the world from the agent’s perspective, identify what actually blocks it while completing a task, decide which tools could remove those blockers, and consider how the form of a tool affects the final outcome. Once a tool is invented, the agent must genuinely use it, and its behavior reveals gaps and opportunities for improvement. Scripted tool calls and structured questioning mechanisms took shape through exactly this loop.
This article does not focus on any specific product. Instead, it abstracts the phenomenon into a general technical question: why does agent tool design usually start on the model side? The answer has little to do with how complex a tool is, and everything to do with whether the designer truly understands the model’s capability boundaries and behavioral preferences.
2. Methodology: Observe the World Like an Agent
Traditional software development starts from user requirements alone, treating the model as an inanimate execution tool. This one-way view overlooks a simple fact: an agent is “two-way software” that must serve users while also fitting the model’s own reasoning and execution characteristics.
“Observing the world like an agent” breaks down into three progressive questions:
- Where does the agent get stuck while solving a problem? Is the context crowded out by intermediate results, or is there no channel to ask the user for clarification?
- What tool would remove those blockers? A finer-grained interface, or a way to merge multiple calls into a single execution?
- How does the form of a tool affect results? With the same underlying capability, exposing it through a parameterized interface or through scripts and a structured dialog can lead to completely different adoption rates and stability.
The key to this methodology is the closed loop of “observe, invent, observe again.” Shipping a tool is not the finish line but the starting point of a new round of data collection. The model side often moves first because it naturally holds the internal signals the loop depends on: call success rates, context consumption, and how often the model chooses a given tool on its own. External developers can rarely obtain these signals in full.
3. Latent Needs: From “What Users Want” to “What the Model Lacks”
The inventor of an AI coding tool introduced the concept of “latent needs” in an interview: when building agents, teams easily fall back into old mental frameworks, considering only the requirements users express and treating the model as a passive tool. Latent needs are the model-side demands that users never raise on their own but that significantly affect task completion quality.
Latent needs usually fall into three categories:
- Context economy: too many intermediate results dilute key information, so the model needs a mechanism that compresses a lengthy process into a short conclusion.
- Clarification and confirmation: when requirements are vague, the model needs a low-cost channel to ask a human rather than pushing forward on guesses.
- Execution determinism: when multi-step operations rely on repeated reasoning, errors accumulate, so the model needs deterministic logic handed to code rather than to language-based reasoning.
Identifying latent needs is not mystical. It comes down to building observable call-chain records and seeing which step failures cluster around, analyzing how often the model chooses to invoke each tool, and comparing completion rates and context consumption across different tool forms for the same task. None of these practices depend on proprietary interfaces; they are general engineering work.
4. Practice 1: Scripted Tool Calls to Cut Round Trips and Context Overhead
When an agent calls tools, it typically performs a new round of reasoning every time a result comes back. If a task involves several consecutive tool calls, this creates multiple round trips and fills the context with intermediate content. Scripted tool calls address this by orchestrating multiple calls into one script executed with a single invocation: the script handles flow control, result filtering, and error handling internally, and returns only the final conclusion to the model.
Illustrative code:
# Merge multiple sequential calls into a single script executiondef batch_query(keys):results = []for k in keys:r = fetch(k) # single data readif r and r.status ok:results.append(r.summary)return {"ok": True, "summary": results[:5]}
This works only when the model’s code generation is strong enough to produce reliable scripts consistently, and when the engineering team understands the model’s capabilities well enough to hand part of the flow control to code. Scripting is not universally applicable: when steps are highly uncertain, when the agent must confirm with the user midway, or when there are too many failure branches to enumerate, forcing a script can actually reduce robustness. In addition, where the script runs (locally or in the cloud) brings different isolation, latency, and permission boundaries, so the choice should follow security requirements rather than a blanket rule.
5. Practice 2: Structured Proactive Questioning, Balancing Flexibility and Constraint
The second practice worth attention is the proactive questioning mechanism. During development, the team tried several forms with unsatisfactory results, and the problem came down to the tradeoff between flexibility and structure: plain-text questions were too free, making it hard for the model to parse user intent reliably, while rigid forms were too stiff to cover open-ended scenarios. Presenting questions and collecting feedback through a modal dialog worked best. The article also notes an interesting observation: the model seems to “really like” using this tool.
The reason is easy to explain. A dialog narrows open questions into a finite set of options and explicit fields, which lowers the user’s effort to respond and makes it easier for the model to map answers back to task state. It also gives the model a legitimate path to “stop and confirm,” avoiding blind progress when information is insufficient. A few general design principles apply:
- Ask only the few most critical questions at a time to avoid breaking the flow;
- Make options mutually exclusive and complete, with an “other / additional notes” entry;
- State in the question text why the information is needed, which improves answer quality;
- Require confirmation for high-risk, irreversible operations, and let the agent act autonomously where risk is low.
6. Design Takeaways: A Practical Checklist
Drawing on the practices above, here is a checklist independent of any specific product:
- Observe before designing: use call-chain data to locate real blockers instead of adding tools on intuition.
- Evaluate both directions: assess the user experience and the model’s usage experience, paying attention to a tool’s adoption rate.
- Match form to capability: give deterministic, enumerable flows to scripts and clarification points to structured questioning.
- Control the context budget: merge round trips, compress intermediate results, and return only conclusions.
- Define failure boundaries: design fallback paths and timeout strategies for both scripts and questioning.
- Keep the loop flowing: turn every failure sample into input for the next round of tool improvement.
7. Conclusion
The ideas behind tool design are not complex. What is complex is establishing the loop of observing from the agent’s perspective, inventing tools, and observing again, while treating the model as one party in two-way software. Scripted tool calls and structured proactive questioning correspond to two latent needs: context economy and clarification. For developers, the real competitive edge lies not in the number of tools but in the engineering habit of continuously observing, abstracting, and iterating. In general engineering practice on platforms such as Baidu AI Cloud, foundational capabilities like log services, monitoring and alerting, and container platforms can likewise support this loop.
