Function calling (also called tool use) lets an LLM invoke external functions — searching a database, calling an API, running a calculation — as part of generating a response, and it's become a foundational capability for building genuinely useful AI applications and agents. What's easy to miss is that this capability carries a real, recurring token cost that applies on every single request, independent of whether the model actually ends up calling any tool at all.

When an application makes tools available to a model, it sends a schema for each tool — the tool's name, a description of what it does, and a specification of what parameters it accepts — as part of the request's input context, so the model has the information it needs to decide whether and how to use that tool. This schema information is billed exactly like any other input tokens, meaning a request with five available tools pays for all five tools' schema tokens even if the model's response ends up not calling any of them, or calls only one. This is genuinely easy to overlook when estimating cost, since the mental model of 'the model only costs money when it does something' doesn't hold here — availability itself has a cost, not just usage.

This overhead scales directly and linearly with both tool count and schema verbosity, which is exactly why both are worth actively managing rather than treating as fixed, unavoidable costs. A tool set that's grown organically over time, accumulating tools that are rarely or never actually used in practice, silently taxes every single request with schema tokens for capabilities that provide little ongoing value — periodically auditing and trimming a tool set is a genuinely worthwhile, low-effort cost optimization for any application that's accumulated tools over an extended development period.

Schema verbosity is the second lever, and it's worth testing directly rather than assuming more detailed descriptions always improve tool-selection accuracy. Many models perform perfectly well with concise, clearly-written tool descriptions and don't meaningfully benefit from lengthy, over-explained schemas — testing whether a more concise version of your tool descriptions maintains the same tool-selection accuracy while consuming fewer tokens is a genuinely worthwhile optimization exercise for any application making heavy use of function calling at real scale.

For applications with a genuinely large total tool set where only a relevant subset actually applies to any given request or conversation context, dynamic tool selection — determining which subset of tools to actually include in a given request's context, rather than always sending the complete fixed set — can meaningfully reduce this overhead without sacrificing any real capability, since the model only ever needs the tools genuinely relevant to what it's currently being asked to do, not every tool the broader application happens to support.