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:
CommentsPaste 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.
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
- 1Paste the tool definition JSON (name, description, inputSchema).
- 2Read the checks: errors block registration, warnings hurt model tool-selection.
- 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
Schema → Tool Definition
Turn a sample JSON payload into function-calling / tool definitions for OpenAI, Anthropic, and Gemini — side by side. Strict-mode toggle adds required + additionalProperties: false. 100% local, paste straight into your tools array.
Chat Messages Validator
Validate a Chat Completions messages array before you send it — checks roles (system/user/assistant/tool), required content, and common mistakes that cause a 400. 100% local.
Prompt Template Tester
Write a prompt with {{variable}} placeholders, fill in values, and preview the final prompt. Detects every variable and flags any you left unfilled. 100% local.
Prompt Diff
Compare two versions of a prompt line by line and see the token delta between them — so you know exactly what changed and whether an edit made the prompt cheaper or more expensive. 100% local.
Embedding Cost Calculator
Estimate the cost of embedding a corpus — pick a model, enter the number of documents and average tokens each, and get the total token count and dollar cost. 100% local.
Vector Storage Calculator
Estimate how much memory or disk your embeddings need — enter vector count, dimensions, and precision (float32/float16/int8/binary) to see raw and indexed size. 100% local.