Function calling schema builder

Describe a tool once (its name, what it is for and the parameters it takes) and copy the definition in the shape Anthropic, OpenAI, Gemini or an MCP server expects. Built-in checks flag the vague descriptions and loose types that make a model call the wrong tool.

Sign in to save this tool

The tool

What the model reads before deciding to call it.

The function name the model calls. snake_case, up to 64 characters.

What it does, when to use it, and when not to.

Parameters

  1. Parameter 1: query

    Comma separated. Turns the parameter into an enum.

  2. Parameter 2: status

    Comma separated. Turns the parameter into an enum.

  3. Parameter 3: limit

    Comma separated. Turns the parameter into an enum.

  4. Parameter 4: customer_id

    Comma separated. Turns the parameter into an enum.

Up to 50 parameters.

Review

This definition reads well.

The definition

Provider format

Goes in the tools array of a Messages API request.

How to use it

  1. Give the tool a snake_case name and a description that says what it does, when to use it and when not to. A worked sample is loaded to start from.
  2. Add parameters: a name, a type, a short description, whether it is required, and optionally a comma-separated list of allowed values to make it an enum.
  3. Read the Review list. Errors would get the tool rejected; warnings are the habits that keep a model calling it correctly.
  4. Pick the provider format (Anthropic, OpenAI, Gemini, MCP or plain JSON Schema), then copy the JSON or download it.

Supported formats and limits

  • Parameter types: string, number, integer, boolean, array of strings, array of numbers, and a free-form object. Nested objects with their own fields are not supported; edit the exported JSON for those.
  • Up to 50 parameters. Tool names up to 128 characters can be typed, but the check flags anything over 64 characters or using characters other than letters, digits, underscores and hyphens.
  • Allowed values apply to string, number, integer and array types. For numeric types, values that are not numbers are left out of the enum.
  • OpenAI output uses the Responses API function shape with strict set to false; Chat Completions nests the same object under a function key. Anthropic and OpenAI exports are wrapped in a tools array, Gemini in functionDeclarations.

Examples

  • A search_orders tool with a status enum (pending, shipped, delivered, cancelled) and a required customer_id.
  • Export the same get_weather definition for Claude and for an MCP server without rewriting it.
  • Check an existing tool’s description before shipping it, to catch “Search orders” style descriptions that leave the model guessing.

Frequently asked questions

How do the provider formats differ?

The JSON Schema for the parameters is identical; only the wrapper changes. Anthropic uses input_schema, OpenAI and Gemini use parameters (Gemini inside functionDeclarations), and MCP uses inputSchema.

Why does the model call the wrong tool?

Usually because of the description. A model chooses a tool from its name and description, so a vague one turns the choice into a guess. Say what the tool does, when to use it and when not to.

Should I use enums for parameters?

Yes, whenever the values form a closed set. An enum stops the model from inventing values and saves you validation code.

Is my tool definition sent anywhere?

No. The JSON is built in your browser; nothing is uploaded.