Skip to main content
Glama

Filesystem MCP Server

by rawr-ai

json_validate

Validate JSON files against specified schemas, ensuring data integrity and compliance. Configure byte limits and strict validation modes for tailored results.

Instructions

Validate JSON data against a JSON schema. Requires maxBytes parameter (default 10KB) for the data file. Returns true if the JSON data is valid against the schema, or false if it is not. The path must be within allowed directories.

Input Schema

NameRequiredDescriptionDefault
allErrorsNoWhether to collect all validation errors or stop at first error
maxBytesYesMaximum bytes to read from the file. Must be a positive integer. Handler default: 10KB.
pathYesPath to the JSON file to validate
schemaPathYesPath to the JSON Schema file
strictNoWhether to enable strict mode validation (additionalProperties: false)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "allErrors": { "default": true, "description": "Whether to collect all validation errors or stop at first error", "type": "boolean" }, "maxBytes": { "description": "Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB.", "exclusiveMinimum": 0, "type": "integer" }, "path": { "description": "Path to the JSON file to validate", "type": "string" }, "schemaPath": { "description": "Path to the JSON Schema file", "type": "string" }, "strict": { "default": false, "description": "Whether to enable strict mode validation (additionalProperties: false)", "type": "boolean" } }, "required": [ "path", "schemaPath", "maxBytes" ], "type": "object" }

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/rawr-ai/mcp-filesystem'

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