Lattice
Skip to content

Tool calling

A model emitting a structured request to call a function, which your code executes and returns the result of.

By Entry last reviewedmethod

What it implies

The mechanism almost all agent systems are built on. The security consequence is that a tool call is model output with the same failure modes as anything else the model produces, including injection arriving via retrieved content or a tool's own error message. Treat arguments as untrusted input.

Tools in this index

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.