Concepts

Function Calling vs Tool Use vs Verbs

Function calling and tool use are the same mechanism under two providers' names. Verbs are the layer above: a portable, versioned description of what an AI is allowed to do in your app.

Last reviewed

In short: OpenAI function calling and Anthropic tool use are the same feature with different names. Verbs don't replace them; they define your app's actions once, and each provider's tool calling carries them to the model.

If you have connected a language model to real software, you have met at least two of these terms. They overlap enough to be confusing, so here is the short version:

  • Function calling and tool use are the same idea. The model is given a list of actions with argument schemas, and instead of only writing prose it can reply with a structured request to run one. OpenAI uses the first name; Anthropic uses the second.
  • Verbs are not a competing transport. A verb is the definition of an action, kept in a provider-neutral, versioned library, with the extra information an application needs to run it safely. You still deliver verbs to a model through its function calling or tool use.

Function calling and tool use: one mechanism, two names

The same action, described for each provider, differs only in where the schema goes:

openai-tool.json
// OpenAI: "function calling"
{
  "type": "function",
  "function": {
    "name": "notify_user",
    "description": "Show a notification or message to the user inside the host application.",
    "parameters": {
      "type": "object",
      "properties": {
        "message": { "type": "string" },
        "level": { "type": "string", "enum": ["info", "success", "warning", "error"] }
      },
      "required": ["message"]
    }
  }
}
anthropic-tool.json
// Anthropic: "tool use"
{
  "name": "notify_user",
  "description": "Show a notification or message to the user inside the host application.",
  "input_schema": {
    "type": "object",
    "properties": {
      "message": { "type": "string" },
      "level": { "type": "string", "enum": ["info", "success", "warning", "error"] }
    },
    "required": ["message"]
  }
}

In both cases the loop is the same:

  1. You send the user's message along with the list of tools.
  2. The model replies with a call: a tool name and JSON arguments.
  3. Your code runs the action and sends the result back.
  4. The model continues, calling more tools or answering the user.

The provider's part ends at step 2. Deciding whether to run the call, checking it, running it and recording it is all your application's job, and the tool definition carries almost nothing to help.

What a tool definition leaves out

A tool definition answers one question: what arguments does this take? An application also needs to know:

  • Is this action destructive? Should a person confirm it first?
  • What does it return, so other code (or another model) can rely on the result?
  • Which version of the action is this, and which set of actions does it belong to?
  • How do I give the same actions to a different model, framework or language without rewriting them?

Teams usually answer these in scattered code: a hard-coded list of dangerous tool names here, a copy of the schema for the second provider there. That is the gap verbs fill.

Verbs: the definition layer above tools

An OpenVerb verb lives in a verb library, a JSON file with a namespace and a version. Each verb has a category, typed params, a description of what it returns, and safety flags:

openverb.core.json (excerpt)
// OpenVerb: a verb inside a versioned library
{
  "namespace": "openverb.core",
  "version": "0.1.0",
  "verbs": [
    {
      "name": "delete_item",
      "category": "data",
      "description": "Delete an item from a logical collection.",
      "params": {
        "collection": { "type": "string", "description": "Logical collection name.", "required": true },
        "id": { "type": "string", "description": "Identifier of the item to delete.", "required": true }
      },
      "returns": {
        "success": { "type": "boolean", "description": "Whether the item was successfully deleted." }
      },
      "destructive": true,
      "requires_confirmation": true
    }
  ]
}

From that one definition you can:

  • Generate the tool definition for any provider (the integration guide shows a converter for both).
  • Enforce policy in one place: anything marked destructive or requires_confirmation waits for the user, whichever model asked.
  • Validate before executing: an OpenVerb executor rejects unknown verbs and missing required params before your handler runs.
  • Share a vocabulary: libraries such as the Standard Library (theme, navigation, search, forms, sessions) give every app the same baseline verbs, so an agent that can use one site can use the next.
  • Read it as a person: the library is plain JSON you can review in a pull request, diff between versions, and publish.

Side by side

Function calling (OpenAI)Tool use (Anthropic)OpenVerb verbs
What it isA model API featureA model API featureA definition format and executor
Where it is definedIn the API requestIn the API requestA versioned JSON library
Works withOpenAI modelsClaude modelsAny model, via its tool calling or plain text
Argument schemaJSON SchemaJSON SchemaTyped params, converted to JSON Schema
Return shapeNot describedNot describedDescribed in returns
Safety metadataNoneNonedestructive, requires_confirmation
Grouping and versionsNoneNoneNamespace and version per library
Runs the actionYour codeYour codeYour handlers, via the executor

Which should you use?

You don't choose between them. If you use one provider with a handful of harmless tools, its native tool format on its own is fine. Once you have several models, many actions, actions that can delete or spend something, or more than one app that should understand the same actions, keep the actions as verbs and let each provider's tool calling carry them.

Ready to try it? The quick start takes about five minutes, and the OpenAI and Anthropic guide adds native tool calling on top.

OpenVerb Sandbox

Paste a Verb Library JSON schema here to define what actions the AI can perform.

Ask the AI to perform a task. It will use the vocabulary defined in your library.

The AI proposes a structured action based on your library vocabulary.

Waiting for prompt...

OpenVerb Core intercepts the AI's action and validates it before execution.

Verb exists in library
Payload matches JSON Schema
Policy requirements passed
Inputs valid and sanitized

The validated action is routed to the application backend for execution.

Waiting...

OpenVerb Core generates an execution receipt for full auditability.

Waiting for execution...