WhoBuilt

Tool Calling Is Not Just Plumbing for AI Agents

Feb 22, 2025· 25 min· 8.3K views·Watch on YouTube

Speaker

Roy Derks, a developer at IBM, explains how to build reusable tools for AI agents at an AI Engineer talk.

Tools deserve as much attention as agents

Derks says agent builders often focus on frameworks and models while overlooking the tools that agents rely on. Tool calls can fail because a model picks the wrong tool or because the tool itself breaks. He argues that tools should be robust and reusable across frameworks.

Tool definitions shape results

A tool definition includes its name, description, input parameters, and output schema. Derks treats the description as guidance for the model and says an output schema helps make tools type-safe and supports chaining calls. For more flexible data access, he describes using a model-generated SQL or GraphQL query instead of creating a separate tool for every filter.

Choose how much control the agent has

In traditional tool calling, application code handles model responses, selects and runs tools, and manages retries and errors. Embedded tool calling packages that work inside an agent framework, which is simpler to start with but gives developers less visibility and control. Derks favors separating concerns without requiring a microservices architecture.

Separate tools from agent frameworks

Derks presents MCP as one way to separate an agent host and client from a server that exposes tools and data. He also describes standalone tool platforms, where teams create and run tools separately, then connect them to frameworks such as LangChain, LangGraph, CrewAI, or AutoGen. This can make tools easier to reuse and can move authorization and error handling out of the agent.

Use dynamic tools carefully

Passing many fixed tools to an agent can cause confusion; Derks says 100 tools may require routers or other structure. A dynamic GraphQL tool can give the model a schema and ask it to generate a query, reducing the need to define tools for every data operation. His tests suggest models can handle straightforward schemas, but custom scalars, deep nesting, and invalid generated syntax remain challenges.

Takeaways

  • Invest in tool reliability: a capable agent can still fail when its tools are brittle.
  • Include clear descriptions, input parameters, and output schemas in tool definitions.
  • Keep tool logic portable across agent frameworks when switching frameworks is a possibility.
  • Consider MCP or a tool platform to separate tool development and execution from agent logic.
  • Use dynamic SQL or GraphQL tools to reduce tool sprawl, while validating generated queries.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • works at
    Roy Derks works at IBM
    “A few years ago, I ended up at IBM after an acquisition.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    MCP: Separates the client side and server side of agentic applications
    “a way to separate the client side and the server side”
    YouTube
    Unverified1 source· Talk
  • feature
    Wildcard: Recently got into Y Combinator
    “Wildcard, which recently got into Y Combinator”
    YouTube
    Unverified1 source· Talk
  • feature
    wxflows: Creates and executes tools separately from agent frameworks
    “I build my tools in one place and then connect them”
    YouTube
    Unverified1 source· Talk
  • integrates with
    wxflows integrates with LangChain
    “There’s a specific SDK integration for LangChain.”
    YouTube
    Unverified1 source· Talk
  • built
    “at IBM I’m actually building one”
    YouTube
    Unverified1 source· Talk

Related talks