Anthropic Tool Input Builder

Build Claude tool definitions with `input_schema` from sample JSON input

Anthropic tool inputLocked output preset

Outputs a Claude tool definition entry with `name`, `description`, and `input_schema`.

Output preset
Anthropic tool input

Sample JSON

Loading editor...

Generated Output

Loading editor...

The schema is generated entirely in your browser from the sample you paste here. No provider APIs or server-side processing are involved.

Build Claude tool definitions from a real input sample

Claude tool calling expects a tool definition with name, description, and input_schema. Hand-writing JSON Schema for every tool is slow and error-prone. Pasting a real input sample produces a complete tool definition you can drop directly into the tools array of your Anthropic request.

Use the builder when you need to

Define a new Claude tool quickly

Generate the full tool object — name, description, and input_schema — from a sample arguments JSON.

Migrate tools from another provider

Take an OpenAI function definition or MCP tool and rebuild it as a Claude-shaped input_schema.

Tighten an existing tool's schema

Regenerate from a more representative sample so optional fields and enums match production reality.

How to build a Claude tool definition

  1. 1

    Paste a sample of the tool's input arguments as JSON.

  2. 2

    Set the tool name and description for Claude.

  3. 3

    Copy the generated tool object directly into your Anthropic request's tools array.

Common Claude tool workflows

Add a new tool to an agent

Generate the input_schema, drop it in the tools array, and start handling tool calls.

Refactor a tool's argument shape

Regenerate the schema from a new sample when you change the tool's expected input.

Publish a Claude-friendly version of an OpenAI function

Reuse the same input shape and emit it in the format Claude expects.

Related Tools

Frequently Asked Questions

It outputs a Claude tool definition object with `name`, `description`, and `input_schema`, ready to paste into the `tools` array of your Anthropic request.

Anthropic tool inputs are usually named parameters, so the schema should have an object root with properties rather than a raw string or array at the top level.

Yes. This page only generates the JSON definition. You still send that JSON from your own application when you call Anthropic, but the building step itself is entirely local.

Yes. This tool is focused specifically on Anthropic's `input_schema` wrapper. The broader builder also supports plain JSON Schema, OpenAI Structured Outputs, and MCP definitions.