Tool call & MCP schema builder

Describe your tool's parameters once and get a strictly valid tool call JSON Schema in every format that matters — bare JSON Schema, OpenAI function calling, Anthropic tools, and MCP.

One schema, four wrappers

Every provider describes tools with the same core: a JSON Schema object listing your parameters. What differs is the envelope. OpenAI wraps it as function.parameters inside a type: "function" object, Anthropic calls it input_schema, and an MCP tool schema uses camel-cased inputSchema in its tools/list response. Hand-porting a function calling schema between those envelopes is where typos creep in, so this builder generates all four from one definition.

The classic mistakes are structural, not syntactic. Forgetting the requiredarray makes every parameter optional, so models happily omit the one argument your code depends on. Describing a fixed set of options in prose ("must be celsius or fahrenheit") instead of a proper enuminvites free-form values you then have to re-validate. And vague parameter descriptions are the top cause of bad tool calls — the description is the model's only documentation. This builder keeps each MCP tool schema strictly valid: enums become { type: "string", enum: [...] }, lists become typed arrays, and the required array is always present.

More free tools

  • LLM price comparison Live table of every model's API prices — sort, filter, and cost out your own request size.
  • LLM cost calculator Estimate per-request, daily, and monthly spend from token counts and request volume.
  • RAG cost calculator Full pipeline costs — embeddings, vector storage, and generation — from corpus size and query volume.
  • RAG chunking visualizer Paste a document and watch chunk size, overlap, and strategy change the chunks before you embed.
  • LLM context window comparison Count the tokens in any text and check which models it fits, against live context windows.
  • AI chatbot ROI calculator Turn ticket volume, handle time, and deflection rate into monthly support savings and ROI.