Skip to main content
Glama

validator_validate_json

Validate JSON strings for syntax and structure, optionally verifying required keys exist. Returns validation results with parsed data and error details.

Instructions

[validator] Validate a JSON string. Returns {valid: bool, parsed: any, type: str, reason: str}. Optionally check that specific keys exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
required_keysNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server