DevsAgentic

AI Tool Schema Validator

Check the basic structure and clarity of an MCP or function-calling tool definition.

Review findings

info:Detected MCP tool: "search_documents".

info:Basic structural checks passed. This is not a security audit or complete JSON Schema validation.

The JSON is checked locally. Findings are guidance, not proof that a tool is safe, authorized, or valid for every provider.

What the validator checks

Paste an MCP tool definition with name, description, and inputSchema, or a function-calling definition with a function name, description, and parameters schema. The checker parses the JSON, checks for an object argument schema, verifies required fields against declared properties, and points out missing descriptions or permissive unknown fields.

Example: make tools easier to use safely

A tool named run with a field called input gives a model little guidance. A name such as search_documents, a clear explanation of the read-only search, and a typed query field describe the capability more precisely. Separate a search action from a destructive update instead of hiding both behind one broad action parameter.

Frequently asked questions

Does a passing result mean the tool is secure?

No. The checker does not verify authorization, implementation behavior, token handling, prompt-injection resistance, or full provider-specific schema compliance.

Why does it recommend additionalProperties: false?

Rejecting undeclared arguments can make a schema stricter, but provider requirements differ. Treat the suggestion as a review prompt and confirm compatibility with your integration.

Are MCP and function-calling schemas identical?

No. This tool recognizes common outer shapes and checks basic JSON Schema structure; consult the target protocol and provider documentation for exact requirements.

Improve the tool contract before connecting it

A tool schema is the interface a model uses to understand an action, but it does not describe every important operational rule. Tell the model which requests are suitable for the tool and whether it reads data or changes state. Keep arguments narrow, give fields meaningful names, and state limits in descriptions where a person needs to understand them. For an operation that can change or delete data, explain the effect and design a separate confirmation or approval step in the application.

Then validate the server implementation independently. It should authenticate the caller, authorize access to the requested resource, validate input again, and handle tool errors without returning secrets. A passing schema review cannot prove these server-side checks exist. For more background on trust boundaries, see the MCP security guide. Use this page as a quick linting aid during development, not as a release approval or security certification.