Home / Glossary

Function calling vs tool use

Function calling and tool use are the same mechanism under two vendor names: a model is given JSON Schema descriptions of operations it may invoke, and it answers with a structured call your code executes. The difference is the envelope, not the idea, and this page sets out exactly which fields and rules change between the two formats.

Fathom is not open yet, so anything on this page about what it does is what it is being built to do.

Function calling vs tool use, defined

Function calling and tool use are two vendor names for the same mechanism: you describe an operation to a model as JSON Schema, the model replies with a structured call naming that operation and its arguments, your code executes the call, and you pass the result back on the next turn. OpenAI's documentation calls this function calling. Anthropic's calls it tool use.

Neither name marks a different capability, and neither model runs anything. The model emits a name and an arguments object. Execution, authentication, validation and persistence are entirely yours. Treating the two as separate features is the most common reason a working agent stops working when a team swaps providers, because the code that built the schema was written against one envelope and copied by hand into the other.

One definition, two envelopes

The portable part is the parameter object. Take an action that marks a lead as qualified with a score and a reason: the JSON Schema body describing lead_id, score and reason is the same text in both formats. What changes is what wraps it. OpenAI expects it under parameters, inside a tool of type function, and offers a strict flag that tightens the authoring rules. Anthropic expects the same body under input_schema, with no strictness switch to satisfy.

That asymmetry is why a schema pasted from one provider's working setup into the other can be rejected before a single lead is ever qualified. For the field-by-field walkthrough of a sales action schema, including how optional fields behave once strict mode is on, read the sibling guide on writing OpenAI function-calling schemas for sales actions. This page stays on the definitions and the differences.

Where the two formats actually differ

ConcernOpenAI function callingAnthropic tool use
What the vendor calls itFunction callingTool use
Field holding the JSON Schemaparametersinput_schema
Wrapper around the definitionA tool of type functionA tool object with name and description at the top level
Strictness switchstrict, which forces every property into required and additionalProperties to falseNo equivalent flag
How the model asksA tool call carrying a call id and arguments as a JSON stringA tool_use content block carrying an id and input as an object
How you answerA tool-role message referencing the call idA user message containing a tool_result block referencing the tool_use id
What stays the sameThe parameter object, expressed as JSON SchemaThe parameter object, expressed as JSON Schema

Related terms

Tool definition

The object you hand the model: a name, a description the model reads to decide when to call, and a parameter schema. "Function definition" and "tool definition" are the same artefact under the two naming conventions.

JSON schema

The shared vocabulary both formats use for parameters: type, properties, required, enum, additionalProperties. It is the portable part of a tool definition, and the reason a single internal definition can serialise to both providers.

Strict mode

OpenAI's opt-in guarantee that generated arguments conform to the schema, at the cost of tighter authoring rules. Optionality has to be expressed through the type union rather than by omission from required.

Tool call id and tool result

The correlation handle. Each requested call carries an id, and your response must quote it so the model can match result to request in a multi-call turn.

Multi-tool turn

Both providers can emit more than one call in a single assistant turn. If your executor assumes one call per turn, it will silently drop work.

Model context protocol

A transport and discovery layer that lets a client fetch tool definitions from a server at runtime rather than compiling them into the prompt. It sits above the question on this page: whatever carries the definitions, they still end up as function-calling or tool-use shapes at the model boundary.

Human in the loop

An approval step between the model deciding and the system committing. Relevant here because the schema is where you can require an acknowledgement field on a classifying action, rather than relying on the prompt to ask for one.

Questions

Is function calling the same thing as tool use?

Yes. They are two vendors' names for one mechanism: schema in, structured call out, result back in. The capability is the same; the JSON envelope, the field names and the strictness rules differ.

Does the model execute the function?

No. The model returns a name and an arguments object. Your code decides whether to run it, validates the arguments, executes, and passes the result back on the next turn. Everything after the model's reply is your system's responsibility.

Can I reuse one JSON Schema across both providers?

The parameter object is reusable as written. The wrapper is not: one provider expects it under parameters inside a function object, the other under input_schema. The practical approach is one internal definition and two serialisers, rather than two hand-maintained copies.

Why does a schema that works with one provider get rejected by the other?

Usually strict mode. With strict enabled, every property must be listed in required and additionalProperties must be false, so a schema that leaves optional fields out of required is valid for a format without that rule and invalid for the one with it.

Which term should I use in my own codebase?

Pick a provider-neutral internal name, such as action definition, and keep the vendor words at the serialisation boundary. That way a provider swap touches one file rather than every place a tool is declared.

How does MCP relate to function calling and tool use?

MCP is about how a client discovers and transports tool definitions. It does not replace the model-facing format: definitions delivered over MCP still reach the model as function-calling or tool-use shapes.

Sources

Tell us which endpoint you need first

Join the waitlist with the objects, actions and event types your agents are blocked on today. We read every response and it shapes what ships in what order.

One email when it launches, and one now to confirm your address. Unsubscribe any time. Privacy.