Skip to main content
Glama

Filesystem MCP Server

by rawr-ai

json_filter

Filter JSON array data using flexible conditions. Apply comparison operators (equals, contains, etc.) and combine with AND/OR logic. Specify a JSON file path and conditions to extract matching objects efficiently.

Instructions

Filter JSON array data using flexible conditions. Supports various comparison operators (equals, greater than, contains, etc.) and can combine multiple conditions with AND/OR logic. Requires maxBytes parameter (default 10KB). Perfect for filtering collections of objects based on their properties. The path must be within allowed directories.

Input Schema

NameRequiredDescriptionDefault
arrayPathNoOptional JSONPath expression to locate the target array (e.g., "$.items" or "$.data.records")
conditionsYesArray of filter conditions
matchNoHow to combine multiple conditions - "all" for AND, "any" for ORall
maxBytesYesMaximum bytes to read from the file. Must be a positive integer. Handler default: 10KB.
pathYesPath to the JSON file to filter

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "arrayPath": { "description": "Optional JSONPath expression to locate the target array (e.g., \"$.items\" or \"$.data.records\")", "type": "string" }, "conditions": { "description": "Array of filter conditions", "items": { "additionalProperties": false, "properties": { "field": { "description": "Path to the field to check (e.g., \"address.city\" or \"tags[0]\")", "type": "string" }, "operator": { "description": "Comparison operator", "enum": [ "eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "type" ], "type": "string" }, "value": { "description": "Value to compare against" } }, "required": [ "field", "operator" ], "type": "object" }, "minItems": 1, "type": "array" }, "match": { "default": "all", "description": "How to combine multiple conditions - \"all\" for AND, \"any\" for OR", "enum": [ "all", "any" ], "type": "string" }, "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 filter", "type": "string" } }, "required": [ "path", "conditions", "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