Tag:Tool Calling

Articles, tutorials, and guides tagged Tool Calling.

10 min

Your Tool Returned 40,000 Tokens. The Agent Needed 12.

A single tool call can dump a whole file, a full API response, or a thousand log lines straight into the context window. The agent needed one field. Now every turn after that re-pays for the whole blob. Offloading the payload to a store and keeping only a handle in context fixes both the cost and the window.

LLM
Agents
10 min

Your Agent Calls One Tool, Waits, Then Calls the Next

When an agent needs three lookups that do not depend on each other, running them one at a time makes the user wait for the sum of all three. The model already tells you which calls are independent. Running that batch concurrently collapses the wait to the slowest single call.

LLM
Agents
10 min

Your Agent Will Do Whatever the Web Page Tells It To

The moment your agent reads untrusted content and can also call tools, a hidden instruction in a web page or email can hijack it. Here is the containment strategy that keeps a landed prompt injection from doing damage.

AI Agents
Security
10 min

Your Agent Keeps Retrying a Tool Call That Will Never Work

Most agent failures in production are not bad reasoning, they are bad tool calls: wrong arguments, expired tokens, timeouts. Here is how to validate, classify, and recover from tool failures instead of retrying blindly.

AI Agents
Tool Calling
10 min

Your Agent Reads 150,000 Tokens Before It Sees the Request

Connect a dozen MCP servers to an agent and you pay for every tool definition on every turn, before the user has said a word. Here is why tool-calling bloats context and how the code execution pattern cuts it by orders of magnitude.

AI Agents
MCP