Introduction to Agentic Tool Usage
Agentic systems call tools that return giant JSON blobs designed for booking engines, dashboards, or backend services — not for LLMs. The model usually needs a few fields, but it still has to read everything.
The Problem with Traditional Flight Search APIs
The article discusses the inefficiencies inherent in traditional flight search APIs when utilized by agents, with an emphasis on the excessive data returned that is typically unnecessary for specific queries.
Proposed Solution: Client-Side Dynamic Response Filtering
The proposed solution involves client-side dynamic response filtering using JSONPath to allow agents to specify needed data fields. This approach minimizes token usage and improves efficiency, enabling agents to focus on the relevant information while maintaining the integrity of upstream APIs and tools.
How it Works
The model says exactly which JSON fields it wants (via JSONPath), filters the tool response on the client, and only sends the trimmed result into the model. This beta proof-of-concept has shown promising results, making agentic tool usage 91% more efficient.
Benefits of the Solution
The benefits of this solution include:
- Reduced token usage
- Improved efficiency
- Ability to focus on relevant information
- Maintenance of upstream APIs and tools integrity
Conclusion
In conclusion, the proposed solution of client-side dynamic response filtering using JSONPath is a promising approach to making agentic tool usage more efficient. By allowing agents to specify needed data fields, this solution minimizes token usage and improves efficiency, making it a valuable tool for agents.
FAQs
What is JSONPath?
JSONPath is a query language used to select and extract data from JSON documents.
What are the benefits of client-side dynamic response filtering?
The benefits include reduced token usage, improved efficiency, ability to focus on relevant information, and maintenance of upstream APIs and tools integrity.
How does the proposed solution work?
The model says exactly which JSON fields it wants (via JSONPath), filters the tool response on the client, and only sends the trimmed result into the model.
What is the result of using the proposed solution?
The proposed solution makes agentic tool usage 91% more efficient.








