DevKits

MCP Tool Schema Validator — Check Tool Definitions & inputSchema

Validate a Model Context Protocol (MCP) tool definition: name pattern, description, and whether the inputSchema is a valid JSON Schema. Catches the mistakes that make a tool fail to register or get ignored by the model. 100% local.

Last updated:

Comments

Paste an MCP tool definition (name, description, inputSchema) and it's checked instantly: the name against the allowed pattern, the description for presence/length, and the inputSchema as real JSON Schema. You get a per-issue list so you fix problems before registering the tool. Runs entirely in your browser.

Valid MCP tool definition.

Validation runs entirely in your browser — the tool definition is never uploaded. The inputSchema is compiled as JSON Schema (draft 2020-12) via Ajv.

What is MCP Tool Validator?

An MCP tool is how a server advertises a capability to the model: a name, a natural-language description, and an inputSchema (a JSON Schema describing the arguments). Two kinds of mistakes break tools. Structural ones stop the tool registering — a name with illegal characters, or an inputSchema that isn't a valid JSON Schema object. Soft ones make the model ignore the tool — a vague or missing description, or a schema with untyped, undescribed parameters. This validator compiles the inputSchema with Ajv (JSON Schema draft 2020-12), enforces MCP conventions like a top-level type: object and a safe name pattern, and surfaces the weak descriptions that hurt tool selection — the same checks that apply to OpenAI and Anthropic function-calling definitions.

How to validate an MCP tool

  1. 1Paste the tool definition JSON (name, description, inputSchema).
  2. 2Read the checks: errors block registration, warnings hurt model tool-selection.
  3. 3Fix each flagged item and re-validate until it's clean.

Key Concepts

inputSchema
A JSON Schema object describing the tool's arguments; should be type: object with described properties.
Tool name pattern
Conventionally ^[a-zA-Z0-9_-]{1,64}$ — no spaces, dots, or slashes.
MCP config
Once your tools are valid, wire the server up with a client config.

Frequently Asked Questions

What makes an MCP tool name valid?

By convention tool names match ^[a-zA-Z0-9_-]{1,64}$ — letters, digits, underscore, hyphen, up to 64 chars. Spaces, dots, and slashes cause registration failures on many hosts. This validator flags any disallowed character.

Why does the model ignore my MCP tool?

Almost always a weak or missing description, or an inputSchema that isn't a proper JSON Schema object (type: object with properties). Models pick tools from the description — this validator warns on empty/short descriptions and invalid schemas.

Does it validate the inputSchema itself?

Yes — it compiles the inputSchema as JSON Schema (draft 2020-12 via Ajv) and reports structural errors, plus MCP-specific checks like requiring type: object at the top level.

Try Next

Text Chunker

Split long text into overlapping chunks for embedding and RAG pipelines. Preview recursive, paragraph, sentence, or fixed strategies with live token counts. Runs 100% in your browser.

Related Tools

Reference & Guides