Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Tool Schema

MCP server by slegarraga Verified · npm:tool-schema

Converts a JSON Schema into a tool or function calling schema for OpenAI, Anthropic, Gemini and MCP. It is for developers who want one schema definition that works across providers without writing provider-specific rules.

  • Score 76
  • 2 stars
  • 179 a week
  • MIT
  • Updated

Install Tool Schema

Built from the published package, never by AI.

claude mcp add tool-schema -- npx -y tool-schema

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Tool Schema in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the tool-schema block.

About

tool-schema is a zero-dependency npm package that converts one JSON Schema definition into the tool or function calling format used by OpenAI, Anthropic, Gemini and MCP. It applies provider rules such as OpenAI strict mode requirements, Gemini's OpenAPI subset, and MCP input and output schemas. The package returns the converted schema along with warnings that list each adjustment and whether information was dropped.

The package exposes functions such as toTool, toToolSchema and lintToolSchema, and includes helpers for the Vercel AI SDK. It ships ESM, CommonJS and TypeScript types. It is aimed at developers who build tool calling into AI applications and want to avoid per-provider 400 errors. The source describes it as a library, not as a server that an assistant connects to.

Written from the project's README and checked against it.

What you need

  • Node.js 18 or later

Try asking

  • Convert my get_weather schema into an OpenAI strict tool definition
  • Lint this JSON Schema for Gemini compatibility and list the issues
  • Turn this tool definition into an Anthropic input_schema

Good to know

  • The source describes a TypeScript library and does not describe an MCP server or tools an assistant can call.
  • Conversion is per target provider, so each target applies its own rules.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Convert one schema for several AI providers
  • Lint tool schemas in CI
  • Use tool schemas with the Vercel AI SDK

Alternatives to Tool Schema

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Tool Schema: common questions

Which AI providers does tool-schema support?

The source lists OpenAI, Anthropic, Gemini and MCP as targets, plus gemini-jsonschema and OpenAI-compatible endpoints such as Groq, DeepSeek and OpenRouter.

Does tool-schema have dependencies?

The source states that tool-schema has zero dependencies.

Can tool-schema check a schema without changing it?

Yes. The lintToolSchema function reports whether a schema is valid for a given target and lists the issues it finds.

How do I install Tool Schema?

In Claude Code run claude mcp add tool-schema -- npx -y tool-schema. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Tool Schema the official server?

Tool Schema is published by npm:tool-schema from its verified domain in the official MCP Registry.

Is Tool Schema free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Tool Schema safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Tool Schema?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Tool Schema work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Tool Schema Install

Add to stack

Loading.